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 paramsToProps from 'paramsToProps.js' | |
const MainNavigator = StackNavigator({ | |
firstScreen: { screen: paramsToProps(FirstScreenComponent) }, | |
secondScreen: { screen: paramsToProps(SecondScreenComponent) }, | |
}); |
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 ruby | |
require 'open-uri' | |
require 'pathname' | |
require 'json' | |
def strip_hash(f) | |
ext = f.extname | |
if ext.include?("?") |
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
find . -type d -name '.git' | while read dir ; do sh -c "cd $dir/../ && echo -e \"\nGIT STATUS IN ${dir//\.git/}\" && git status -s" ; done |
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
'use strict'; | |
var profiler = require('v8-profiler'); | |
profiler.startProfiling(); | |
// ... | |
var cpuProfile = profiler.stopProfiling(); | |
require('fs').writeFileSync(__dirname + '/foo.cpuprofile', JSON.stringify(cpuProfile)); |