- 章立て
- この本を読むべき人
This file contains 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
if !window? && !setTimeout? && Packages? && print? # you are rhino | |
hash = {} | |
setTimeoutBase = (once) -> | |
(fn, delay) -> | |
fn = new Function fn if typeof fn=="string" | |
delay = +delay || 0 | |
thread = spawn -> | |
Packages.java.lang.Thread.sleep 15 # if delay is 0, can't access [tid] | |
while hash[tid] |
This file contains 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
#!/bin/sh | |
printf "password> " | |
stty -echo | |
read PASS | |
stty echo | |
echo "" | |
echo "your password is [$PASS] :p" |
SDKバージョンは3.6(大人の事情により)、ターゲットOSはMacOSX
http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex3sdk
ダウンロードしたzipを任意のディレクトリで解凍し、binディレクトリへのPATHを通す
# .bash_profile
This file contains 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
http = require 'http' | |
fs = require 'fs' | |
mixin = (args...) -> | |
target = {} | |
for arg in args | |
target[k] = v for k, v of arg | |
target | |
request = (method, url, data, headers, callback) -> |
This file contains 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
var START_PAGE = 'http://ja.wikipedia.org/wiki/Mapion'; | |
function getLinks(url_string, callback) { | |
var http = require('http'); | |
var url = require('url'); | |
http.get(url.parse(url_string), function(res) { | |
var data = []; | |
res.on('data', function(chunk) { | |
data.push(chunk); | |
}); |
OlderNewer