Skip to content

Instantly share code, notes, and snippets.

View Kevnz's full-sized avatar
💭
Writing the code

Kevin Isom Kevnz

💭
Writing the code
View GitHub Profile
@Kevnz
Kevnz / edgecontroller.cs
Created August 4, 2014 20:58
Simple example of edge.js in mvc controller
using System.Web.Mvc;
using EdgeJs;
namespace EdgeWebApp.Controllers
{
public class DefaultController : Controller
{
// GET: Default
public ActionResult Index()
{
@Kevnz
Kevnz / undo.js
Created July 26, 2014 22:14 — forked from ericflo/undo.js
var UndoMixin = {
getInitialState: function() {
return {
undo: []
};
},
handleUndo: function() {
if (this.state.undo.length === 0) {
return;
@Kevnz
Kevnz / dom.js
Created June 18, 2014 19:24
setting up jsdom for testing in node
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,
@Kevnz
Kevnz / biscuits.md
Last active August 29, 2015 13:59
biscuits

Biscuits

  • 2 cups unbleached all-purpose flour, plus more for dusting the board (if you can get White Lily flour, your biscuits will be even better)
  • 1/4 teaspoon baking soda
  • 1 tablespoon baking powder (use one without aluminum)
  • 1 teaspoon kosher salt or 1 teaspoon salt
  • 3/4 cup buttermilk (approx)
{
"__v": 0,
"_id": {
"$oid": "53281de73a6576141d3a7f80"
},
"crushes": {
[{
"Name" : "SinfulCy"
"CrushID": [
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
@Kevnz
Kevnz / conemu.ps1
Created November 28, 2013 20:42
Powershell functions to be used with ConEmu. The tab function opens a new tab at the current location. Pane opens up another console window in the same tab taking up half the screen. Finally dual-panes calls the pane function twice so you have three command prompts in the window, the first taking 50% of window, then the other two take up 25% eac…
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
@Kevnz
Kevnz / dabblet.css
Created October 24, 2013 02:20 — forked from LeaVerou/dabblet.css
Slanted tabs with CSS 3D transforms
/**
* 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;
@Kevnz
Kevnz / app-create.js
Created September 11, 2013 09:51
Adds App.create to allow for mixing in multiple apps.
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) {