Skip to content

Instantly share code, notes, and snippets.

View crstamps2's full-sized avatar

Cody Stamps crstamps2

View GitHub Profile
@crstamps2
crstamps2 / cloudSettings
Last active December 13, 2018 16:33
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-12-13T16:33:08.410Z","extensionVersion":"v3.2.4"}

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

@crstamps2
crstamps2 / Input Field Digit and Space Filter
Created September 9, 2013 15:16
For checking a field for only digits and space using JQuery
$('#id').keypress(function(e){
var key_codes = [48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 8, 32];
if (($.inArray(e.which, key_codes) >= 0) !== true) {
e.preventDefault();
}
});
@crstamps2
crstamps2 / jsonPuller
Created July 14, 2012 15:22
A Google apps script to pull json from a spreadsheet
function doGet(){
var ss = SpreadsheetApp.openById("//key ommitted");
return exportJSON(ss);
}
// Exports current sheet as JSON and displays in message box.
function exportJSON(ss) {
var sheet = ss.getSheetByName("sessions");
var rowsData = getRowsData(sheet);