most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel | |
// MIT license | |
(function() { | |
var lastTime = 0; | |
var vendors = ['ms', 'moz', 'webkit', 'o']; |
### | |
Caffeinated.js 1.0.1 | |
(c) 2012 Petr Kaleta, @petrkaleta | |
Caffeinated.js is freely distributable under the MIT license. | |
Micro JavaScript library written in CoffeeScript to make my life easier when creating mobile web apps for iOS. | |
I don't like extending built-in JavaScript objects, so I've created this lib as an separate object. | |
I used underscore identifier to make its calls short as possible. So please do not mess this lib with gorgeous | |
Underscore.js lib by Jeremy Ashkenas, DocumentCloud Inc. | |
Some methods are inspired or borrowed from popular JavaScript frameworks like jQuery, Underscore.js and Prototype.js |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Responsive Design Testing</title> | |
<style> | |
body { margin: 20px; font-family: sans-serif; overflow-x: scroll; } | |
.wrapper { width: 6000px; } | |
.frame { float: left; } | |
h2 { margin: 0 0 5px 0; } |
As configured in my dotfiles.
start new:
tmux
start new with session name:
##How Homakov hacked GitHub and the line of code that could have prevented it
Please note: THIS ARTICLE IS NOT WRITTEN BY THE GITHUB TEAM or in any way associated with them. It's simply hosted as a Gist because the markdown formatting is excellent and far clearer than anything I could manage on my personal Tumblr at peternixey.com.
If you'd like to follow me on twitter my handle is @peternixey
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
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" |
Here's what I told the last person that asked about how to get started with Photoshop panel development. One day I'll write a good version of this. | |
I'll warn you, Photoshop development is a real headache. There is a lot of stuff to try to figure out, but stick with it! It's worth it. | |
Is the flex part Easy , i mean the interaction part (the interface build must be easy) | |
Flex is basically XML. You can create most of it by dragging and dropping components if you don't want to customize the UI. | |
So during the install you install the panel plus a script ? | |
Essentially yes. For the most basic panel there is a panel file (.swf), script file (.jsx), and icon files (.png). You can even do the panel without the script file, though doing so limits you mostly to CS5. |