Skip to content

Instantly share code, notes, and snippets.

@Barneybook
Barneybook / index.js
Last active August 29, 2015 14:10 — forked from edokeh/index.js
//
// _oo0oo_
// o8888888o
// 88" . "88
// (| -_- |)
// 0\ = /0
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \
--- Day changed Sat Mar 15 2014
00:16 < Davy_CC> ::part #sitcon
00:17 < Davy_CC> DennyHuang: RSChiang: 好了不用擔心了~
00:17 <@DennyHuang> Davy_CC: (y)
00:18 <@DennyHuang> QQ 沒有搶到今天第一則
00:24 < Davy_CC> www
00:58 -!- DennyHuang changed the topic of #sitcon to: SITCON 學生計算機年會 http://sitcon.org | UTF-8 | 自我介紹表 http://goo.gl/1xPUXU | SITCON 2014 早上見囉XD
01:13 * timcheng
02:54 < pp_> bye
02:54 < pp_> logout
@Barneybook
Barneybook / test.as
Created December 26, 2012 09:04 — forked from anonymous/test.as
private function getUniqueName () : String
{
var d : Date = new Date();
return d.getMonth() + 1 + '' + d.getDate() + '' + d.getHours() + '' + d.getMinutes() + '' + d.getMilliseconds();
}
@Barneybook
Barneybook / simple_dom_parser_code.php
Created August 23, 2012 02:38 — forked from thephpx/simple_dom_parser_code
sample code for simple dom parser in codeigniter
$this->load->library('simple_html_dom');
$raw = file_get_html('http://faisalbd.com');
foreach($raw->find('a') as $element){
echo $element->href . '<br>';
}
//http://simplehtmldom.sourceforge.net/
@Barneybook
Barneybook / qrscan.js
Created July 11, 2012 08:09 — forked from billdawson/qrscan.js
QR Code Scan Example from Marshall's "Developing Native Android Apps with Titanium" Webinar
qrScanButton.addEventListener("click", function(e) {
var intent = Ti.Android.createIntent({
action: "com.google.zxing.client.android.SCAN"
});
intent.putExtra("SCAN_MODE", "QR_SCAN_MODE");
var activity = Ti.Android.currentActivity;
activity.startActivityForResult(intent, function(e) {
if (e.resultCode == Ti.Android.RESULT_OK) {
var contents = e.intent.getStringExtra("SCAN_RESULT");
var format = e.intent.getStringExtra("SCAN_RESULT_FORMAT");