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 http = require('http'); | |
| var data = []; | |
| var length; | |
| var req = http.request('http://mail.yandex.ru', function(res) { | |
| res.on('data', function (chunk) { | |
| data.push(chunk); | |
| }); |
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
| const classnames = require('classnames'); | |
| const props = { | |
| checked: true, | |
| color: 'red', | |
| disabled: true, | |
| focused: false, | |
| hovered: true, | |
| size: 'xl', | |
| type: 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
| #!/usr/bin/env node | |
| /* eslint no-console: 0 */ | |
| const fs = require('fs'); | |
| for (let i = 2; i < process.argv.length; i++) { | |
| const filename = process.argv[i]; | |
| if (filename === process.argv[1]) { | |
| continue; |
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
| const no = require( 'nommon' ); | |
| const update = require( 'immutability-helper' ); | |
| const data = { | |
| foo: { | |
| bar: { | |
| quu: [ 1, 2, 3, 4, 5 ], | |
| }, | |
| status: false, | |
| }, |
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
| const no = require( 'nommon' ); | |
| const update = require( 'immutability-helper' ); | |
| const data = { | |
| foo: { | |
| bar: { | |
| quu: [ 1, 2, 3, 4, 5 ], | |
| }, | |
| status: false, | |
| }, |
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
| const React = require( 'react' ); | |
| const { connect } = require( './store' ); | |
| class App extends React.Component { | |
| componentDidMount() { | |
| this.props.items.load_more(); | |
| } |
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
| module.exports = { | |
| presets: [ | |
| [ | |
| '@babel/preset-env', | |
| { | |
| targets: { | |
| node: true, | |
| }, | |
| }, | |
| ], |
OlderNewer