Skip to content

Instantly share code, notes, and snippets.

View digitaljhelms's full-sized avatar

Jeremy Helms digitaljhelms

  • USA
View GitHub Profile
@digitaljhelms
digitaljhelms / gist:1420264
Created December 1, 2011 22:10
Create a globally accessible "lg" alias for a more robust git-log command
git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --all --decorate=full"
@digitaljhelms
digitaljhelms / gist:1480257
Created December 15, 2011 07:48
git fetch output flags

Output flags returned by git fetch (based on git version 1.7.8):

*Also note that in fast-forwards, the output contains ".."

@digitaljhelms
digitaljhelms / gist:2052887
Created March 16, 2012 21:35
Clean up the Google Music/Play UI
#oneGoogleWrapper {
display: none;
}
#headerBar #promo_pack_bar {
display: none !important;
}
#main #start-page-recommendations-container {
display: none !important;
}
@digitaljhelms
digitaljhelms / gist:3061914
Created July 6, 2012 18:35
Removing content/items from an array
/*
* When you delete an array element using the delete
* operator, the array length is not affected. For example
* if you delete arr[2], arr[3] is still arr[3] and arr[2]
* is undefined.
*/
arr = ['a', 'b', 'c', 'd']
// ["a", "b", "c", "d"]
delete arr[2]
@digitaljhelms
digitaljhelms / sass_converter.rb
Created July 16, 2012 23:18 — forked from wolfeidau/sass_converter.rb
Sass plugin for Jekyll
module Jekyll
# Sass plugin to convert .scss to .css
#
# Note: This is configured to use the new css like syntax available in sass.
class SassConverter < Converter
safe true
priority :low
def setup
return if @setup
@digitaljhelms
digitaljhelms / gist:3125794
Created July 16, 2012 23:26
Bash CLI function to change the file extension for multiple files at once
# bash function, usage: $ ext [ext1] [ext2]
function ext() {
for f in *.$1; do mv $f `basename $f .$1`.$2; done;
}
@digitaljhelms
digitaljhelms / gist:4035539
Created November 8, 2012 00:08
Yahoo! Pipes & Twitter REST API rate limits and authentication requirements

Usage limits for Pipes

  • 200 runs (of a given Pipe) in 10 minutes
  • 200 runs (of any Pipe) from an IP in 10 minutes
  • If you exceed the 200 runs in a 10 minute block, your Pipe will be 999'ed for a hour (a 999 error implies you are over utilizing our service)

Usage limits for Twitter + Pipes

REST API

@digitaljhelms
digitaljhelms / gist:4208694
Last active October 13, 2015 14:18
What makes up a CSS rule
,....................... (CSS RULE) ......................,
| |
| ,...., |
| (SELECTOR) --> | h1 | |
| `''''` |
| { |
| ,....................., |
| | ,......., ,....., | |
| (DECLARATION) --> | | color | : | red | | ; |
| | `'''''''` `'''''` | |
@digitaljhelms
digitaljhelms / .gems
Last active December 23, 2015 05:49
Boilerplate files for a client-side JavaScript project, inherently using Node for Grunt to manage build tasks and Bower to manage script dependencies, with the option of Vagrant.
# .gems gem export file.
compass
@digitaljhelms
digitaljhelms / .bashrc
Last active March 29, 2016 05:21
My personal ~/.bashrc file
Moved: https://github.com/digitaljhelms/dotfiles