Get it from the App Store.
In XCode's Preferences > Downloads you can install command line tools.
| var parser = document.createElement('a'); | |
| parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
| parser.protocol; // => "http:" | |
| parser.hostname; // => "example.com" | |
| parser.port; // => "3000" | |
| parser.pathname; // => "/pathname/" | |
| parser.search; // => "?search=test" | |
| parser.hash; // => "#hash" | |
| parser.host; // => "example.com:3000" |
| <!doctype html> | |
| <!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ --> | |
| <html> | |
| <head> | |
| <title>iOS 8 web app</title> | |
| <!-- CONFIGURATION --> |
| $sprites: sprite-map("sprites/*.png"); | |
| $sprites-retina: sprite-map("sprites-retina/*.png"); | |
| @mixin sprite-background($name) { | |
| background-image: sprite-url($sprites); | |
| background-position: sprite-position($sprites, $name); | |
| background-repeat: no-repeat; | |
| display: block; | |
| height: image-height(sprite-file($sprites, $name)); | |
| width: image-width(sprite-file($sprites, $name)); |
| group :assets do | |
| gem 'sass-rails', '~> 3.1.0' | |
| gem 'coffee-rails', '~> 3.1.0' | |
| gem 'uglifier' | |
| gem 'compass' | |
| end |
| /* JS carousel instantiated as - | |
| function newsTickerAnimation(activeID, stagedObj, callback) { | |
| var activeObj = $(activeID); | |
| activeObj.animate({ | |
| left: '-=100px', | |
| opacity: 0 | |
| }, 250, function() { | |
| $(this).css({ |
| #!/bin/sh | |
| #################################### | |
| # Output file for HTML5 video # | |
| # Requirements: # | |
| # - handbrakecli # | |
| # - ffmpeg # | |
| # - ffmpeg2theora # | |
| # # | |
| # usage: # |
| // ==UserScript== | |
| // @name UTM param stripper | |
| // @author Paul Irish | |
| // @namespace http://github.com/paulirish | |
| // @version 1.2 | |
| // @description Drop the UTM params from a URL when the page loads. | |
| // @extra Cuz you know they're all ugly n shit. | |
| // @include http*://* | |
| // ==/UserScript== |
| <!DOCTYPE html> | |
| <!-- Helpful things to keep in your <head/> | |
| // Brian Blakely, 360i | |
| // http://twitter.com/brianblakely/ | |
| --> | |
| <head> | |
| <!-- Disable automatic DNS prefetching. | |
| /** | |
| * Lucida Grande doesn't have italics, but is preferable for its small size awesomeness. | |
| * Lucida Sans has lovely italics. | |
| * Let's use @font-face to combine them | |
| */ | |
| body { | |
| font-family:'Lucida Improved','Lucida Grande','Lucida Sans','Lucida Sans Unicode',Verdana,sans-serif; | |
| } | |
| @font-face { | |
| font-family:'Lucida Improved'; |