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(express.static(path.join(__dirname, 'public'))); | |
| app.use(express.cookieParser()); | |
| app.use(express.session({cookie: {path: '/', maxAge: null}, secret: 'fluffy unicorn'})); | |
| app.use(app.router); |
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": "application-name", | |
| "version": "0.0.1", | |
| "private": true, | |
| "scripts": { | |
| "start": "node app" | |
| }, | |
| "engines": { | |
| "node": "0.8.x", | |
| "npm": "1.1.x" |
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
| SC.draw = function () { | |
| var renderer = SC.renderer2d; | |
| renderer.requestAnimFrame.apply(window, [function() { renderer.draw(); }]); | |
| } |
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
| gem install nyan-cat-formatter --no-ri --no-rdoc | |
| export SPEC_OPTS="-f NyanCatFormatter" | |
| rake smoke | |
| #profit |
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
| .DS_Store | |
| GTAGS | |
| GRTAGS | |
| GPATH | |
| *.swp* | |
| *.swo* |
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
| *.sw? | |
| tags |
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
| >> require 'net/http' | |
| => true | |
| >> uri = URI('http://images.wikia.com/villains/images/a/a9/Vegeta.png') | |
| => #<URI::HTTP:0x10e5e7298 URL:http://images.wikia.com/villains/images/a/a9/Vegeta.png> | |
| >> Net::HTTP.get(uri) |
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
| private TestContext testContextInstance; | |
| /// <summary> | |
| ///Gets or sets the test context which provides | |
| ///information about and functionality for the current test run. | |
| ///</summary> | |
| public TestContext TestContext | |
| { | |
| get | |
| { |
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
| "use strict"; | |
| var presentation = presentation || {}; | |
| presentation.slides = (function ($) { | |
| var index = -1, | |
| list = [], | |
| hideEffects = ["hide", "fadeOut", "slideUp"], | |
| showEffects = ["show", "fadeIn", "slideDown"], | |
| cachedContainer = null; |
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 updateColors = _collectiveTime > Threshhold; | |
| _collectiveTime += updateColors ? -_collectiveTime : elapsed.Time; | |
| _random = new Random(_seed = updateColors ? 2.SecondsAgo().Millisecond : _seed); | |
| 5.TimesWithIndex(column => 5.TimesWithIndex(line => new Block( | |
| origin: new Vector3(_right + -30 + column * 12, _up + (-15 + line * 8), 0), | |
| width: 5, | |
| height: 3, | |
| depth: 8, | |
| color: _colors[_random.Next(_colors.Length)]).Draw())); |