I hereby claim:
- I am mattstauffer on github.
- I am mattstauffer (https://keybase.io/mattstauffer) on keybase.
- I have a public key whose fingerprint is AD6F 7CE7 553D A9C7 89A6 07C9 ED60 D8FD 9359 6537
To claim this, I am signing this object:
@function column-width($cols) { | |
@return 90px * $cols; | |
} | |
@function column-under-width($cols) { | |
@return (90px * $cols) - 1; | |
} | |
@function over-mq($w) { | |
@return "screen and (min-width: #{$w})"; | |
} | |
@function under-mq($w) { |
// Tweaked form of Isotope gutters hack ( https://gist.github.com/2574891 ) and | |
// centered masonry hack (http://isotope.metafizzy.co/custom-layout-modes/centered-masonry.html ) | |
// | |
// No guarantees; there are even @todos and FIXMEs in here. This is just what I cobbled together | |
// for a particular project, and I only tweaked it enough to be sure it worked on that project. | |
$.Isotope.prototype._getMasonryGutterColumns = function() { | |
// Tweak: Renamed call of this.options.masonry to this.options (not sure why it was wrong in example) | |
var gutter = this.options.gutterWidth || 0; |
// Simple Perf test on javascript snippets ( from http://coding.smashingmagazine.com/2012/11/05/writing-fast-memory-efficient-javascript/ ) | |
var totalTime, | |
start = new Date, | |
iterations = 1000; | |
while (iterations--) { | |
// Code snippet goes here | |
} | |
// totalTime → the number of milliseconds taken | |
// to execute the code snippet 1000 times |
new Vue({ | |
el: '#assignment-creator', | |
data: { | |
trainee: {} | |
}, | |
ready: function () { | |
this.trainee = TrainRemote.trainee; | |
} | |
}); |
// SASS | |
nav { | |
a { | |
color: green; | |
li.selected & { | |
color: red; | |
} | |
} | |
} |
git clone -b develop --depth=1 git://github.com/laravel/laravel.git myapp |
Server { | |
Port = 8080 | |
SourceRoot = /home/taylor/Test/public/ | |
} | |
VirtualHost { | |
* { | |
Pattern = .* | |
RewriteRules { | |
* { |
" Note: To add this to your .vimrc, you'll have to delete any character that is written with a caret (e.g. "^M") and enter the real value; to enter ^M, enter insert mode and type CTRL-V CTRL-M. | |
" Easily create class. | |
function! Class() | |
let name = input('Class Name? ') | |
let namespace = input('Any Namespace? ') | |
if strlen(namespace) | |
exec 'normal i<?php namespace ' . namespace . ';^M^M^[' | |
else |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
function slugify { | |
echo "$1" | iconv -t ascii//TRANSLIT | sed -E s/[^a-zA-Z0-9]+/-/g | sed -E s/^-+\|-+$//g | tr A-Z a-z | |
} | |
# ------------------------------- | |
echo | |
echo Creating a new blog post. |