The Pragamatic ProgrammerThe Passionate ProgrammerProgramming ElixirGrokking AlgorithmsThe Art of Readable Code- Practical Object-Oriented Design in Ruby
- Rails 4 Test Prescriptions
- Ruby Performance Optimization
- Eloquent Ruby
- Design Patterns in Ruby
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 { BrowserRouter as Router, Switch } from 'react-router-dom' | |
import routes from './routes' | |
import FancyRoute from './components/tools/FancyRoute' | |
const App = props => | |
<Router> | |
<Switch> | |
{routes.map((route, i) => | |
<FancyRoute key={i} {...route} /> |
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 | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |
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 -l | |
# A git hook script to find and fix trailing whitespace | |
# in your commits. Bypass it with the --no-verify option | |
# to git-commit | |
# | |
.git/hooks/pre-commit-master-no-no | |
if [[ $? == 1 ]] | |
then |
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
# | |
# Paste this script in your .git/hooks/pre-commit file (create one if it doesn't exist yet) | |
# To prevent debug code from being accidentally committed, simply add a comment near your | |
# debug code containing the keyword !nocommit and this script will abort the commit. | |
# | |
if git commit -v --dry-run | grep '!nocommit' >/dev/null 2>&1 | |
then | |
echo "Trying to commit non-committable code." | |
echo "Remove the !nocommit string and try 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
process.env.NODE_ENV = "development" | |
const fs = require("fs-extra") | |
const paths = require("react-scripts/config/paths") | |
const webpack = require("webpack") | |
const config = require("react-scripts/config/webpack.config.dev.js") | |
// removes react-dev-utils/webpackHotDevClient.js at first in the array | |
config.entry = config.entry.filter( | |
entry => !entry.includes("webpackHotDevClient") |
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
[user] | |
name = David T | |
email = davetorbeck@gmail.com | |
[core] | |
excludesfile = /Users/davidtorbeck/.gitignore_global | |
editor = subl -n -w | |
[difftool "sourcetree"] | |
cmd = opendiff \"$LOCAL\" \"$REMOTE\" | |
path = | |
[mergetool "sourcetree"] |
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
{ | |
"scripts": { | |
"dev": "webpack-dev-server --open --hot", | |
"build": "webpack --progress --hide-modules", | |
"test": "cross-env NODE_ENV=test nyc mocha-webpack --webpack-config webpack.config.js --require test/setup.js test/**/*.spec.js", | |
"test-debug": "cross-env NODE_ENV=test nyc node --inspect-brk ./node_modules/mocha-webpack/lib/cli --webpack-config webpack.config.js --require test/setup.js test/**/*.spec.js" | |
}, | |
} |
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
Documentation: | |
Enabled: false | |
Metrics/ModuleLength: | |
Exclude: | |
- "**/*_spec.rb" | |
Style/SymbolArray: | |
MinSize: 5 | |
Style/EmptyMethod: |
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/sh | |
# Redirect output to stderr. | |
exec 1>&2 | |
# enable user input | |
exec < /dev/tty | |
consoleregexp='console.log|debugger|binding.pry' | |
# CHECK | |
if test $(git diff --cached | grep -E $consoleregexp | wc -l) != 0 | |
then |
NewerOlder