Set up outline of pres
Don't go overboard on details, KISS
Merge conflicts need to be mentioned but not a lot of time should be spent on them
if (window.navigator.userAgent.indexOf('iPhone') != -1) { | |
if (window.navigator.standalone === true) { | |
// Initialize your app | |
}else{ | |
// Display a message asking to add the app to the Home Screen | |
} | |
}else{ | |
document.location.href = 'please-open-from-an-iphone.html'; | |
} |
/* Set up a variable for maths */ | |
$doc-font-size: 16; | |
/* the font-size mixin */ | |
@mixin font-size($size) { | |
font-size: 0px + $size; | |
font-size: 0rem + $size / $doc-font-size; | |
} |
<h1>Hello World!</h1> | |
<p class="retina-test"></p> | |
<a href="javascript:void((function(d){if(self!=top||d.getElementById('toolbar')&&d.getElementById('toolbar').getAttribute('data-resizer'))return false;d.write('<!DOCTYPE HTML><html style="opacity:0;"><head><meta charset="utf-8"/></head><body><a data-viewport="320x480" data-icon="mobile">Mobile (e.g. Apple iPhone)</a><a data-viewport="320x568" data-icon="mobile" data-version="5">Apple iPhone 5</a><a data-viewport="600x800" data-icon="small-tablet">Small Tablet</a><a data-viewport="768x1024" data-icon="tablet">Tablet (e.g. Apple iPad 2-3rd, mini)</a><a data-viewport="1280x800" data-icon="notebook">Widescreen</a><a data-viewport="1920×1080" data-icon="tv">HDTV 10 |
{ | |
"color_scheme": "Packages/User/Flatland Monokai (SL).tmTheme", | |
"detect_indentation": false, | |
"file_exclude_patterns": | |
[ | |
"*.pyc", | |
"*.pyo", | |
"*.exe", | |
"*.dll", | |
"*.obj", |
// This checks document to see if touchstart exists | |
// if it does, then your event is 'touchstart' | |
// if it doesn't (most desktop browsers) then its 'click'. | |
var clickEventType = ((document.ontouchstart!==null)?'click':'touchstart'); | |
// Old .bind don't use | |
$('.foo').bind(clickEventType, function(e){}); | |
//Better yet, use .on() for binding: | |
$('body').on(clickEventType, '.foo', function(e){}); |
[ | |
{ "keys": ["home"], "command": "move_to", "args": {"to": "hardbol", "extend": false} }, | |
{ "keys": ["end"], "command": "move_to", "args": {"to": "hardeol", "extend": false} }, | |
{ "keys": ["shift+end"], "command": "move_to", "args": {"to": "hardeol", "extend": true} }, | |
{ "keys": ["ctrl+home"], "command": "move_to", "args": {"to": "hardbof", "extend": false} } | |
] |
<snippet> | |
<content><![CDATA[ | |
<span ${1:class="${2}"} data-picture data-alt="${3:Moar Internets!}"> | |
<span data-src="${4:file}${5:.jpg}"></span> | |
<span data-src="${4:file}-x2${5:.jpg}" ${6:data-media="(${7:min-width}: ${8:400px})"}></span> | |
<span data-src="${4:file}-x3${5:.jpg}" ${9:data-media="(${10:min-width}: ${11:800px})"}></span> | |
</span> | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>pic</tabTrigger> |