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
setVideoDimensions: function() { | |
var $wrapper = $('.video-wrapper'); | |
var $video = $('.video'); | |
var height = $wrapper.height(); | |
var width = $wrapper.width(); | |
// Maintain 16 / 9 aspect ratio | |
if (width / height > 16 / 9) { | |
newWidth = height / 9 * 16; | |
newHeight = 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
# Submit PR for current branch against master | |
pr () { | |
local repo=`git remote -v | grep -m 1 "(push)" | sed -e "s/.*github.com[:/]\(.*\)\.git.*/\1/"` | |
local branch=`git name-rev --name-only HEAD` | |
echo "... creating pull request for branch \"$branch\" in \"$repo\"" | |
open https://github.com/$repo/pull/new/$branch | |
} |
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
var merge = require('react/lib/merge'); | |
var _ = require('underscore'); | |
var a = { | |
name: 'Tommy', | |
specs: { | |
height: { | |
inches: 60, | |
feet: 6.085 | |
}, |
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
Show hidden characters
{ | |
"bold_folder_labels": true, | |
"caret_style": "wide", | |
"color_scheme": "Packages/Theme - Flatland/Flatland Dark.tmTheme", | |
"detect_indentation": true, | |
"draw_centered": true, | |
"draw_white_space": "all", | |
"folder_exclude_patterns": | |
[ | |
"tmp/cache/assets/development", |
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
React.createClass({ | |
componentDidMount: function() { | |
this.foo = 'bar'; | |
}, | |
componentWillUnmount: function() { | |
this.foo = null; | |
}, |
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
=vertically-centered-child | |
font-size: 0 | |
&:before | |
content: '' | |
display: inline-block | |
height: 100% | |
vertical-align: middle | |
> * |
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
{ | |
"keys": ["control+alt+;"], "command": "align_tab", | |
"args" : { | |
"user_input" : ":/f", | |
} | |
}, | |
{ | |
"keys": ["control+alt+="], "command": "align_tab", | |
"args" : { |
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
var Floodlight = { | |
init: function() { | |
this.binds(); | |
this.vars(); | |
}, | |
vars: function() { | |
this.$links = $('.fl-record-click') |
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
//= require_tree . | |
PROJECT.global.init(); | |
// All the files in the tree here: | |
// global.js | |
var PROJECT = PROJECT || {}; |
OlderNewer