Skip to content

Instantly share code, notes, and snippets.

View hokaccha's full-sized avatar

Kazuhito Hokamura hokaccha

View GitHub Profile
const _a = fA();
const _b = fB();
const _c = fC();
const _d = Promise.all([_a, _b]).then(([a, b]) => fD(a, b));
const _e = Promise.all([_b, _c]).then(([b, c]) => fE(b, c));
const [d, e] = await Promise.all([_d, _e]);
const f = await fF(d, e);
import React from 'react';
import { Frame, FrameSet } from './react-flex-frame';
class App extends React.Component {
render() {
return (
<FrameSet direction="row">
<Frame width="300" resiable={true} className="side">
<h1>Side Bar</h1>
</Frame>
p AhoCorasick.new(["8年", "18年"]).match('平成18年') #=> ["18年"]
p AhoCorasick.new(["8年", "18年", "平成17年台風第11号"]).match('平成18年') #=> ["8年"]
���{��
atom.commands.add 'atom-workspace', 'custom:set-cp932', ->
atom.workspace.getActiveTextEditor().setEncoding('cp932')
require "nokogiri"
require "open-uri"
url = "https://blog.jxck.io/entries/2016-01-28/html-compression.html"
doc = Nokogiri::HTML(open(url))
doc.css('title').each do |title|
puts title.content
#=> HTML の省略によるサイズ最適化 | blog.jxck.io
end
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true
},
"rules": {
"no-cond-assign": 2,