%A - %T - %n - %a - %t
%A - %T - %n - %t
function resizeVideo() { | |
var videoEl = document.getElementsByTagName('video')[0]; | |
var videoOriginalWidth = 854; | |
var videoOriginalHeight = 480; | |
var videoRatio = videoOriginalWidth/videoOriginalHeight; | |
var winWidth = window.innerWidth; | |
var winHeight = window.innerHeight; | |
var videoWidth; | |
var videoHeight; | |
var videoDimensionMultiplier = 1.1; |
var img = new Image(); | |
$(img).on('load', function(e){ | |
// Your code here | |
}).each(function() { | |
if(this.complete) $(this).load(); | |
}); | |
img.src = "http://dummyimage.com/600x400"; |
export PATH="/usr/local/bin:usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/etc:/usr/local/mysql/bin:/.rbenv/bin:$PATH" | |
export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home" | |
# Load SSH keys | |
ssh-add -K ~/.ssh/id_rsa | |
if [ -f `brew --prefix`/etc/bash_completion ]; then | |
. `brew --prefix`/etc/bash_completion | |
fi | |
{ | |
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night-Eighties.tmTheme", | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"font_size": 16, | |
// The number of spaces a tab is considered equal to | |
"tab_size": 2, | |
// Set to true to insert spaces when tab is pressed |
[core] | |
excludesfile = /Users/rob/.gitignore_global | |
[difftool "sourcetree"] | |
cmd = opendiff \"$LOCAL\" \"$REMOTE\" | |
path = | |
[mergetool "sourcetree"] | |
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\" | |
trustExitCode = true | |
[user] | |
name = |
define( | |
[], | |
function() { | |
'use strict'; | |
var instance = null; | |
function Singie() { |
/* | |
This snippet requires PIXI and underscoreJS to work; | |
The good thing about this approach is that you don't have to manually set the number of total frames | |
used and file name references used in the animation to build up your texture data; and this technique | |
also makes it a lot easier to remove the BaseTextures from TextureCache once you no longer need them, | |
so that you can free up precious memory! | |
Use this snippet with caution, I quickly scribbled it in, so not sure if it breaks, please let me know | |
in the comments if you found it useful or found an error. Cheers! | |
.icon { | |
background-image: url("social-icons.png") 0 0 no-repeat; | |
} | |
/* 1.25 dpr and up - including retina devices */ | |
@media | |
(-webkit-min-device-pixel-ratio: 1.25), | |
(min-resolution: 120dpi){ | |
.icon { | |
background-image: url("[email protected]"); |
[ | |
{ "keys": ["super+shift+forward_slash"], "command": "toggle_comment", "args": { "block": true } } | |
] |