View app.js
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> |
View aho.rb
p AhoCorasick.new(["8年", "18年"]).match('平成18年') #=> ["18年"] | |
p AhoCorasick.new(["8年", "18年", "平成17年台風第11号"]).match('平成18年') #=> ["8年"] |
View cp932.txt
���{�� |
View init.coffee
atom.commands.add 'atom-workspace', 'custom:set-cp932', -> | |
atom.workspace.getActiveTextEditor().setEncoding('cp932') |
View gist:c55d86c311553c987ff3
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 |
View sql.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View magic_command.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View 01_introduction.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View .eslintrc
{ | |
"parser": "babel-eslint", | |
"env": { | |
"browser": true, | |
"node": true | |
}, | |
"rules": { | |
"no-cond-assign": 2, |
View test.js
/** @test {MyClass} */ | |
describe('MyClass', () => { | |
/** @test {MyClass#foo} */ | |
describe('MyClass#foo', () => { | |
it('should be ...'); | |
}); | |
/** @test {MyClass#bar} */ | |
describe('MyClass#bar', () => { | |
it('should be ...'); |
NewerOlder