Skip to content

Instantly share code, notes, and snippets.

View tkarpinski's full-sized avatar

Tod Karpinski tkarpinski

View GitHub Profile
@tkarpinski
tkarpinski / gist:1105014
Created July 25, 2011 19:49
powershell profile script
#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 June 27, 2011 15:15
a sample ajax chunk request using deferreds
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 }),
<?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>