I hereby claim:
- I am grsabreu on github.
- I am gabrielrubens (https://keybase.io/gabrielrubens) on keybase.
- I have a public key whose fingerprint is F0B2 4634 455E AC4E F0A8 C8C9 595A 9856 28B4 03FC
To claim this, I am signing this object:
# { fn:function(args){} } => { fn(args){} } | |
find . -name \*.js -exec perl -p -i -e 's/:\s?function\s?\((.+)?\)\s?/(\1)/' {} \; |
import React from 'react'; | |
import { | |
View, | |
Text, | |
TextInput, | |
TouchableHighlight, | |
} from 'react-native'; | |
import Meteor from 'react-native-meteor'; | |
import { Actions } from 'react-native-router-flux'; |
// file a.js | |
import foo from 'foo'; | |
export default () => foo.log(2); | |
// file a.test.js | |
import proxyquire from 'proxyquire'; | |
import { spy } from 'sinon'; | |
const foo = { |
import React from 'react' | |
import UserContainer from '../some/where' | |
class Foo extends React.Component { | |
render(){ | |
} | |
} | |
export default UserContainer(Foo) |
import React from 'react'; | |
import UserContainer from '../some/where'; | |
import ItemsContainer from '../some/where/else' | |
// Yes, we can use more than one! | |
@UserContainer | |
@ItemsContainer | |
export default class Foo extends React.Component { | |
render(){} | |
} |
addIndex () { | |
if [[ -f $1/index.js ]]; then | |
return 0; | |
fi | |
for file in `ls $1`; do | |
if [[ -d $1/$file ]]; then | |
echo "import './$file';" >> $1/index.js | |
addIndex $1/$file | |
else |
import React from 'react'; | |
import proxyquire from 'proxyquire'; | |
import { shallow } from 'enzyme'; | |
import { expect, assert } from 'chai'; | |
import { stub } from 'sinon'; | |
// This ensures that proxyquire won't run the file before we | |
// mock its imports. | |
const proxyquireStrict = proxyquire.noCallThru(); | |
// Let's create our mocked version of the libraries |
pactl list | grep "Monitor Source" | sed 's/Monitor\ Source:\ /pulse:\/\//' | \xargs cvlc --sout '#transcode{acodec=mp3,ab=128,channels=2}:standard{access=http,dst=0.0.0.0:8888/pc.mp3}' -vvv -- |
{ | |
"presets": ["es2015"], | |
"plugins": ["syntax-flow", "transform-flow-strip-types", "syntax-object-rest-spread", "transform-object-rest-spread"] | |
} |
I hereby claim:
To claim this, I am signing this object: