Skip to content

Instantly share code, notes, and snippets.

Avatar
👋
Coding

Zander Martineau mrmartineau

👋
Coding
View GitHub Profile
@mrmartineau
mrmartineau / gist:2717799
Created May 17, 2012 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts
View gist:2717799

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@mrmartineau
mrmartineau / getViewportSize.js
Created Apr 15, 2012 — forked from scottjehl/getViewportSize.js
Reliably get viewport dimensions in JS
View getViewportSize.js
/*!
An experiment in getting accurate visible viewport dimensions across devices
(c) 2012 Scott Jehl.
MIT/GPLv2 Licence
*/
function viewportSize(){
var test = document.createElement( "div" );
test.style.cssText = "position: fixed;top: 0;left: 0;bottom: 0;right: 0;";
You can’t perform that action at this time.