#Kill node processes
##Kill all node processes
killall node 
##Kill specfic node process
| { | |
| "name": "sample", | |
| "description": "A sample package", | |
| "version": "0.0.0", | |
| "author": "Tim Chaplin <[email protected]>", | |
| "repository": { | |
| "type": "git", | |
| "url": "https://github.com/<SOMEPROJECTNAME>.git" | |
| }, | |
| "homepage": "https://github.com/<SOMEPROJECTNAME>.git", | 
| (function(window){ | |
| "use strict"; | |
| console.log(window); | |
| })(typeof global == 'object' && global || this); | 
#Kill node processes
##Kill all node processes
killall node 
##Kill specfic node process
| private static void RegisterBsonClassMappings() | |
| { | |
| //AnyBaseClass is defined as a root | |
| BsonClassMap.RegisterClassMap<AnyBaseClass>(cm => | |
| { | |
| cm.AutoMap(); | |
| cm.SetIsRootClass(true); | |
| }); | |
| //IAnyInterface is a marker interface which falls in the inheritence tree for | 
| # These are project build parameters in TeamCity | |
| # Depending on the branch, we will use different major/minor versions | |
| [System.Reflection.Assembly]::LoadWithPartialName("System.Web.Extensions") | |
| $ser = New-Object System.Web.Script.Serialization.JavaScriptSerializer | |
| $json = Get-Content "package.json" | Out-String | |
| $obj = $ser.DeserializeObject($json) | |
| $majorVerion = ($obj['version'] -split "\.")[0] | |
| $minorVerion = ($obj['version'] -split "\.")[1] | |
| $buildCounter = "%teamcity.build.counter%" | |
| $buildNumber = "$majorVerion.$minorVerion.$buildCounter" |