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
const notifications = [ | |
{ | |
date: "Nov 10, 2015 8:00:00", | |
message: "Tagged in a photo", | |
}, | |
{ | |
date: "Nov 10, 2015 9:00:00", | |
message: "Mentioned in a post", | |
}, | |
]; |
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
app | |
├── config | |
│ └── routes.js | |
├── screens | |
│ └── App | |
│ ├── components | |
│ ├── screens | |
│ │ ├── Admin | |
│ │ │ ├── components | |
│ │ │ ├── screens |
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
const TextField = React.createClass({ | |
displayName: 'TextField', | |
renderLabelText() { | |
if (!this.props.label) return null; | |
return ( | |
<span>{this.props.label}</span> | |
); |
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
_.mixin({ | |
'camelCaseKeys' : function(obj) { | |
return _.object(_.map(_.pairs(obj), function(pair) { | |
return [_.camelCase(pair[0]), pair[1]]; | |
})); | |
} | |
}); |
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
[merge] | |
tool = sublimerge | |
[mergetool "sublimerge"] | |
cmd = sublime -n --wait \"$REMOTE\" \"$BASE\" \"$LOCAL\" \"$MERGED\" --command \"sublimerge_diff_views\" | |
trustExitCode = false | |
[diff] | |
tool = sublimerge |
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
#!/bin/bash | |
# backend/run | |
echo -n -e "\033]0;Rails\007" | |
foreman start | |
echo -n -e "\033]0;\007" |
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
// Twitter Feed | |
add_shortcode( 'twitter', 'rl_twitter_feed' ); | |
function rl_twitter_feed( $atts ) { | |
// Attributes | |
if( isset( $atts['handle'] ) ) | |
$handle = $atts['handle']; | |
// Check transients | |
$body = get_transient( 'rl_twitter_data' ); |
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
git rm --cached myFile.ext |
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
/** | |
* Converts hexidecimal to rgb format | |
*/ | |
function lab_hex_to_rgb( $hex, $opacity = 1 ) { | |
$hex = str_replace( '#', '', $hex ); | |
// if in 3 digit format | |
if( strlen( $hex ) == 3) { |
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
App.Store = DS.Store.extend({ | |
revision : 11, | |
adapter : DS.RESTAdapter.create({ | |
url : 'https://proposals.firebaseio.com' | |
}), | |
}); |