I hereby claim:
- I am einselbst on github.
- I am einselbst (https://keybase.io/einselbst) on keybase.
- I have a public key whose fingerprint is 694B C050 2B07 FC53 48C9 FA5D AE04 2F71 026F 275A
To claim this, I am signing this object:
import unittest | |
from pyramid import testing | |
from paste.deploy.loadwsgi import appconfig | |
from webtest import TestApp | |
from mock import Mock | |
from sqlalchemy import engine_from_config | |
from sqlalchemy.orm import sessionmaker | |
from app.db import Session |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
from sqlalchemy import create_engine | |
from sqlalchemy.orm import Session | |
from myapp.models import BaseModel | |
import pytest | |
@pytest.fixture(scope='session') | |
def engine(): | |
return create_engine('postgresql://localhost/test_database) |
from flask import Flask, render_template | |
from flask.ext.wtf import Form, widgets, SelectMultipleField | |
SECRET_KEY = 'development' | |
app = Flask(__name__) | |
app.config.from_object(__name__) | |
class MultiCheckboxField(SelectMultipleField): | |
widget = widgets.ListWidget(prefix_label=False) |
cribbed from http://pastebin.com/xgzeAmBn
Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.
// ==UserScript== | |
// @name BitMex USD Converter | |
// @namespace https://bitmex.com/ | |
// @version 0.13 | |
// @description Get some sanity into your gambling. | |
// @author koinkraft, modified by @Jolly - https://www.twitter.com/Jolly | |
// @grant none | |
// @include https://bitmex.com/* | |
// @include https://www.bitmex.com/* | |
// @require https://code.jquery.com/jquery-2.1.4.min.js |
// ==UserScript== | |
// @name BitMex USD Converter | |
// @namespace https://bitmex.com/ | |
// @version 0.14 | |
// @description Get some sanity into your gambling. | |
// @author koinkraft, @Jolly, einSelbst | |
// @grant none | |
// @include https://bitmex.com/* | |
// @include https://www.bitmex.com/* | |
// @require https://code.jquery.com/jquery-2.1.4.min.js |
// https://www.iso.org/obp/ui/#search | |
const isoCountryCodes = [ | |
{name: 'Andorra', alphaTwoCode: 'AD', alphaThreeCode: 'AND', numeric: '020'}, | |
{name: 'United Arab Emirates', alphaTwoCode: 'AE', alphaThreeCode: 'ARE', numeric: '784'}, | |
{name: 'Afghanistan', alphaTwoCode: 'AF', alphaThreeCode: 'AFG', numeric: '004'}, | |
{name: 'Antigua and Barbuda', alphaTwoCode: 'AG', alphaThreeCode: 'ATG', numeric: '028'}, | |
{name: 'Anguilla', alphaTwoCode: 'AI', alphaThreeCode: 'AIA', numeric: '660'}, | |
{name: 'Albania', alphaTwoCode: 'AL', alphaThreeCode: 'ALB', numeric: '008'}, | |
{name: 'Armenia', alphaTwoCode: 'AM', alphaThreeCode: 'ARM', numeric: '051'}, | |
{name: 'Angola', alphaTwoCode: 'AO', alphaThreeCode: 'AGO', numeric: '024'}, |
{ | |
"ab": { | |
"iso-639-2": [ | |
"abk" | |
], | |
"iso-639-1": "ab", | |
"english": "Abkhazian", | |
"french": "abkhaze", | |
"german": "Abchasisch" | |
}, |