As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
| 第0b1001回アレ会 1/29無限肉参加(予定)のひと一覧 | |
| 1VQ9 | |
| TakumiBaba | |
| ancooo | |
| kani_b | |
| kanojikajinoBOT | |
| kurokobo | |
| myatsumoto | |
| naotaco | |
| nostalgia |
| function declitimg(img) { | |
| var cv = document.createElement('canvas'); | |
| cv.width = img.width; | |
| cv.height = img.height; | |
| var ctx = cv.getContext('2d'); | |
| ctx.drawImage(img, 0, 0); | |
| var imd = ctx.getImageData(0, 0, img.width, img.height); | |
| var s = ''; | |
| for (var i = 0; i < imd.data.length && imd.data[i] !== 0;) { | |
| var c1 = imd.data[i++]; |
| require 'haml' | |
| class ErbEngine < Haml::Engine | |
| def push_script(text, preserve_script, in_tag = false, preserve_tag = false, | |
| escape_html = false, nuke_inner_whitespace = false) | |
| push_text "<%= #{text.strip} %>" | |
| end | |
| def push_silent(text, can_suppress = false) | |
| push_text "<% #{text.strip} %>" |
原文:Scaling Isomorphic Javascript Code (This is just for study, please contact me at tily05 atmark gmail.com if any problem.)
考えてみれば Model-View-Controller とか MVC ってよく聞くよね。実際どんなものか知ってる? 抽象的に言うなら「オブジェクト情報の保持されるグラフィック・システム (つまり、ラスターではないグラフィック。ゲームとか) 上に構築された、表示系を中心としたアプリケーションにおいて、主要な機能どうしの関わりをうまく分離すること」とでも言おうか。もう少し深く考えを押し進めてみれば、これは当然、他のさまざまなアプリケーションにもあてはまる言葉 (bucket term ?) だ。
過去に多くの開発コミュニティが MVC による解決案を提供し、それによってよくあるユースケースにうまく対処し、地位を築くことができた。例をあげるなら、Ruby や Python コミュニティは Rails や Django を作り、MVC アーキテクチャを実現した。
| Vagrant::Config.run do |config| | |
| # ... | |
| config.vm.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] | |
| end |
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'sinatra/base' | |
| require 'ruby-growl' | |
| require 'launchy' | |
| class GrowlServer < Sinatra::Base | |
| set :port, 5678 |
| _=-~-~-~[];__=[][(![]+[])[_-_]+([][[]]+[])[_+_-_/_]+(![]+[])[_-_/_]+(!![]+[])[_-_]+(!![]+[])[_]+(!![]+[])[_/_]]+[];___=__[_]+__[_+_]+__[_-_/_]+(![]+[])[_]+(!![]+[])[_-_]+(!![]+[])[_/_]+(!![]+[])[_-_/_]+__[_]+(!![]+[])[_-_]+__[_+_]+(!![]+[])[_/_];___[___][___]((![]+[])[_/_]+(![]+[])[(_+_)/_]+(!![]+[])[_]+(!![]+[])[_/_]+(!![]+[])[_-_]+"(\""+'\\'+(([][[]]+[])[_-_])+(_)+(_-_)+(_+_/_)+(_+_)/_+"\");")(); |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """Simple async crawler/callback queue based on gevent.""" | |
| import traceback | |
| import logging | |
| import httplib2 | |
| import gevent |
| #!/usr/bin/env macruby | |
| # | |
| # MacRubyで画面グリッチをフルスクリーン表示する | |
| # | |
| # http://twitter.com/negipo/status/67572370247913473 | |
| # | |
| # ## Usage | |
| # | |
| # ./glitch.rb | |
| # |