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
├── atom-ternjs@0.6.8 | |
├── autocomplete-modules@1.0.0 | |
├── chester-atom-syntax@0.1.1 | |
├── circle-ci@0.10.0 | |
├── docblockr@0.7.3 | |
├── emmet@2.3.12 | |
├── file-icons@1.5.8 | |
├── language-jade@0.5.1 | |
├── language-nginx@0.5.4 | |
├── language-rust@0.4.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
require('crypto').randomBytes(32, function(ex, buf) { | |
console.log(buf.toString('hex')); | |
}); |
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
function compress(objects) { | |
const fieldsSet = {}; | |
for (let i = 0; i < objects.length; i++) { | |
const keys = Object.keys(objects[i]); | |
for (let j = 0; j < keys.length; j++) { | |
fieldsSet[keys[j]] = 1; | |
} | |
} | |
const fields = Object.keys(fieldsSet); |
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
atom-pair@2.0.5 | |
atom-ternjs@0.7.1 | |
autocomplete-modules@1.0.0 | |
chester-atom-syntax@0.1.1 | |
circle-ci@0.10.0 | |
docblockr@0.7.3 | |
editorconfig@1.0.1 | |
emmet@2.3.12 | |
file-icons@1.6.3 | |
language-docker@1.1.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
const Input = React.createClass({ | |
render() { | |
if (this.props.type === 'select') { | |
return ( | |
<select {...this.props}>{this.props.children}</select>; | |
); | |
} | |
} | |
}) |
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
.ribbon { | |
font-size: 16px !important; | |
width: 50%; | |
position: relative; | |
background: @brand-primary; | |
color: #fff; | |
text-align: center; | |
padding: 1em 2em; | |
margin: 0 auto; |
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
function todoReducer(state, action) { | |
switch (action.type) { | |
case 'ADD_TODO': | |
return [action.payload, ...state]; | |
default: | |
return state; | |
} | |
} | |
const actions = [ |
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 React = require('react'); | |
const Form = React.createClass({ | |
propTypes: { | |
onSubmit: React.PropTypes.func.isRequired, | |
defaultValue: React.PropTypes.object.isRequired, | |
children: React.PropTypes.node.isRequired | |
}, | |
getInitialState() { | |
return Object.assign({}, this.props.defaultValue); |
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 React = require('react'); | |
const EventListener = require('react/lib/EventListener'); | |
const {shouldComponentUpdate} = require('react/lib/ReactComponentWithPureRenderMixin'); | |
const InfinityScroll = React.createClass({ | |
propTypes: { | |
children: React.PropTypes.node.isRequired, | |
enabled: React.PropTypes.bool.isRequired, | |
threshold: React.PropTypes.number.isRequired, | |
onScrollDown: React.PropTypes.func.isRequired |
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 http = require('http'); | |
var redis = require('redis'); | |
var client = redis.createClient(); | |
var server = http.createServer(function (req, res) { | |
client.get('foo', function(err, foo) { | |
res.writeHead(200, { | |
'Content-Type': 'application/json' | |
}); | |
res.end(JSON.stringify({ |