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 score_poker_hand = (function () { | |
| // This program creates and uses two enumeration objects: | |
| // rank_value and score_prefix. | |
| // The score_poker_hand function takes a hand (an array of cards). The hand | |
| // can contain between 5 and 9 cards, within which it will find the best five | |
| // card poker hand. A hand is an array of objects containing rank and suit | |
| // properties. The order of the cards is not significant. The hand is not | |
| // modified. |
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 new(func, arguments) { | |
| // Create a new object that inherits from the constructor's prototype. | |
| // func is a constructor function. | |
| // arguments is an array of arguments that | |
| // are used to invoke the constructor. | |
| var that = Object.create(func.prototype), | |
| // Invoke the constructor, binding –this- to the new object. |
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 coercing_equal(left, right) { | |
| if (left === right) { | |
| return true ; | |
| } | |
| if (left === null) { | |
| return right === undefined; | |
| } | |
| if (right === null) { | |
| return left === undefined; | |
| } |
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
| [ngrx] score:-10..0 answers:0 is:q created:1m |
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
| app.use(function(req, res, next) { | |
| res.header("Access-Control-Allow-Origin", "*"); | |
| res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept"); | |
| next(); | |
| }); | |
| app.get('/', function(req, res, next) { | |
| // Handle the get for this route | |
| }); |
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
| { | |
| "version": "0.1.0", | |
| "command": "tsc", | |
| "isShellCommand": true, | |
| "args": ["-p", "./src"], | |
| "showOutput": "always", | |
| "problemMatcher": "$tsc" | |
| } |
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
| // Place your settings in this file to overwrite the default settings | |
| { | |
| "typescript.check.tscVersion": false, | |
| "files.exclude": { | |
| "**/*.js": { | |
| "when": "$(basename).ts" | |
| }, | |
| "**/*.map": { | |
| "when": "$(basename).map" | |
| } |
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
| class Startup { | |
| public static main(): number { | |
| console.log('Hello World'); | |
| return 0; | |
| } | |
| } | |
| Startup.main(); |
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
| #!/usr/bin/env node | |
| require('../dist/index') |
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
| { | |
| "name": "hello", | |
| "version": "1.0.0", | |
| "description": "", | |
| "scripts": { | |
| "test": "echo \"Error: no test specified\" && exit 1" | |
| }, | |
| "keywords": [ | |
| "hello" | |
| ], |