git clone -b branch remote_repo
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
function getRandomIntWithinRange(min, max) { | |
return Math.floor(Math.random() * (max - min + 1)) + min; | |
} |
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch "file"' --prune-empty -- --all
-
Create the remote repository, and get the URL
If your local GIT repo is already set up, skips steps 2 and 3 -
Locally, at the root directory of your source, git init
-
Locally, add and commit what you want in your initial repo (for everything, git add . git commit -m 'initial commit comment')
-
To attach your remote repo with the name 'origin' (like cloning would do) git remote add origin [URL From Step 1]
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
http://channel9.msdn.com/coding4fun/articles/Project-Detroit-How-to-Read-Your-Cars-Engine-Data-with-OBD-II |
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
[color "diff"] | |
meta = blue black bold | |
ui = true | |
[core] | |
editor = mate -w | |
[github] | |
user = codeswimmer | |
token = a99dfdd250ec9af4352a1c416cede0e8 | |
[push] | |
default = simple |
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
$.tablesorter.addParser({ | |
id:'stormtimestr', | |
is:function (s) { | |
return false; | |
}, | |
format:function (s) { | |
if (s.search('All time') != -1) { | |
return 1000000000; | |
} | |
var total = 0; |
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
; Stumbling towards Y (Clojure Version) | |
; | |
; (this tutorial can be cut & pasted into your IDE / editor) | |
; | |
; The applicative-order Y combinator is a function that allows one to create a | |
; recursive function without using define. | |
; This may seem strange, because usually a recursive function has to call | |
; itself, and thus relies on itself having been defined. | |
; | |
; Regardless, here we will stumble towards the implementation of the Y combinator. |
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
#!/bin/sh | |
diskutil umount /Volumes/ShadowSSD/ | |
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
// NSMutableArray_Shuffling.h | |
#if TARGET_OS_IPHONE | |
#import <UIKit/UIKit.h> | |
#else | |
#include <Cocoa/Cocoa.h> | |
#endif | |
// This category enhances NSMutableArray by providing | |
// methods to randomly shuffle the elements. |
NewerOlder