Skip to content

Instantly share code, notes, and snippets.

View bentsai's full-sized avatar
🏠
Working from home

Ben Tsai bentsai

🏠
Working from home
View GitHub Profile
@bentsai
bentsai / biblerefs.py
Created January 7, 2013 02:30
biblerefs
import re
import webbrowser
import clipboard
base = 'youversion://bible?reference='
ref = clipboard.get()
book_dict = {
'Genesis': 'GEN',
'Exodus': 'EXO',
Genesis
Exodus
Leviticus
Numbers
Deuteronomy
Joshua
Judges
Ruth
1 Samuel
2 Samuel
@bentsai
bentsai / gist:3150936
Created July 20, 2012 14:11
The jQuery.extend function
jQuery.extend = jQuery.fn.extend = function() {
var options, name, src, copy, copyIsArray, clone,
target = arguments[0] || {},
i = 1,
length = arguments.length,
deep = false;
// Handle a deep copy situation
if ( typeof target === "boolean" ) {
deep = target;
<Results>
<Configuration><![CDATA[[{"CreationTimeUTC":"2012-02-21 19:18:06","UpdatedTimeUTC":"2012-02-21 19:18:06","Name":"GLOBAL_ContactSupportMessage","Value":"Please contact xxx-xxxx for additional support","CreationTime":"\/Date(1329851886583-0500)\/","UpdatedTime":"\/Date(1329851886583-0500)\/","Guid":"6ec8889f-c3b6-4b19-9475-bbdf8888e97b"},{"CreationTimeUTC":"2012-02-21 19:18:06","UpdatedTimeUTC":"2012-02-21 19:18:06","Name":"GLOBAL_EDExamIndicatorType","Value":"PerformingResource","CreationTime":"\/Date(1329851886583-0500)\/","UpdatedTime":"\/Date(1329851886583-0500)\/","Guid":"bdd21891-2530-4380-9055-2440519c3f64"},{"CreationTimeUTC":"2012-02-21 19:18:06","UpdatedTimeUTC":"2012-02-21 19:18:06","Name":"GLOBAL_EDExamIndicatorValue","Value":"STENTOR_SC","CreationTime":"\/Date(1329851886587-0500)\/","UpdatedTime":"\/Date(1329851886587-0500)\/","Guid":"ffaebc97-766f-4047-893b-61e48a3442a1"},{"CreationTimeUTC":"2012-02-21 19:18:06","UpdatedTimeUTC":"2012-02-21 19:18:06","Name":"GLOBAL_EncryptionKey","Value
set nocompatible
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => General
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Sets how many lines of history vim has to remember
set history=700
" Enable filetype plugin
@bentsai
bentsai / .hgignore
Created March 22, 2010 16:48
.hgignore file for Visual Studio 2008
# Ignore file for Visual Studio 2008
# use glob syntax
syntax: glob
# Ignore these directories
bin/
CVS/
[Dd]ebug*/
obj/