I hereby claim:
- I am brennebeck on github.
- I am brennebeck (https://keybase.io/brennebeck) on keybase.
- I have a public key ASCVOL-kHiQ-vtCw9Cb9YNC0QWaA07jF-Gx0K_bV40rSJAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env ruby | |
| if ARGV.size != 2 | |
| puts "Merges Fields from Plist-Files together into a new file" | |
| puts "USAGE: ./plistmerge.rb source-file input-file" | |
| exit | |
| end | |
| # The values for those fields will be migrated from the source to the target file | |
| FieldsToMigrate = %w(latitude longitude) |
| #!/bin/sh | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # Set the colours you can use | |
| black='\033[0;30m' | |
| white='\033[0;37m' | |
| red='\033[0;31m' |
Testing React components seems simple at first. Then you need to test something that isn't a pure interaction and things seem to break down. These 4 patterns should help you write readable, flexible tests for the type of component you are testing.
I recommend doing all setup in the most functional way possible. If you can avoid it, don't set variables in a
beforeEach. This will help ensure tests are isolated and make things a bit easier to reason about. I use a pattern
that gives great defaults for each test example but allows every example to override props when needed:
| #### | |
| #### pyenv-virtualenv bash prompt customization | |
| #### | |
| # pyenv | |
| eval "$(pyenv init -)" | |
| # pyenv-virtualenv: |
| # | |
| # A CORS (Cross-Origin Resouce Sharing) config for nginx | |
| # | |
| # == Purpose | |
| # | |
| # This nginx configuration enables CORS requests in the following way: | |
| # - enables CORS just for origins on a whitelist specified by a regular expression | |
| # - CORS preflight request (OPTIONS) are responded immediately | |
| # - Access-Control-Allow-Credentials=true for GET and POST requests |
Getting started:
Related tutorial: http://cd64.de/mysql-cli
SQL joins infografic: http://cd64.de/sql-joins
| #!/bin/env node | |
| // OpenShift sample Node application | |
| var express = require('express'); | |
| var fs = require('fs'); | |
| /** | |
| * Define the sample application. | |
| */ | |
| var SampleApp = function() { |