This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 || {}; |
This file contains hidden or 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
<?php | |
class RomanNumeralsConverter | |
{ | |
protected static $mappings = [ | |
'I' => 1, | |
'V' => 5, | |
'X' => 10, | |
'L' => 50, | |
'C' => 100, |
This file contains hidden or 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
# http://EditorConfig.org | |
root = true | |
# Unix-style newlines with a newline ending every file | |
[*] | |
end_of_line = lf | |
insert_final_newline = true | |
[*.json, *.js, *.html, *.erb, *.scss, *.sass, *.rb] |
This file contains hidden or 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 gulp = require('gulp'); | |
var sass = require('node-sass'); | |
var handleErrors = require('../util/handleErrors'); | |
var config = require('../config').sass; | |
var mkdirp = require('mkdirp') | |
var fs = require('fs') | |
var getDirName = require('path').dirname | |
var writeFile = function(path, contents){ | |
mkdirp(getDirName(path), function(err){ |
This file contains hidden or 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
#!/bin/bash | |
# Sensible defaults | |
# So clean | |
clear | |
echo "Deleting all old node_modules folders..." | |
# Process things | |
find ${1:-'~/Sites'} -type d -mtime +120 -maxdepth 1 | while read line; do |
This file contains hidden or 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
<!-- OPTION A --> | |
<article class="featured-home"> | |
<figure class="featured-home__figure"> | |
<img src="#TODO" alt=""> | |
</figure> | |
<h4 class="featured-home__header">Poipu, Hawaii Sky</h4> | |
<footer class="featured-home__footer"> | |
<p>from $199/Night</p> | |
</footer> | |
</article> |