I hereby claim:
- I am awendland on github.
- I am awendland (https://keybase.io/awendland) on keybase.
- I have a public key ASCXIHQRVrtIg32gDOXbZwDRIvgqnAoH-IuvcJNt911vzQo
To claim this, I am signing this object:
package com.alexwendland.example.utils; | |
/* | |
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. | |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
* | |
* This code is free software; you can redistribute it and/or modify it | |
* under the terms of the GNU General Public License version 2 only, as | |
* published by the Free Software Foundation. Oracle designates this | |
* particular file as subject to the "Classpath" exception as provided | |
* by Oracle in the LICENSE file that accompanied this code. |
import android.content.Context; | |
import android.os.Bundle; | |
import com.google.android.gms.common.api.Api; | |
import com.google.android.gms.common.api.GoogleApiClient; | |
import java.util.ArrayList; | |
import java.util.List; | |
/** |
export default class WebStorage { | |
private key: string; | |
private storageArea: Storage; | |
constructor(key: string, storageArea = window.localStorage) { | |
this.key = key; | |
this.storageArea = storageArea; | |
} |
/** | |
* Optional wrapper type for functional handling of nulls/falsy values | |
* | |
* @TODO Support chaining of .or() | |
*/ | |
export class Optional<T> { | |
constructor( | |
private _val: T, | |
private _justNull = false) {} |
I hereby claim:
To claim this, I am signing this object:
{ | |
"id": "http://some.site.somewhere/entry-schema#", | |
"$schema": "http://json-schema.org/draft-04/schema#", | |
"description": "schema for today I learned entry", | |
"type": "object", | |
"required": [ "title" ], | |
"properties": { | |
"title": { | |
"type": "string" | |
}, |
const expect = require('chai').expect; | |
const arr = ['email', 'password']; | |
expect(arr).to.have.members(['email', 'password']); // true | |
expect(arr).to.have.members(['email']); // false | |
expect(arr).to.have.members(['email', 'password','extra']); //false |
command
in container_command
runs in its own shell. Therefore, you can't rely on setting up environment variables before and using them later.files
config property and place it somewhere accessible.command
in a .sh
file. In that .sh
file, source the environment variables file that was created earlier. Set the command
to execute the .sh
file. Make sure that the .sh
file has executable permissions set locally because git
syncs those.from __future__ import print_function | |
import datetime | |
# Setup UDP server | |
import socket | |
UDPSock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
listen_addr = ("", 21567) | |
UDPSock.bind(listen_addr) | |
print("Listening on port {}\n".format(listen_addr[1])) | |
print("Commands: `COMMAND PARAMS`") |