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
<html> | |
<head> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script> | |
<title>parcelable</title> | |
</head> | |
<body> | |
<input type="text" id="className" placeholder="className" value="" /> | |
<textarea id="textarea" style="width:600px; height:400px;"></textarea> | |
<input type="button" id="button" value="generate!" /> |
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
{ | |
"name": "Eunjae Lee", | |
"noshow": false, | |
"albuminfo": { | |
"count": 10 | |
} | |
} |
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
public static String generateDeviceUniqueId() { | |
Context context = WithApplication.getInstance().getApplicationContext(); | |
final TelephonyManager tm = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); | |
final String tmDevice, tmSerial, androidId; | |
tmDevice = "" + tm.getDeviceId(); | |
tmSerial = "" + tm.getSimSerialNumber(); | |
androidId = "" + android.provider.Settings.Secure.getString(context.getContentResolver(), | |
android.provider.Settings.Secure.ANDROID_ID); | |
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
url = document.getElementsByTagName('video')[0].src | |
console.log(url); |
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 smi = []; | |
smi.push("<SAMI><BODY>"); | |
$('#transcript-scrollbox .caption-line').map(function (idx, item) { | |
var time = parseInt(($(item).attr('data-time') - 0)*1000); | |
var text = $('.caption-line-text', $(item)).html() | |
smi.push("<SYNC Start=" + time + "><P Class=ENCC>" + text + "\n"); | |
}); | |
smi.push("</BODY></SAMI>"); |
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 wpService = new rpc.ServiceProxy("http://blahblah/xmlrpc.php", { | |
asynchronous: true, | |
protocol: "XML-RPC", | |
sanitize: false, | |
methods: ['wp.getPosts'] | |
}); | |
rpc.setDateRegexp(wpService, /^(\d\d\d\d)(\d\d)(\d\d)T(\d\d):(\d\d):(\d\d)$/); | |
wpService.wp.getPosts({ |
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
<!DOCTYPE html> | |
<html lang="ko"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<meta name="description" content="" /> | |
<meta name="author" content="" /> | |
<meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, width=device-width" /> | |
<title></title> | |
<link href="css/style.css" rel="stylesheet" /> | |
</head> |
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
### | |
hogan-express.coffee | |
### | |
exports.init = (hogan, fs) -> | |
return (path, options, fn) -> | |
fs.readFile path, 'utf8', (err, str) -> | |
return fn(err) if err | |
result = hogan.compile(str).render(options) | |
fn null, result |
NewerOlder