Skip to content

Instantly share code, notes, and snippets.

Kyle Fox kylefox

Block or report user

Report or block kylefox

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
kylefox / find_unused_helpers.rb
Created Mar 28, 2019 — forked from kennethkalmer/find_unused_helpers.rb
Find unused helpers in a Rails app
View find_unused_helpers.rb
#!/usr/bin/env ruby
# Shotgun approach (read: slow and dirty hack) to help find unused helpers in a Rails application
start =
# Build an array of filename globs to process.
# Only search file types that might use or define a helper.
extensions = %w[rb js haml erb jbuilder].map { |ext| "app/**/**/*.#{ext}" }
kylefox / .gitignore
Created Dec 9, 2018 — forked from jbergler/.gitignore
Acestream on Mac
kylefox / external.vanilla-forEach.js
Last active Feb 6, 2016 — forked from bastianallgeier/external.js
For those "external links should open in new tabs" clients…
View external.vanilla-forEach.js
// Array.forEach potentially faster than loop
var links = document.querySelectorAll('a[href*="//' + +'"]');
[] { = '_blank';
kylefox / _media_queries.sass
Created Mar 1, 2012 — forked from jcroft/layout.sass
How easy responsive design can be with Sass
View _media_queries.sass
@if $device == handheld
@media only screen and (min-width : 320px)
@if $device == handheld-landscape
@media only screen and (min-width : 321px)
View jquery-plugin-pattern.js
(function($) {
$.fn.thePlugin = function(options) {
// build main options before element iteration:
var opts = $.extend({}, $.fn.thePlugin.defaults, options);
var $this = $(this);
var thePlugin = {
index: 0,
You can’t perform that action at this time.