This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=shift_jis"> | |
| <title>Text Shadow</title> | |
| </head> | |
| <body> | |
| <p id="text" style="text-align:center;line-height:120px;virtical-align:bottom;">HTML5(CSS3)</p> | |
| <script type="text/javascript"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'net/http' | |
| require 'uri' | |
| require 'rubygems' | |
| require 'json' | |
| module Twitter | |
| class UserStreams | |
| BASE_URI = URI.parse('http://chirpstream.twitter.com/') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'net/http' | |
| require 'uri' | |
| require 'rubygems' | |
| require 'json' | |
| module Twitter | |
| class UserStreams | |
| BASE_URI = URI.parse('http://chirpstream.twitter.com/') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| klass = Class.new | |
| puts klass.name #=> "" | |
| Klass = klass | |
| puts klass.name #=> "Klass" | |
| SecondKlass = klass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <meta charset="shift_jis"> | |
| <title>無題ドキュメント</title> | |
| <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> | |
| <style type="text/css"> | |
| html, body { | |
| margin:0; | |
| padding:0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| colorscheme zenburn | |
| set autoindent | |
| set backupdir=$HOME/vimbackup | |
| set nocompatible | |
| set expandtab | |
| set number | |
| "シフト移動幅 | |
| set shiftwidth=2 | |
| "閉じ括弧が入力されたとき、対応する括弧を表示する | |
| set showmatch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 文字コードの設定 | |
| export LANG=ja_JP.UTF-8 | |
| # パスの設定 | |
| PATH=/usr/local/bin:$PATH | |
| PATH=$PATH:/usr/local/flex/bin | |
| PATH=/opt/local/bin:$PATH | |
| PATH=/sw/bin:$PATH | |
| export MANPATH=/usr/local/man:/usr/share/man |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| window.onload=function(){ | |
| (function(els){ | |
| for(var i=0,l=els.length;i<l;i++) { | |
| els[i].style.border="10px dashed #F00"; | |
| } | |
| })(document.getElementsByTagName('*')); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # logger = require('logger').create() | |
| # logger.info("blah") | |
| # => [2011-3-3T20:24:4.810 info (5021)] blah | |
| # logger.debug("boom") | |
| # => | |
| # logger.level = Logger.levels.debug | |
| # logger.debug(function() { return "booom" }) | |
| # => [2011-3-3T20:24:4.810 error (5021)] booom | |
| class Logger | |
| constructor: (options) -> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body { background-color: #DDDDDD; font: 30px sans-serif; } | |
| canvas, img { | |
| image-rendering: optimizeSpeed; | |
| image-rendering: -moz-crisp-edges; | |
| image-rendering: -webkit-optimize-contrast; | |
| image-rendering: optimize-contrast; | |
| -ms-interpolation-mode: nearest-neighbor; | |
| width:400px; | |
| height:400px; | |
| } |