Skip to content

Instantly share code, notes, and snippets.

View jfitzsimmons2's full-sized avatar
🤖
Leveling

jfitzsimmons2

🤖
Leveling
View GitHub Profile
@jfitzsimmons2
jfitzsimmons2 / cookie.js
Created April 4, 2015 14:21
Creating a cookie with javascript
@jfitzsimmons2
jfitzsimmons2 / oswego.make
Created March 14, 2015 18:34
Oswego Make File
; This file was auto-generated by drush make
core = 7.x
api = 2
; Core
projects[drupal][version] = "7.34"
; Modules
projects[views_bulk_operations][version] = "3.2"
@jfitzsimmons2
jfitzsimmons2 / Preferences.sublime-settings
Last active August 29, 2015 14:10
Sublime Text Settings
{
"font_face": "Ubuntu Mono",
"font_options": "subpixel_antialias",
"font_size": 16,
"highlight_line":true,
"line_padding_bottom": 1,
"line_padding_top": 1,
"rulers":
[
80
@jfitzsimmons2
jfitzsimmons2 / viewport.js
Last active August 29, 2015 14:05
Accurately returns the height and width of the viewport much more reliably than $(window).height
/*
* Accurately returns the height and width of the viewport
* much more reliably than simply $(window).height
*
* Source: http://andylangton.co.uk/blog/development/get-viewport-size-width-and-height-javascript
*/
function viewport() {
var e = window, a = 'inner';
@jfitzsimmons2
jfitzsimmons2 / gruntfile.js
Last active August 29, 2015 14:01
Example grunt setup
'use strict';
module.exports = function(grunt) {
// load all grunt tasks
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.initConfig({
// watch for changes and trigger compass, jshint, uglify and livereload
watch: {