Snippets of the day – Monday, February 3, 2014

Posted on Leave a commentPosted in Snippets

Here are some of the most recently published snippets! Define arrays using templates in Typescript You can now define an array using the template feature in Typescript. Be aware this way to build array is just a compile time ‘type annotation’ used to check type validity when using the array. Open the snippet Author:    […]

Snippets of the day – Friday, December 27, 2013

Posted on Leave a commentPosted in Snippets

Here are some of the most recently published snippets! QueryString in Javascript This function allow to access a parameter in the url of a page. The original post in StackOverflow: http://stackoverflow.com/questions/3788125/jquery-querystring The solution is by Guffa http://stackoverflow.com/users/69083/guffa Open the snippet Author:    micurs JQuery typescript interface for $.ajax() callbacks To use JQuery $.ajax() you must […]

Snippets of the day – Wednesday, December 11, 2013

Posted on Leave a commentPosted in Snippets

Here are some of the most recently published snippets! fixes scope of functions returned by require can not be put in a module. must execute in context of the calling module. Open the snippet Author:    Dshusterman Create and use of ‘Module’ in TypeScript A module in TypeScript is just a syntactic construct to manage […]

Snippets of the day – Tuesday, December 10, 2013

Posted on Leave a commentPosted in Snippets

Here are some of the most recently published snippets! List branches List local branches. list all branches. Open the snippet Author:    libby pull with rebase Avoid a git merge and interleaving your commits with the commit in the upstream repo. Rebase will stash your local commits, apply the upstream commits, then reapply your local […]

Snippets of the day – Saturday, December 7, 2013

Posted on Leave a commentPosted in Snippets

Here are some of the most recently published snippets! Create a branch Create a new branch Open the snippet Author:    libby create the pem file for apple push notification service To use the Apple Push Notification Service, you need to download your iOS Certificate from the Apple Developer site and import them into your […]