I hereby claim:
- I am paulgoetze on github.
- I am paulgoetze (https://keybase.io/paulgoetze) on keybase.
- I have a public key whose fingerprint is 5F17 19BA 57E1 EBFD 39CA 144A E338 4A2D 3B25 3BC9
To claim this, I am signing this object:
| ONE = 0 | |
| TEN = 1 | |
| HUNDRED = 2 | |
| def german_words_for(number, triple_index) | |
| return 'null' if number == 0 | |
| return 'eins' if number == 1 && triple_index == 0 | |
| return 'minus eins' if number == -1 && triple_index == 0 | |
| words = [ |
| class PlainText | |
| class << self | |
| def write(&block) | |
| return unless block_given? | |
| @previous_line = current_line | |
| @line = [] | |
| @paragraph = [] | |
| undefine_methods |
| PATH | |
| remote: . | |
| specs: | |
| my-awesome-gem (0.1.0-java) | |
| activesupport (~> 4.0) | |
| lock_jar (~> 0.13) | |
| GEM | |
| remote: https://rubygems.org/ | |
| specs: |
| #!/bin/bash | |
| # Erlang | |
| ERLANG_VERSION=${ERLANG_VERSION:-20.2} | |
| ERLANG_CACHED_DOWNLOAD="${HOME}/cache/OTP-${ERLANG_VERSION}.tar.gz" | |
| ERLANG_DIR=${ERLANG_DIR:="$HOME/erlang"} | |
| # Elixir | |
| ELIXIR_VERSION=${ELIXIR_VERSION:-1.6.3} | |
| ELIXIR_CACHED_DOWNLOAD="${HOME}/cache/elixir-v${ELIXIR_VERSION}.zip" |
I hereby claim:
To claim this, I am signing this object:
| from os import path | |
| from io import BytesIO | |
| from sqlalchemy_media import Store | |
| from sqlalchemy_media.typing_ import FileLike | |
| from sqlalchemy_media.constants import KB | |
| from google.cloud import storage | |
| class GoogleCloudStore(Store): | |
| """ Store for dealing with Google Cloud Storage """ |
| # This module provides a function to compile city data using the free data | |
| # provided on http://download.geonames.org/export/dump. | |
| # It uses following files to compile a list of 4.4 mio. cities world-wide, | |
| # including their name, state (administrative level 1), country, time zone, | |
| # latitude, and longitude: | |
| # | |
| # * allCountries.txt (included in allCountries.zip) | |
| # * countryInfo.txt | |
| # * admin1CodesASCII.txt | |
| # |
| { | |
| "data": { | |
| "type": "users", | |
| "id": 1, | |
| "attributes": { | |
| "email": "paul@grammofy.com", | |
| "username": "paul" | |
| } | |
| } | |
| } |
| def test_get_user(client): | |
| # Do whatever is necessary to create a user here… | |
| response = client.get('/users/1') | |
| json_data = json.loads(response.data) | |
| assert 'data' in json_data | |
| assert 'type' in json_data['data'] | |
| assert 'id' in json_data['data'] | |
| assert 'attributes' in json_data['data'] |
| # tests/support/assertions.py | |
| import json | |
| from os.path import join, dirname | |
| from jsonschema import validate | |
| def assert_valid_schema(data, schema_file): | |
| """ Checks whether the given data matches the schema """ |