ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
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
$fh.cam({act:'picture'}, function(res){ | |
var img = new Image(); | |
img.src='data:image/'+res.format+';base64,'+res.b64; | |
} ); |
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
$fh.data( {act:'save', key:'foo', val:'bar'} ); | |
$fh.data( {key:'foo'}, function(res) { | |
alert( res.key+'='+res.val ); | |
}); |
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
$fh.ori( {act:'listen'}, | |
function(res){ | |
alert( 'current roation=' + res); | |
}, | |
function(code,errorprops,params) {...} ); | |
$fh.ori({act:'set', value:'landscape'}, function(res){ | |
alert('orientation changed to ' + res.orientation); | |
}, function(code, errorprops, params){}); |
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 url = http://www.example.com; | |
$fh.webview( | |
{'url':url, 'title':"hello"}, | |
function(result){ | |
if(result === "opened"){ | |
//webview window is now open | |
} | |
if(result === "closed"){ | |
//webview window is now closed | |
} |
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 | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' |