This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#content { | |
background: #eee; | |
margin: 30px 300px; | |
border: 1px solid black; | |
position: relative; | |
} | |
#content:after { | |
content: ""; | |
display: block; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.slider { | |
/* set initial width */ | |
width: 520px; | |
/* hide the content that overflows (to allow second box to show through) */ | |
overflow: hidden; | |
display: inline-block; | |
/* skew container so that it has angled edge, and set up transition */ | |
transform: skewX(-20deg); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
// Using Modernizr (http://modernizr.com/) and respond.js | |
// (https://github.com/scottjehl/Respond/), test the browser for | |
// Media Query compatibility and load respond.js polyfill if necessary. | |
Modernizr.load([ | |
{ | |
test: Modernizr.mq('only all'), | |
nope: 'js/vendor/respond.min.js' | |
} | |
]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SASS | |
nav { | |
a { | |
color: green; | |
li.selected & { | |
color: red; | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone -b develop --depth=1 git://github.com/laravel/laravel.git myapp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Server { | |
Port = 8080 | |
SourceRoot = /home/taylor/Test/public/ | |
} | |
VirtualHost { | |
* { | |
Pattern = .* | |
RewriteRules { | |
* { |
OlderNewer