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
using System.Web.Mvc; | |
using EdgeJs; | |
namespace EdgeWebApp.Controllers | |
{ | |
public class DefaultController : Controller | |
{ | |
// GET: Default | |
public ActionResult 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
var UndoMixin = { | |
getInitialState: function() { | |
return { | |
undo: [] | |
}; | |
}, | |
handleUndo: function() { | |
if (this.state.undo.length === 0) { | |
return; |
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 jsdom = require('jsdom'); | |
//Turn off all the things we don't want. | |
jsdom.defaultDocumentFeatures = { | |
//Don't bring in outside resources | |
FetchExternalResources : false, | |
//Don't process them | |
ProcessExternalResources : false, | |
//Don't expose Mutation events (for performance) | |
MutationEvents : false, |
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
{ | |
"__v": 0, | |
"_id": { | |
"$oid": "53281de73a6576141d3a7f80" | |
}, | |
"crushes": { | |
[{ | |
"Name" : "SinfulCy" | |
"CrushID": [ |
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
The objective of this post is to get you from absolutely nothing, to a fully functional nodejs environment. | |
Software used: Ubuntu 11.10, Nodejs v0.6.12, Nginx, MongoDB, Redis, and NPM modules. | |
1. Download and install the latest version of Ubuntu: http://www.ubuntu.com/download (don't select any extra items to install when prompted) | |
2. Once you are logged in and are at your Ubuntu command prompt, install the necessary software you will need: | |
a. sudo apt-get install openssh-server | |
b. sudo apt-get install libssl-dev | |
c. sudo apt-get install git | |
d. sudo apt-get install g++ | |
e. sudo apt-get install make |
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 tab | |
{ | |
$path = Get-Location | |
$end = "-new_console:d:" + $path.Path | |
& "C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe" $end | |
} | |
function pane | |
{ | |
$path = Get-Location |
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
/** | |
* Slanted tabs with CSS 3D transforms | |
* See http://lea.verou.me/2013/10/slanted-tabs-with-css-3d-transforms/ | |
*/ | |
body { padding: 50px; } | |
nav { | |
position: relative; | |
z-index: 1; |
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
YUI.add('app-create', function (Y) { | |
var Base = Y.Base, | |
INITIALIZER = "initializer", | |
DESTRUCTOR = "destructor", | |
VIEWS = "views", | |
build = Base._build, | |
_build = function(name, main, extensions, px, sx, cfg) { | |