Skip to content

Instantly share code, notes, and snippets.

@ehynds
ehynds / tmux-shortcuts.md
Created December 11, 2018 14:14
tmux shortcuts
@ehynds
ehynds / cloudSettings
Last active May 25, 2018 12:56
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-05-25T12:56:43.945Z","extensionVersion":"v2.9.2"}
@ehynds
ehynds / sumologic.json
Created January 23, 2018 15:25
sumologic.json
{
"api.version": "v1",
"sources": [{
"sourceType" : "LocalFile",
"name": "web",
"category": "map-public",
"pathExpression": "/var/log/web/*.log",
"timeZone": "America/New_York",
"filters": [{
"name": "mask_email",
@ehynds
ehynds / easing.js
Last active August 29, 2015 14:08 — forked from gre/easing.js
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {
// no easing, no acceleration
linear: function (t) { return t },
// accelerating from zero velocity
easeInQuad: function (t) { return t*t },
// decelerating to zero velocity
// base page that all others extend
// src/scripts/app/views/base/page.js
define([
"app",
"views/common/navigation",
"views/common/searchOverlay",
"views/common/your-custom-gigya"
], function(app, NavigationView, SearchView, MyGigyaView) {
@ehynds
ehynds / remove-logging.js
Created August 6, 2012 15:16
Grunt task to remove console logging
grunt.registerMultiTask("removelogging", "Remove console logging", function() {
var done = this.async();
var exec = require("child_process").exec;
var options = this.data.options || {};
grunt.file.expandFiles(this.data.files).forEach(function(file) {
var cmd = "sed -E 's/console\.(log|warn|error|assert|count|clear|group|groupEnd|trace|debug|dir|dirxml|profile|profileEnd|time|timeEnd)\((.*)\);?//g' " + file;
exec(cmd, options, function(error, stdout) {
if(error !== null) {
@ehynds
ehynds / use.js
Created February 2, 2012 19:45 — forked from tbranyen/use.js
A RequireJS compatible plugin to provide shimming capabilities declaratively.
/* RequireJS Use Plugin v0.1.0
* Copyright 2012, Tim Branyen (@tbranyen)
* use.js may be freely distributed under the MIT license.
*/
define(function() {
var buildMap = {};
return {
version: "0.1.0",
@ehynds
ehynds / extend.js
Created January 18, 2012 22:33 — forked from tbranyen/extend.js
Minimalist extend function
function extend() {
var i, prop, source;
var args = Array.prototype.slice.call(arguments);
var destination = args.shift();
for (i=0; i<args.length; i++) {
source = args[i];
for (prop in source) {
destination[prop] = source[prop];
@ehynds
ehynds / inbox_view.js
Created October 6, 2011 20:52
backbone lazy loading nested collections w/ caching...
// inbox view
app.views.Inbox = Backbone.View.extend({
events: {
"click .view-message": "view"
},
view: function(event) {
var id = $(event.target).data("message-id");
var model = this.collection.get(id);
message.render(model);
@ehynds
ehynds / Custom.css
Created August 17, 2011 15:27 — forked from bentruyman/Custom.css
IR_Black Theme for Chrome Developer Tools
/**********************************************/
/*
/* IR_Black Skin by Ben Truyman - 2011
/*
/* Based on Todd Werth's IR_Black:
/* http://blog.toddwerth.com/entries/2
/*
/* Inspired by Darcy Clarke's blog post:
/* http://darcyclarke.me/design/skin-your-chrome-inspector/
/*