Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| # | |
| # Working with branches | |
| # | |
| # Get the current branch name (not so useful in itself, but used in | |
| # other aliases) | |
| branch-name = "!git rev-parse --abbrev-ref HEAD" | |
| # Push the current branch to the remote "origin", and set it to track | |
| # the upstream branch | |
| publish = "!git push -u origin $(git branch-name)" |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| // This is the core Javascript code for http://windhistory.com/ | |
| // I haven't done a full open source release, but I figured I'd put the most important | |
| // D3 code out there for people to learn from. [email protected] | |
| /** Common wind rose code **/ | |
| // Function to draw a single arc for the wind rose | |
| // Input: Drawing options object containing | |
| // width: degrees of width to draw (ie 5 or 15) | |
| // from: integer, inner radius |
| /* ---------------------------------------------------------- */ | |
| /* */ | |
| /* A media query that captures: */ | |
| /* */ | |
| /* - Retina iOS devices */ | |
| /* - Retina Macs running Safari */ | |
| /* - High DPI Windows PCs running IE 8 and above */ | |
| /* - Low DPI Windows PCs running IE, zoomed in */ | |
| /* - Low DPI Windows PCs and Macs running Firefox, zoomed in */ | |
| /* - Android hdpi devices and above */ |
| /*! | |
| * jQuery Tiny Pub/Sub for jQuery 1.7 - v0.1 - 27/10/2011 | |
| * Based on @cowboy Ben Alman's REALLY tiny pub/sub. | |
| * 1.7 specific updates by @addyosmani. | |
| * Copyright maintained by @cowboy. | |
| * Dual licensed under the MIT and GPL licenses. | |
| */ | |
| (function($){ |
This is now an actual repo:
| // ---------------------------------------------------------- | |
| // A short snippet for detecting versions of IE in JavaScript | |
| // without resorting to user-agent sniffing | |
| // ---------------------------------------------------------- | |
| // If you're not in IE (or IE version is less than 5) then: | |
| // ie === undefined | |
| // If you're in IE (>=5) then you can determine which version: | |
| // ie === 7; // IE7 | |
| // Thus, to detect IE: | |
| // if (ie) {} |