Skip to content

Instantly share code, notes, and snippets.

Avatar

Tod Karpinski tkarpinski

View GitHub Profile
@tkarpinski
tkarpinski / gist:1105014
Created Jul 25, 2011
powershell profile script
View gist:1105014
#copy this file to C:\users\<username>\Documents\WindowsPowerShell
#clone posh-git to C:\users\<username>\projects https://github.com/dahlbyk/posh-git.git
# Load posh-git example profile
. C:\users\<username>\projects\posh-git\profile.example.ps1
#Set environment variables for Visual Studio Command Prompt
pushd 'c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC'
cmd /c "vcvarsall.bat&set" |
foreach {
@tkarpinski
tkarpinski / dfdexample.js
Created Jun 27, 2011
a sample ajax chunk request using deferreds
View dfdexample.js
var getAllObjects = function () {
var start = 0,
chunkSize = 2000,
dfd = $.Deferred(),
getChunk = function (start, chunkSize) {
return $.ajax({
url: '<requesturi>',
type: 'POST',
dataType: 'json',
data: JSON.stringify({ start: start, length: chunkSize }),
View ObsidianCode.dvtcolortheme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DVTConsoleDebuggerInputTextColor</key>
<string>0 0 0 1</string>
<key>DVTConsoleDebuggerInputTextFont</key>
<string>Menlo-Bold - 11.0</string>
<key>DVTConsoleDebuggerOutputTextColor</key>
<string>0 0 0 1</string>