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> | |
<title>flickr tag explorer</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | |
</head> | |
<body> | |
<script> |
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
$.template("HTML", "<div>Qty: {{=Qty}}, null:{{=nil}}, undefined:{{=blank}}, bool:{{=bool}}</div>")(falsy={"Qty":0,"nil":null,"bool":false}) | |
// Expected output: <div>Qty: 0, null:, undefined:, bool:false</div> | |
$.template("NONE", "<div>Qty: {{=Qty!}}, null:{{=nil!}}, undefined:{{=blank!}}, bool:{{=bool!}}</div>")(falsy={"Qty":0,"nil":null,"bool":false}) | |
// Expected output: <div>Qty: 0, null:null, undefined:undefined, bool:false</div> |
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
echo Remote Directory ${rdir:=/mnt/sdcard} | |
## adb=adb will run the command rather just display it | |
safe_adb="echo adb" | |
rpull(){ $safe_adb pull "$rdir/$@"; } | |
rpush(){ $safe_adb push $@ $rdir; } | |
rshell(){ adb shell "$@" | sed 's/ | |
//' ; return $?; } | |
rls() { adb shell "ls $rdir $@" | sed 's/ |
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
var NQ = { | |
n: 1 | |
,q: [] | |
,add: function add(fn) { this.push(fn); this.next(); return this; } | |
,push: function push(fn) { this.q.push(fn); return this; } | |
,fire: function fire() { if (!this.q.length) return "empty"; this.run(this.q[0]); | |
this.q.shift(); return this.q.length; } | |
,cancel: function cancel() { this.q.length = 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
/** Convert quoted printable text to plain text using QP.decode. */ | |
QP = QuotedPrintable = { | |
decode: function (data) { return unescape(data.replace(/=\r?\n/g, "").replace(/=/g, "%")); } | |
, encode: function (inp) { return this.sliceup( inp.replace(/[^ a-zA-Z0-9:.,<>'";\r\n!-<>-~]/g, function(c) { return escape(c).replace(/%/g, "=") }) ).replace(/ \r?\n/g, "=20\r\n").replace(/\t\r?\n/g, "=09\r\n"); } | |
, sliceup: function (chunk, sz, sep) { sz=(sz-0)||75; var i, res=[], len = chunk.length/sz; for(i=0; i<len; ++i) res[i]=chunk.slice(i*sz, (i+1)*sz); return res.join(sep || "=\n"); } | |
} |
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
JSONDate = (function() { | |
function isoDate(r, tz) { | |
// log(arguments); | |
return fixTimezone(new Date(r[0], r[1] - 1, r[2], r[3], r[4], r[5], r[6] || 0), tz); | |
} | |
function noop(it) { | |
return it; | |
} |
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="utf-8"> | |
<title>JSONDate Tester for Android Phonegap</title> | |
<script type="text/javascript" charset="utf-8" src="js/phonegap.js"></script> | |
<script type="text/javascript" charset="utf-8" src="js/sugar-1.2.2.min.js"></script> | |
<script type="text/javascript"> | |
document.addEventListener("deviceready", appReady, false); |
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
/* | |
* jQuery Mobile Framework : plugin to provide a date and time picker. | |
* Copyright (c) JTSage | |
* CC 3.0 Attribution. May be relicensed without permission/notifcation. | |
* https://github.com/jtsage/jquery-mobile-datebox | |
* | |
* Translation Updated by: Joshua S. Weinstein | |
* | |
*/ |
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> | |
<title>Run LiveScript Code</title> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.7.2/jquery.min.js" ></script> | |
<script src="https://raw.github.com/gkz/LiveScript/master/extras/livescript.js" async=true ></script> | |
</head> | |
<body> | |
<form> | |
<textarea rows=10 cols=80 name=inp id=inp > |