✔ ~/nkbt/react-component-template [master|✔]
13:25 $ `npm bin`/parallelshell '`npm bin`/eslint .' '`npm bin`/karma start ./karma.conf.js --single-run --reporters coverage'
fs.js:691
return binding.lstat(pathModule._makeLong(path));
^
Error: ENOENT, no such file or directory '/Users/nkbt/nkbt/react-component-template/reports/coverage/prettify.js'
at Object.fs.lstatSync (fs.js:691:18)
at Object.realpathSync (fs.js:1279:21)
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
#!/usr/bin/env node | |
const glob = require('glob'); | |
const path = require('path'); | |
const fs = require('fs'); | |
const mkdirp = require('mkdirp'); | |
const args = global.process.argv.slice(2); | |
const sourcesRoot = args.shift() || path.join(__dirname, '..', 'src'); | |
const specsRoot = args.shift() || path.join(__dirname, '..', 'spec'); |
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
[push] | |
default = current | |
[user] | |
email = nik@butenko.me | |
name = Nik Butenko | |
[core] | |
autocrlf = input | |
excludesfile = /Users/nkbt/.gitignore | |
ignorecase = true | |
[alias] |
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 FeedsContainer = require('./FeedsContainer'); | |
const $inject = []; | |
const feeds = function () { | |
const link = ($scope, $element) => { | |
const node = $element.get(0); | |
$scope.$watch('feeds', f => | |
React.render(<FeedsContainer isLoading={!f.length} feeds={f} />, node)); |
module Test
def get
y x
end
def x
'x'
end
Hi all, we have a problem doing i18n with React. This is about template strings.
What we need:
<p>
By clicking SignUp, you accept our <a href="/terms">Terms of Service</a>
</p>
How I would do it (not in React):
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
import React from 'react'; | |
import {List} from 'immutable'; | |
import {shouldComponentUpdate} from 'react-addons-pure-render-mixin'; | |
import {connect} from 'react-redux'; | |
import getFiltersData from './filtersData'; | |
import {filtersDataReady} from './reducer'; | |
const Filters = React.createClass({ | |
propTypes: { | |
getFiltersData: 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
[remote "pr"] | |
url = git@github.com:nkbt/react-collapse.git | |
fetch = +refs/pull/*/head:refs/remotes/pr/* |
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
#leftCol { | |
position: fixed; | |
} | |
#rightCol{ | |
display:none; | |
} | |
#pagelet_sidebar { | |
display:none; |
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 https = require('https'); | |
const vm = require('vm'); | |
const requireCache = {}; | |
const requireUrl = url => new Promise((resolve, reject) => url in requireCache ? | |
resolve(requireCache[url]) : | |
https.get(url, res => { | |
const result = []; | |
res.on('data', chunk => result.push(chunk.toString('utf-8'))); |