Skip to content

Instantly share code, notes, and snippets.

View digitaljhelms's full-sized avatar

Jeremy Helms digitaljhelms

  • USA
View GitHub Profile
@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:3761873
Last active September 10, 2023 23:43
Git/GitHub commit standards & conventions

Committing Code

General Rules

  • Make atomic commits of changes, even across multiple files, in logical units. That is, as much as possible, each commit should be focused on one specific purpose.
  • As much as possible, make sure a commit does not contain unnecessary whitespace changes. This can be checked as follows:
$ git diff --check
@digitaljhelms
digitaljhelms / .gitconfig
Last active December 24, 2024 18:30
My personal ~/.gitconfig file
[user]
name = Jeremy Helms
email = [email protected]
[alias]
aliases = !git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /' | sort # list all aliases
cb = !git branch | grep ^* | cut -d' ' -f2
branch-name = !git cb # alias to "cb" alias
st = status
ci = commit
cie = commit --allow-empty-message -m ''
@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 / gist:4287848
Last active June 17, 2025 13:10
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
@digitaljhelms
digitaljhelms / .bashrc
Last active March 29, 2016 05:21
My personal ~/.bashrc file
Moved: https://github.com/digitaljhelms/dotfiles
@digitaljhelms
digitaljhelms / gist:5247192
Last active September 17, 2020 11:01
A faster, less buggy alternative to "python -m SimpleHTTPServer"
$ npm install -g http-server
$ http-server -p 8000 -a foo.bar.com

Would serve PWD at http://foo.bar.com/

@digitaljhelms
digitaljhelms / disableinstantwatch.user.js
Last active June 28, 2022 00:51
Disable Netflix Instant Watch Links
// ==UserScript==
// @name Disable Netflix Instant Watch Links
// @namespace https://gist.github.com/6349351
// @description Click the cover image, go the video detail page, simple...
// @version 1.1
// @author Jeremy Helms <[email protected]>
// @include http://www.netflix.com/*
// @exclude http://www.netflix.com/WiPlayer/*
// ==/UserScript==