This file contains hidden or 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
FROM ruby:2.3-alpine | |
MAINTAINER Joao Tarla <[email protected]> | |
ENV BUILD_PACKAGES="curl-dev ruby-dev build-base bash" \ | |
DEV_PACKAGES="zlib-dev libxml2-dev libxslt-dev tzdata yaml-dev postgresql-dev" \ | |
RUBY_PACKAGES="ruby-json yaml nodejs" | |
RUN apk --update add --no-cache --update\ | |
$BUILD_PACKAGES \ | |
$DEV_PACKAGES \ |
This file contains hidden or 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
db: | |
image: kiasaki/alpine-postgres | |
ports: | |
- "5432" | |
web: | |
build: . | |
command: bundle exec rails s -p 9000 -b '0.0.0.0' | |
environment: | |
BUNDLE_JOBS: 2 | |
PORT: 9000 |
This file contains hidden or 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
--colour | |
--format documentation | |
--profile | |
--drb |
This file contains hidden or 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 = $NAME | |
email = $EMAIL | |
[alias] | |
serve = !git daemon --reuseaddr --verbose --base-path=. --export-all --enable=receive-pack ./.git | |
hist = !git log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all | |
[push] | |
default = simple |
This file contains hidden or 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
... | |
"awesome test" in new WithApplication { | |
/* async */ | |
val x = Future { 1 } | |
x must beEqualTo(1).await | |
/* xgh */ | |
val y = Await.result(Future { 1 }, 10 seconds) | |
y must beEqualTo(1) // whitout .async |
This file contains hidden or 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
// Udacity's code | |
import org.json.JSONArray; | |
import org.json.JSONException; | |
import org.json.JSONObject; | |
public class WeatherDataParser { | |
/** | |
* Given a string of the form returned by the api call: |
NewerOlder