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
import * as assert from 'assert'; | |
const coins = [1, 2, 5, 10, 20, 50, 100, 200].reverse(); | |
type Coins = Map<number, number>; | |
interface Product { | |
name: string; | |
price: number; | |
} |
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
'use strict'; | |
class Fire { | |
/** | |
* @param {int} rate | |
*/ | |
constructor(rate = 10) { | |
this.rate = rate; |
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
'use strict'; | |
/** | |
* @namespace Glip.EndToEndTests.Groups.Remove | |
*/ | |
/** | |
* @testcase Notification Group removed. | |
* @memberOf Glip.EndToEndTests.Groups.Remove | |
* @id GL-15524 |
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
/** | |
* @author Marenin Alexander | |
* February 2012 | |
*/ | |
define( | |
[ | |
'components/mustache', | |
'text!./templates.htm' | |
], |
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
// You can check this with Google Traceur Compiller | |
// http://code.google.com/p/traceur-compiler/ | |
class Test { | |
constructor(){ | |
var self = this, | |
fn = () => this === self, | |
fnOld = function(){ return this === self }; | |
console.log( 'fn', fn(), 'fnOld', fnOld() ); | |
} |