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
// 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: |
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
... | |
"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 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 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 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 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 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
/* | |
Some simple Github-like styles, with syntax highlighting CSS via Pygments. | |
*/ | |
body{ | |
font-family: helvetica, arial, freesans, clean, sans-serif; | |
color: #333; | |
background-color: #fff; | |
border: none; | |
line-height: 1.5; | |
margin: 2em 3em; |
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
image: "ruby:2.3.1" | |
variables: | |
POSTGRES_DB: "your_project-test" | |
POSTGRES_USER: "postgres" | |
POSTGRES_PASSWORD: "" | |
RAILS_ENV: "test" | |
SETUP_DB: "false" | |
DATABASE_URL: "postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@postgres:5432/$POSTGRES_DB" |
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
FROM ruby:2.4.1 | |
MAINTAINER "João Tarla" <[email protected]> | |
RUN apt-get update -qq && apt-get install -y -f --force-yes apt-transport-https && \ | |
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5 && \ | |
echo deb http://archive.ubuntu.com/ubuntu precise main universe > /etc/apt/sources.list && \ | |
echo deb http://archive.ubuntu.com/ubuntu precise-updates main universe >> /etc/apt/sources.list && \ | |
echo deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main >> /etc/apt/sources.list && \ | |
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \ | |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \ |
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
db: | |
image: postgres:9.6.3-alpine | |
ports: | |
- "5432" | |
web: | |
build: . | |
command: bundle exec rails s -p 9000 -b '0.0.0.0' | |
environment: | |
PORT: 9000 | |
links: |
OlderNewer