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 / .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/
set nocompatible
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => General
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Sets how many lines of history vim has to remember
set history=700
" Enable filetype plugin
<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
@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;
Genesis
Exodus
Leviticus
Numbers
Deuteronomy
Joshua
Judges
Ruth
1 Samuel
2 Samuel
@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',
@bentsai
bentsai / dayoneposter.py
Created March 8, 2013 05:18
dayoneposter
import dropboxclient
import urllib
import webbrowser
import datetime
def get_log_files(logdir):
client = dropboxclient.get_client()
metadata = client.metadata(logdir)
print metadata
@bentsai
bentsai / dayone.py
Created March 8, 2013 05:19
dayone
from plistlib import writePlistToString
from datetime import datetime
from uuid import uuid4
def create_dayone_dict(entry_text):
d = {
'Creation Date': datetime.now(),
'Entry Text': entry_text,
'UUID': str(uuid4()).translate(None, '-'),
'Time Zone': 'America/New_York'
@bentsai
bentsai / gist:8025512
Created December 18, 2013 16:41
2013-12-18 Uncle Sam's Order
  • Uncle Sam's Spcial with everything
  • Waffle fries
@bentsai
bentsai / .doingrc
Created June 9, 2015 15:17
My current .doingrc
---
doing_file: "~/Dropbox/Notes/Lists/what_was_i_doing.md"
current_section: Currently
editor_app:
templates:
default:
date_format: "%Y-%m-%d %H:%M"
template: "%date | %title%note"
wrap_width: 0
today: