Skip to content

Instantly share code, notes, and snippets.

View hokaccha's full-sized avatar

Kazuhito Hokamura hokaccha

View GitHub Profile
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,
@hokaccha
hokaccha / test.js
Last active November 7, 2015 08:25
/** @test {MyClass} */
describe('MyClass', () => {
/** @test {MyClass#foo} */
describe('MyClass#foo', () => {
it('should be ...');
});
/** @test {MyClass#bar} */
describe('MyClass#bar', () => {
it('should be ...');