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
#!/bin/bash | |
# fork of https://codecov.io/bash | |
set -e +o pipefail | |
VERSION="0db33a1" | |
url="https://codecov.io" | |
url_o="" | |
verbose="0" |
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
#!/bin/bash | |
# | |
# Retroflow | |
# | |
# This makes it easier to retrofit Flow type checking onto your existing code. | |
# | |
# Given a path argument, it finds all the js/jsx files under that path that | |
# don't have the Flow (flowtype.org) preamble. It then adds it and runs the | |
# Flow check. If anything fails, it removes it again. | |
# |
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 | |
/* | |
For Swagger 1.2 docs format. | |
Hardcode the base path in the urlFor() function. | |
Assumes Node 6+. | |
*/ |
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
-- based on post by iNik: http://forums.omnigroup.com/showthread.php?p=101947#post101947 | |
global theTitle, theTaskNote | |
set theTaskNote to "" | |
tell application "Google Chrome" | |
-- activate | |
tell window 1 to tell active tab | |
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
# bash completion for rake | |
# | |
# some code from on Jonathan Palardy's http://technotales.wordpress.com/2009/09/18/rake-completion-cache/ | |
# and http://pastie.org/217324 found http://ragonrails.com/post/38905212/rake-bash-completion-ftw | |
# | |
# For details and discussion | |
# http://turadg.aleahmad.net/2011/02/bash-completion-for-rake-tasks/ | |
# | |
# INSTALL | |
# |
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
#!/bin/bash | |
echo "Testing prod build for modules in src that aren't ever imported." | |
echo | |
echo "NOTE: Any dev-only imports will appear to be unused." | |
USED_LIST_PATH=usedModules.txt | |
STATS_PATH=public/assets/stats.json |
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'; | |
/** | |
* Since React v15.5, there's a warning printed if you access `React.createClass` or `React.PropTypes` | |
* https://reactjs.org/blog/2017/04/07/react-v15.5.0.html#new-deprecation-warnings | |
* | |
* `import * as React from 'react'` is required by Flowtype https://flow.org/en/docs/react/types/ , | |
* but the * causes both those deprecated getters to be called. | |
* This is particularly annoying in Jest since every test prints two useless warnings. | |
* |
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 | |
/** | |
* Flowtype understands Node (or Haste) imports but not Webpack. | |
* | |
* Many codebases have webpack set up like: | |
* src/foo.js | |
* src/components/Bar.jsx | |
* | |
* And then import them like `require('foo')` or `require/components/Bar.jsx` | |
* |
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 sh | |
brew update | |
# upgrade any that were already installed | |
brew upgrade rbenv ruby-build readline openssl | |
# install what's missing | |
brew install rbenv ruby-build readline openssl |
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
module MyApp | |
class Application < Rails::Application | |
require Rails.root + 'lib/custom_public_exceptions' | |
config.exceptions_app = CustomPublicExceptions.new Rails.public_path | |
end | |
end |