- Safari
- Chrome
- Firefox
- Opera
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
#21cfc5 | |
#f9c697 | |
#e31519 |
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
<p> | |
Device width: <span id="device-width"></span> | |
</p> | |
<script> | |
var findDeviceWidth = function() { | |
var width = (window.innerWidth > 0) ? window.innerWidth : screen.width; | |
document.getElementById('device-width').innerHTML = width; | |
}; | |
window.onresize = findDeviceWidth; |
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
Turn off certificate checking | |
$ npm config set strict-ssl false | |
Turn it back on | |
$ npm config set strict-ssl true |
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
<!-- http://davidwalsh.name/prevent-chrome-from-translating-page --> | |
<meta name="google" value="notranslate"> |
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
<body ontouchstart=""> | |
... | |
</body> | |
<!-- https://stackoverflow.com/questions/3885018/active-pseudo-class-doesnt-work-in-mobile-safari --> |
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
/* http://24ways.org/2013/coding-towards-accessibility/ */ | |
.my-cool-link:hover, | |
.my-cool-link:focus, | |
.my-cool-link:active | |
{ | |
background-color: MistyRose; | |
} |
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
// Fast fullscreen | |
% defaults write -g NSWindowResizeTime -float 0.003 | |
// Default speed | |
% defaults delete -g NSWindowResizeTime |
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
// npm install browser-sync gulp-ruby-sass gulp-autoprefixer gulp-cssnano jshint gulp-jshint gulp-concat gulp-uglify gulp-imagemin gulp-notify gulp-rename gulp-cache gulp-htmlmin del --save-dev | |
var gulp = require('gulp'), | |
browserSync = require('browser-sync').create(), | |
reload = browserSync.reload, | |
sass = require('gulp-ruby-sass'), | |
autoprefixer = require('gulp-autoprefixer'), | |
nano = require('gulp-cssnano'), | |
jshint = require('gulp-jshint'), | |
uglify = require('gulp-uglify'), |
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
$ sudo xcodebuild -license |