File and folder naming convention for React.js components
/actions/...
/components/common/Link.js
/components/common/...
/components/forms/TextBox.js
/components/forms/TextBox.res/style.css
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Box Shadow</title> | |
| <style> | |
| .box { | |
| height: 150px; | |
| width: 300px; | |
| margin: 20px; |
| /Library/Frameworks/GDAL.framework/Versions/1.9/Programs/ogr2ogr -f GeoJSON -simplify 100 -lco COORDINATE_PRECISION=2 ~/Downloads/mbtiles/nat_park_region_100x.json ~/Downloads/mbtiles/nat_park_region.shp |
| import urllib2 | |
| class HeadRequest(urllib2.Request): | |
| def get_method(self): | |
| return "HEAD" | |
| class HEADRedirectHandler(urllib2.HTTPRedirectHandler): | |
| """ | |
| Subclass the HTTPRedirectHandler to make it use our | |
| HeadRequest also on the redirected URL |
| #compdef tmuxinator mux | |
| # zsh completion for tmuxinator | |
| # Install: | |
| # $ mkdir -p ~/.tmuxinator/completion | |
| # $ cp _tmuxinator ~/.tmuxinator/completion | |
| # $ vi ~/.zshrc # add the following codes | |
| # fpath=($HOME/.tmuxinator/completion ${fpath}) | |
| # autoload -U compinit |
| // Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc | |
| // jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/ | |
| // author: Pawel Kozlowski | |
| var myApp = angular.module('myApp', []); | |
| //service style, probably the simplest one | |
| myApp.service('helloWorldFromService', function() { | |
| this.sayHello = function() { | |
| return "Hello, World!" |
31 Aug 2011
私は人々にGitを教えるためにあちこちを飛び回っているが、最近のほぼすべてのクラスやワークショップで git-flow についてどう思うかを尋ねられた。私はいつも、git-flowは素晴らしいと思うと答えている。何百万ものワークフローを持ったシステム(Git)を提供し、ドキュメントもあるし、よくテストされている。フレキシブルなワークフローは、実に容易なやり方で多くの開発者の役に立つ。標準的なものになりつつあり、開発者はプロジェクトや企業の間を移動しつつこの標準的なワークフローに馴染むことができる。
| #compdef tmuxinator mux | |
| # zsh completion for tmuxinator | |
| # Install: | |
| # $ mkdir -p ~/.tmuxinator/completion | |
| # $ cp _tmuxinator ~/.tmuxinator/completion | |
| # $ vi ~/.zshrc # add the following codes | |
| # fpath=($HOME/.tmuxinator/completion ${fpath}) | |
| # autoload -U compinit |
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'redcarpet' | |
| require 'pygments.rb' | |
| class HTMLwithPygments < Redcarpet::Render::HTML | |
| def block_code(code, language) | |
| Pygments.highlight(code, :lexer => language.to_sym, :options => { | |
| :encoding => 'utf-8' | |
| }) |