Tested in Mac OS X: super == command
Open/Goto
- super+t: go to file
- super+ctrl+p: go to project
- super+r: go to methods
| // Original code from http://www.blog.highub.com/mobile-2/a-fix-for-iphone-viewport-scale-bug/ | |
| var metas = document.getElementsByTagName('meta'); | |
| var i; | |
| if (navigator.userAgent.match(/iPhone/i)) { | |
| for (i=0; i<metas.length; i++) { | |
| if (metas[i].name == "viewport") { | |
| metas[i].content = "width=device-width, minimum-scale=1.0, maximum-scale=1.0"; | |
| } | |
| } |
| RewriteRule (.+)-[a-zA-Z0-9]+(\.(js|css))$ $1$2 [L] |
| var subpixelWordSpacing = false; | |
| if (document.defaultView && document.defaultView.getComputedStyle) { | |
| // Store the original word spacing on the document element | |
| var originalWordSpacing = document.defaultView.getComputedStyle(document.documentElement, null).wordSpacing; | |
| // Set the word-spacing to half a pixel | |
| document.documentElement.style.wordSpacing = '0.5px'; | |
| // This will return either 0px or 1px if sub-pixel word-spacing is not supported, otherwise |
| """ | |
| Author: adam@northisup.com | |
| to run you will need to install the following: | |
| pip install requests | |
| pip install simplejson | |
| get the auth token and device id by sniffing the nike app syncing | |
| with api.nike.com with charles |
#Reporter Save File Schema
##The Reporter Export File
Reporter saves to your Dropbox account with plaintext JSON files, one for each day. When a Report is entered in the app a file is created for that day if it does not exist. Otherwise, the report is appended to the existing file. The save folder is located in 'Dropbox/Apps/Reporter-App/'.
Reporter save files are named according to the following convention:
YYYY-MM-DD-reporter-export.json
| /** | |
| * Shape/Polygon/Triangle | |
| * | |
| * @author Maxime Thirouin [email protected] @MoOx | |
| */ | |
| @mixin triangle($direction: top, $width: 1em, $height: 0, $color: #000) | |
| { | |
| @if ($height == 0) | |
| { | |
| $height: $width; |
| // Brightness math based on: | |
| // http://www.nbdtech.com/Blog/archive/2008/04/27/Calculating-the-Perceived-Brightness-of-a-Color.aspx | |
| $red-magic-number: 241; | |
| $green-magic-number: 691; | |
| $blue-magic-number: 68; | |
| $brightness-divisor: $red-magic-number + $green-magic-number + $blue-magic-number; | |
| @function brightness($color) { | |
| // Extract color components |
| # The blog post that started it all: https://neocities.org/blog/the-fcc-is-now-rate-limited | |
| # | |
| # Current known FCC address ranges: | |
| # https://news.ycombinator.com/item?id=7716915 | |
| # | |
| # Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft | |
| # | |
| # In your nginx.conf: | |
| location / { |
| 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" |