Skip to content

Instantly share code, notes, and snippets.

{
"cmd": ["tsc","$file"],
"file_regex": "(.*\\.ts?)\\s\\(([0-9]+)\\,([0-9]+)\\)\\:\\s(...*?)$",
"selector": "source.ts",
"windows":
{
"cmd": ["tsc.cmd", "$file"]
}
}
@leonmaia
leonmaia / gist:3880396
Last active October 11, 2015 15:28
Yield - Example
public object Solve()
{
return Fibonnaci().Where(i => i % 2 == 0).Sum();
}
private static IEnumerable<int> Fibonnaci()
{
int a = 1, b = 2;
yield return a;