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 gcd() { | |
| REPONAME=$(node -e "console.log(process.argv[1].match(/.*?\/([a-zA-Z0-9\-]+).git/)[1]);" $1) | |
| git clone $1 && cd "${REPONAME}" | |
| } |
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
| /** | |
| * CSS Puzzle: Reverse the z-order of the <li>s without setting a separate z-index on each one in a way that works in IE9 and up | |
| */ | |
| li { | |
| list-style: none; | |
| display: inline-block; | |
| padding: 1em 2em 1em 1em; | |
| border: 1px solid rgba(0,0,0,.3); | |
| border-radius: 0 999px 999px 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
| /* | |
| Global | |
| */ | |
| var map, origin, destination, | |
| scrollTop, lastScrollTop, | |
| percentScrollTop, lastPercentScrollTop, | |
| heading, lastHeading, | |
| planeOffset, planeOffsetDiff, lastPlaneOffset; | |
| var CITIES = { |
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
| #!/bin/bash | |
| source $(dirname $0)/settings.sh | |
| BRANCH="master"; | |
| HELP=false; | |
| while getopts b:d:th option | |
| do | |
| case "${option}" |
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
| /* | |
| pushgrad: gradient layer functions and mixins | |
| */ | |
| $webkit: (); | |
| $moz: (); | |
| $ms: (); | |
| $o: (); | |
| $w3c: (); | |
| $pos: (); |
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
| def pushgrad(options={}, use_gradient_name=True, image_index=0): | |
| img = gimp.image_list()[image_index] | |
| sel = pdb.gimp_selection_bounds(img) | |
| left, top = sel[1], sel[2] | |
| width = sel[3] - left | |
| height = sel[4] - top | |
| # The following variable, prefix, is what I prefix all of my gradient names in GIMP. Change this to | |
| # fit your situation. | |
| prefix = 'natcss_' | |
| if use_gradient_name: |
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
| $webkit: (); | |
| $moz: (); | |
| $ms: (); | |
| $o: (); | |
| $w3c: (); | |
| $pos: (); | |
| $size: (); | |
| $vendors: ($webkit, $moz, $ms, $o, $w3c, $pos, $size); | |
| @function radg($shape, $size, $position, $colorStops, $gpos, $gsize, $scale) { |
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
| /* | |
| * __ _ _ | |
| * / _| ___| |_ ___| |__ _ __ __ _ _ __ __ _ _ __ ___ ___ | |
| * | |_ / _ \ __/ __| '_ \ | '_ \ / _` | '__/ _` | '_ ` _ \/ __| | |
| * | _| __/ || (__| | | | | |_) | (_| | | | (_| | | | | | \__ \ | |
| * |_| \___|\__\___|_| |_| | .__/ \__,_|_| \__,_|_| |_| |_|___/ | |
| * |_| | |
| * | |
| * */ |
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 distanceBetween( point1, point2 ) { | |
| var xs = 0; | |
| var ys = 0; | |
| xs = point2.x - point1.x; | |
| xs = xs * xs; | |
| ys = point2.y - point1.y; | |
| ys = ys * ys; | |
NewerOlder