😶🌫️
This file contains hidden or 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
| #Installs a package into all projects in the solution (note: Requires NuGet 1.1+) | |
| Get-Project -All | Install-Package packageName |
This file contains hidden or 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
| public class FieldMacro : AbstractAstMacro | |
| { | |
| public override Statement Expand(MacroStatement macro) | |
| { | |
| if (macro.Arguments.Count == 1) | |
| { | |
| var tryCastExpression = (TryCastExpression)macro.Arguments.First; | |
| var referenceExpression = (ReferenceExpression)tryCastExpression.Target; | |
| var property = new Property(referenceExpression.Name) |
This file contains hidden or 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
| #Created by Steve Godbold | |
| Get-Package -Updates | Update-Package |
This file contains hidden or 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
| public class CustomerController : Controller | |
| { | |
| public CustomerRepository Repository = new CustomerRepository(); | |
| public ActionResult Index() | |
| { | |
| return View(); | |
| } | |
| public JsonResult List() |
This file contains hidden or 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
| Get-ChildItem src -recurse -include *.dll | foreach ($_) { | |
| if($_.fullname.Contains("bin\")) { | |
| remove-item $_.fullname | |
| } | |
| } |
This file contains hidden or 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
| var a = 1, | |
| b = 'hello', | |
| c = 0, | |
| d = true, | |
| e; | |
| e = a && b && c && d; | |
| console.log(e); |
This file contains hidden or 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
| doStuff(); | |
| var stuff = 24; | |
| function doStuff() { | |
| stuff = 42; | |
| }; | |
| console.log(stuff); |
This file contains hidden or 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
| foo(); | |
| var foo = function() { | |
| console.log('I\'m fooing'); | |
| }; |
This file contains hidden or 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
| var array = ??? | |
| function print(x) { | |
| var s = ''; | |
| for(var i = 0, il = x.length; i < il; i++) { | |
| s += (' ' + x[i]); | |
| } | |
| console.log(s); |
This file contains hidden or 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 Person(name, age) { | |
| this.name = name; | |
| this.age = age; | |
| }; | |
| function Employee(name, age, company, jobTitle) { | |
| Person.call(this, company, jobTitle); | |
| this.company = company; | |
| this.jobTitle = jobTitle; | |
| } |