- react-native: 0.59.10
npm install react-native-newrelic --save| /* | |
| On OS X, basic text manipulations (left, right, command+left, etc) make use of the system key bindings, | |
| and don't need to be repeated here. Anything listed here will take precedence, however. | |
| */ | |
| [ | |
| { "keys": ["super+shift+n"], "command": "new_window" }, | |
| { "keys": ["super+shift+w"], "command": "close_window" }, | |
| { "keys": ["super+o"], "command": "prompt_open" }, | |
| { "keys": ["super+shift+t"], "command": "reopen_last_file" }, | |
| { "keys": ["super+alt+up"], "command": "switch_file", "args": {"extensions": ["cpp", "cxx", "cc", "c", "hpp", "hxx", "hh", "h", "ipp", "inl", "m", "mm"]} }, |
| rails new . \ | |
| --api \ | |
| --minimal \ # https://github.com/rails/rails/blob/4a4b3998300fbebf537b770d842066b13dee5072/railties/lib/rails/generators/rails/app/app_generator.rb | |
| --skip-asset-pipeline \ | |
| --skip-bundle \ | |
| --skip-keeps \ | |
| --skip-listen \ | |
| --skip-spring \ | |
| --skip-sprockets \ | |
| --skip-test \ |
| # Where n is a positive integer, the function f(n) satisfies the following: | |
| # | |
| # f(0) = 0 | |
| # f(1) = 1 | |
| # f(n) = f(n - 1) + f(n - 2) | |
| # | |
| # Create a program to find f(n) | |
| def super_sum(number) | |
| results = [0, 1] |
| git_hash=$(git rev-parse --short HEAD) | |
| curl -X POST -H "x-api-key:asdf1234" --data "deployment[app_name]=&deployment[revision]=${git_hash}" https://api.newrelic.com/deployments.xml |
| pg_restore --verbose --clean --no-acl --no-owner -h localhost -U myuser -d mydb latest.dump |
commit all the classwork and homework files from yesterday (you can do as many commits as you want):
git add <files>
git commit -m "COMMIT MESSAGE"
push to GitHub:
git push origin wXdY-gitusername
| # terminal customs | |
| export BUNDLER_EDITOR=/usr/local/bin/subl | |
| export CLICOLOR=1 | |
| # history | |
| export HISTCONTROL=erasedups | |
| export HISTSIZE=100000 | |
| # fixes Postgre failure | |
| export PGHOST=localhost |
| $siteWidth: 1024px; | |
| $gutterWidth: 20px; | |
| $sidebarWidth: 300px; | |
| body { | |
| margin: 0 auto; | |
| width: $siteWidth; | |
| } | |
| .content { |
| @mixin border-radius($value) { | |
| -webkit-border-radius: $value; | |
| -moz-border-radius: $value; | |
| border-radius: $value; | |
| } | |
| div { | |
| @include border-radius(10px); | |
| } |