YARD CHEATSHEET http://yardoc.org
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.
array ( | |
'aa' => | |
array ( | |
'name' => 'Afar', | |
'native' => 'Afaraf', | |
'iso_639_1' => 'aa', | |
'iso_639_2' => 'aar', | |
'iso_639_3' => 'aar', | |
'script' => |
{ | |
"abk": { | |
"iso-639-2": "abk", | |
"iso-639-1": "ab", | |
"english": "Abkhazian", | |
"french": "abkhaze", | |
"german": "Abchasisch" | |
}, | |
"ace": { | |
"iso-639-2": "ace", |
{ | |
"ab": { | |
"iso-639-2": [ | |
"abk" | |
], | |
"iso-639-1": "ab", | |
"english": "Abkhazian", | |
"french": "abkhaze", | |
"german": "Abchasisch" | |
}, |
// 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'}, |
// ==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 |
// ==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 |
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.
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) |
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) |
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 |