Skip to content

Instantly share code, notes, and snippets.

View seanspradlin's full-sized avatar

Sean Spradlin seanspradlin

View GitHub Profile

Keybase proof

I hereby claim:

  • I am seanspradlin on github.
  • I am seanspradlin (https://keybase.io/seanspradlin) on keybase.
  • I have a public key ASCWYAei5dPmVPEVxZcIWHtsYf_Ko0KcEA0cFOtHg4aruAo

To claim this, I am signing this object:

set -g utf8
set-window-option -g utf8 on
set -g default-terminal "screen-256color"
set -sg escape-time 1
set-option -g base-index 1
setw -g pane-base-index 1
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
@seanspradlin
seanspradlin / properties.js
Last active November 5, 2016 19:30
Object properties tutorial
function Person(firstName, lastName, age, ssn) {
// Declaring this way by default will make your property
// readable, writable, and enumerable
this.firstName = firstName;
this.lastName = lastName;
// Let's make a getter-only method that returns the
// two values as a whole name
Object.defineProperty(this, 'fullName', {
get: function() {
colorscheme monokai
syntax on
set nocompatible " be iMproved, required
filetype off " required
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
"Let Vundle manage itself
Plugin 'VundleVim/Vundle.vim'
set -g utf8
set-window-option -g utf8 on
set -g default-terminal "screen-256color"
set -sg escape-time 1
set-option -g base-index 1
setw -g pane-base-index 1
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
'use strict';
var querystring = require('querystring');
var request = require('request');
var cert = require('./cert.json');
var GOOGLE_API_PATH = 'https://maps.googleapis.com/maps/api/geocode/json?';
function getCoordinates(address, fn) {
var addressStr = stringifyAddress(address);
var query = querystring.stringify({
address: addressStr,
worker_processes 1;
events {
worker_connections 256;
}
http {
server {
listen 443;
server_name messaging-dev.cloudvue.com;
@seanspradlin
seanspradlin / Closure Example
Last active May 5, 2016 19:08
A slightly involved example for students to learn how closure works
'use strict';
const WeightGoals = {
QUICK_LOSS: 1,
GRADUAL_LOSS: 2,
MAINTENANCE: 3,
BULK: 4,
};
const Gender = {