Skip to content

Instantly share code, notes, and snippets.

@jedgell
jedgell / dabblet.css
Last active August 31, 2015 07:14
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
/* jeremy's dabblet title */
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@jedgell
jedgell / tmux_cheatsheet.markdown
Last active August 29, 2015 14:26 — forked from henrik/tmux_cheatsheet.markdown
tmux cheatsheet

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@jedgell
jedgell / thought_experiment.php
Last active August 29, 2015 14:11
Thought experiments and lab experiments should be kept in different places...
<?php
/**
* @file
* A thought experiment.
*/
class MyFakeThing {
}
// This is ... well, nothing special.
@jedgell
jedgell / unfinished-pull-request-checkout.md
Created November 5, 2014 18:51
Check out the result of a pending pull request

So, this makes doing code review much easier for me, and I just thought I'd share with the world.

Repository .git/config Changes

Always put the original system generated fetch refs map last. Always!

The remotes below refer to the "blessed repo". More, specifically, the destination repository of the pull request, but the same concept can be used if you're accepting pull requests on your "personal" repository, as well.

Stash

@jedgell
jedgell / brewStack.md
Last active August 29, 2015 14:06 — forked from shrop/brewStack.md

brewStack update for fresh install

Install steps:

  • Install Homebrew:

      $ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" 
      $ brew install git  
      $ brew update  
    

$ brew install drush

@jedgell
jedgell / .ctags.drupal
Created August 26, 2014 20:03
ctags option file for Drupal
-R
-f .tags
--langmap=php:,php:.inc.install.module.php
--exclude=.svn
--exclude=.git
--exclude=nbproject
--exclude=tests
--exclude=README
--exclude=README.*
--exclude=INSTALL
#!/bin/bash
# Sync Homebrew installations between Macs via Dropbox
#
BREW="/usr/local/bin/brew"
# first get local settings
echo "Reading local settings ..."
rm -f /tmp/brew-sync.*
@jedgell
jedgell / 0_reuse_code.js
Created January 31, 2014 15:33
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jedgell
jedgell / gist:6992704
Last active December 25, 2015 14:39
AJAX events on views
/**
* @file
* This JavaScript reacts to certain AJAX events on the view.
*/
jQuery(document).ready(function(){
jQuery('input[type="submit"][name="op"][value="Save"]#edit-submit').hide();
})
/**