Skip to content

Instantly share code, notes, and snippets.

View metaskills's full-sized avatar
🐙
Being Inkcellent to Each Other

Ken Collins metaskills

🐙
Being Inkcellent to Each Other
View GitHub Profile
$my-color-names: ( 'inchworm', 'sunglow', 'scarlet');
$my-colors: ( #a5de37, #ffd426, #ff4351 );
@each $name in $my-color-names {
$index: index($my-color-names, $name);
$color: nth($my-colors, $index);
%my-#{$name}-background-color { background-color: $color; }
%my-#{$name}-border-color { border-color: $color; }
}
@metaskills
metaskills / sprockets.rb
Created February 16, 2014 02:14
Do Not Cache Rails/Sprockets Assets In Development
# In config/initializers/sprockets.rb
require 'sprockets'
require 'sprockets/server'
Sprockets::Server.class_eval do
private
def headers_with_rails_env_check(*args)
#!/bin/zsh
# export EDITOR="atom -n"
# export GIT_EDITOR="atom -w"
# function e() {
# atom -n $*
# }
export EDITOR="subl -n"
export GIT_EDITOR="subl -w"
@metaskills
metaskills / keybase.md
Created March 20, 2014 18:11
keybase.md

Keybase proof

I hereby claim:

  • I am metaskills on github.
  • I am metaskills (https://keybase.io/metaskills) on keybase.
  • I have a public key whose fingerprint is DFA0 1D4E E9DF FB79 1A09 E068 7373 5FA2 8923 044A

To claim this, I am signing this object:

// Generated by CoffeeScript 1.7.1
(function() {
var $, Builder, View, callAttachHook, elements, events, idCounter, methodName, originalCleanData, voidElements, _fn, _fn1, _i, _j, _len, _len1, _ref, _ref1,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
__slice = [].slice,
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
$ = this.jQuery;
class Box
constructor: (@id) ->
@top = 0
@left = 0
@color = 0
@content = 0
@count = 0
tick: ->
// Generated by CoffeeScript 1.7.1
(function() {
var $, Builder, Events, SelfClosingTags, Tags, View, callAttachHook, docEl, exports, idCounter, jQuery, matches, matchesSelector, methodName, originalCleanData, _fn, _fn1, _i, _j, _len, _len1, _ref, _ref1,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
__slice = [].slice;
$ = jQuery = window.jQuery;
Tags = 'a abbr address article aside audio b bdi bdo blockquote body button canvas caption cite code colgroup datalist dd del details dfn div dl dt em fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 head header hgroup html i iframe ins kbd label legend li map mark menu meter nav noscript object ol optgroup option output p pre progress q rp rt ruby s samp script section
@metaskills
metaskills / lunch-n-learn.md
Last active August 29, 2015 13:57
Lunch & Learn Notes
@metaskills
metaskills / bookmarklet.js
Created March 30, 2014 16:51
Toggle Presenter Mode For Sasssmeister.com
javascript:(function(){var h,m,f;h=$('.site_header'),m=$('.main_body'),f=$('footer');if(h.is(':visible')){h.hide();m.css({top:0,bottom:0});f.hide();}else{h.show();m.css({top:'3.33333em',bottom:'1.77778em'});f.show()}}());
@metaskills
metaskills / SassMeister-input.scss
Created March 30, 2014 17:38
Generated by SassMeister.com.
// ----
// Sass (v3.3.4)
// Compass (v1.0.0.alpha.18)
// ----
.base {
slide: 'max';
}