This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
Taken from Julian Kay's Blog: | |
http://juliankay.com/development/querying-tfs-with-tfpt-exe-and-powershell/ | |
#> | |
$TFSSERVER = "hq-tfs08-01.branded3.net" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
Taken from Julian Kay's Blog | |
http://juliankay.com/development/querying-tfs-with-tfpt-exe-and-powershell/ | |
#> | |
Function Get-WorkItemHours | |
{ | |
$month = (Get-Date).ToString("MMMM") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " Disable vi-compatibility | |
set t_Co=256 | |
colorscheme xoria256 | |
set guifont=menlo\ for\ powerline:h16 | |
set guioptions-=T " Removes top toolbar | |
set guioptions-=r " Removes right hand scroll bar | |
set go-=L " Removes left hand scroll bar | |
set linespace=15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Mac OS X Lion introduced a new, iOS-like context menu when you press and hold a key | |
# that enables you to choose a character from a menu of options. If you are on Lion | |
# try it by pressing and holding down 'e' in any app that uses the default NSTextField | |
# for input. | |
# | |
# It's a nice feature and continues the blending of Mac OS X and iOS features. However, | |
# it's a nightmare to deal with in Sublime Text if you're running Vintage (Vim) mode, | |
# as it means you cannot press and hold h/j/k/l to move through your file. You have | |
# to repeatedly press the keys to navigate. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object SumDigits { | |
def main(args: Array[String]) { | |
println("heelo [sic] world"); | |
sumDigits(94); //13 | |
sumDigits(32); //5 | |
sumDigits(44); //8 | |
sumDigits(5232); //12 | |
sumDigits(3535235); //26 | |
sumDigits(2147483647); //46 (Int [31 bit + 1 bit for sign] max value) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object SumDigits { | |
def maxInt = 2147483647 | |
def printResult(arg: Int){ | |
printResult(arg, sumDigits(arg)); | |
} | |
def printResult(arg: Int, result: Int){ | |
printf("Sum of %d is %d\n", arg, result); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This bitty program allows me to have a simple push button operate as if it were a toggle switch | |
int switchState = 0; | |
boolean isOn = true; // state of pin 3 | |
boolean isFirstLoop = true; // mutex | |
void setup(){ | |
// Set pins 2 and 3 to OUTPUT | |
for(int x = 2; x <=3; ++x){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
I've wrapped Makoto Matsumoto and Takuji Nishimura's code in a namespace | |
so it's better encapsulated. Now you can have multiple random number generators | |
and they won't stomp all over eachother's state. | |
If you want to use this as a substitute for Math.random(), use the random() | |
method like so: | |
var m = new MersenneTwister(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* | |
This is a command-line app that allows you to type whatever you want and get [Yes|No|[Maybe]] as an answer. | |
It also creates log files, one for each day, and one for each month. | |
This file compiles with: | |
fsc.exe bit.fs --standalone |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>This page is meant to redirect you to Gustavo Keener's new site,</h1> | |
<h1 style="padding-left: 25%;"><a href="http://www.keenerweb.com">KeenerWeb™</a></h1> | |
<h1>in <span id="number">8</span> seconds<span id="wait">...</span></h1> | |
<script type="text/javascript"> | |
var span = document.getElementById('wait'), number = document.getElementById('number'); | |
var waitStates = ['....', '..', '...'], first = true; | |
var count = 0, intervalSeconds = 0.5, maxSeconds = 8, intervalsPerSecond = (1 / intervalSeconds), maxCount = (maxSeconds * intervalsPerSecond); | |
var interval = window.setInterval(function () { | |
if (count >= maxCount) { | |
window.clearInterval(interval); |
OlderNewer