Skip to content

Instantly share code, notes, and snippets.


Luke Gilliam lgilliam

  • Afoundria
  • Austin, Texas
View GitHub Profile
companje /
Created September 9, 2014 13:55 from NodeJS Server to Browser
// NodeJS Server
var express = require('express');
var app = express();
var http = require('http').Server(app);
var io = require('')(http);
var ss = require('');
var path = require('path');

When you modify a file in your repository, the change is initially unstaged. In order to commit it, you must stage it—that is, add it to the index—using git add. When you make a commit, the changes that are committed are those that have been added to the index.

git reset changes, at minimum, where your current branch is pointing. The difference between --mixed and --soft is whether or not your index is also modified. So, if we're on branch master with this series of commits:

- A - B - C (master)

HEADpoints to C and the index matches C.


gosseti / form.html
Last active February 21, 2017 18:28
A credit card form using jQuery.payment
View form.html
<form accept-charset="UTF-8" action="/payment" class="cardInfo" method="post">
<fieldset class="cardInfo__cardDetails">
<div class="form-row cardInfo__cc-num">
<label for="cc-num"><abbr title="required">*</abbr><span>Card Number</span></label>
<div class="cc-num__wrap">
<!-- using type="tel" because type="number" doesn’t pass HTML5 form validation with jQuery.payment formatting -->
<input id="cc-num" type="tel" class="paymentInput cc-num" placeholder="•••• •••• •••• ••••" autocompletetype="cc-number" required="required">
<span class="card" aria-hidden="true"></span>
swarut / all_task.rake
Created October 31, 2012 07:48
Rails : Creating A Rake Task Which Run All Sub-Tasks
View all_task.rake
namespace :tasks do
namespace :create do
desc "Create all survey templates"
task :all => [:task1, :task2, :task3]
desc "desc1"
task :task1 => :environment do