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
param ( | |
[string] $path | |
) | |
$oldPath = $pwd | |
cd (Resolve-Path $path) | |
$files = grep -rIlE "[0-9a-fA-F]\{8\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{12\}" * | | |
? { !$_.Contains('.min.js') } | |
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
private static void descriptiveImp() | |
{ | |
var weatherData = File.ReadAllLines(@"C:\weather.dat"); | |
Func<string,DataPoint> ConvertLineToDataPoint = line => { | |
var currLine = line.Trim().Split(new[] { '\t' }, StringSplitOptions.RemoveEmptyEntries); | |
return new DataPoint | |
{ | |
day = Int32.Parse(currLine[0]), | |
max = Int32.Parse(currLine[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
module PrimeFetcherFSharp | |
let FetchPrimesUpTo (max : int) : int[] = | |
match max with | |
| x when x < 2 -> [||] | |
| x when x = 2 -> [|2|] | |
| x when x < 5 -> [|2; 3|] | |
| _ -> | |
let candidates = [|for x in 0 .. max -> if x < 2 then 0 else x|] | |
let RemoveMultiples (coll : int[]) (x : int) = |
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
#ignore thumbnails created by windows | |
Thumbs.db | |
#ignore vim swap files | |
*.swp | |
#Ignore files build by Visual Studio | |
*.obj | |
*.exe | |
*.pdb | |
*.user |
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
bind | split-window -h | |
bind - split-window -v | |
# Set status bar | |
set -g status-bg black | |
set -g status-fg green | |
#set -g status-left '#[fg=green]#H' | |
set -g status-right-length 50 | |
set -g status-left-length 50 | |
set -g status-right '[#[fg=yellow]#(date +"%H:%M")#[fg=green]]' |
NewerOlder