This file contains 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
1. Update everything to the latest respective OS. | |
2. If 2-Step Verification is in use with your AppleID, turn it off. | |
3. Every device will freak out | |
4. Turn on 2-factor Authentication for your AppleID through System Preferences > iCloud > Account > Security (or from the Settings app on iOS) | |
5. Every device will freak out | |
6. Sign in and authenticate on every Mac and iOS device you use | |
7. Security pref pane may show option to allow Apple Watch to unlock your Mac but it may not work yet ("unable to communicate with Watch" error may appear) | |
8. Toggle Handoff setting on iPhone and Watch | |
9. Try to check the Allow Apple Watch checkbox again |
This file contains 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
// gulpfile.js | |
var gulp = require('gulp'); | |
var gutil = require('gulp-util'); | |
var source = require('vinyl-source-stream'); | |
var babelify = require('babelify'); | |
var watchify = require('watchify'); | |
var browserify = require('browserify'); | |
var browserSync = require('browser-sync').create(); | |
watchify.args.debug = true; |
This file contains 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
// Setting Networks in sprite order from top to bottom | |
$networks: youtube, blogger, dribbble, email, facebook, twitter; | |
// Setting background sprite (separated for readability) | |
.social-icons li a { background: url(icon-sprite.png) no-repeat 0 0; } | |
// Iterating and multiplying! | |
.social-icons { | |
li { | |
// Set the icon height |
This file contains 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
// Diagonal Lines | |
.some-element { | |
background: black; | |
position: relative; | |
&:before, | |
&:after { | |
border-top: 40px solid transparent; | |
border-bottom: 40px solid transparent; | |
content: ""; | |
display: block; |
This file contains 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
// Create the test | |
var pixelRatio = (window.devicePixelRatio >= 1.5) ? "high" : "normal"; | |
.. | |
// Pass it along through GA | |
var _gaq = _gaq || []; | |
_gaq.push(['_setAccount', 'UA-xxxxxxxx-x']); | |
// --- IMPORTANT LINE! | |
// params: event method, custom variable slot, variable name, variable value, scope level |
This file contains 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
<!doctype html> | |
<html> | |
<head> | |
<title>CSS Media Check</title> | |
<style type="text/css"> | |
#mediaquery{ | |
-webkit-transition: width .001s; | |
-moz-transition: width .001s; |
This file contains 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
<div class="vcard"> | |
... | |
<p class="adr"> | |
... | |
<span class="tel"><span class="value">123-123-3333</span> (<span class="type">home</span>)</span><br> | |
<span class="tel"><span class="value">123-123-5555</span> (<span class="type">work</span>)</span><br> | |
<span class="tel"><span class="value">123-123-7777</span> (<span class="type">cell</span>)</span><br> | |
</p> | |
</div> |
This file contains 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
@mixin border-radius ( $value: 3px ) { | |
-webkit-border-radius: $value; | |
-moz-border-radius: $value; | |
border-radius: $value; | |
// keeps background from busting out of border | |
-webkit-background-clip: padding-box; | |
-moz-background-clip: padding; | |
background-clip: padding-box; | |
} |