I hereby claim:
- I am DesignByOnyx on github.
- I am ryanwheale (https://keybase.io/ryanwheale) on keybase.
- I have a public key whose fingerprint is 0DAA EB7B A5F5 F7AB 35F4 7593 818E 802D A122 192F
To claim this, I am signing this object:
function() { | |
var e, t, n, r, i, o, a = arguments[0] || {}, s = 1, u = arguments.length, l = !1; | |
for ("boolean" == typeof a && (l = a, a = arguments[s] || {}, s++), "object" == typeof a || v(a) || (a = {}), s === u && (a = this, s--); s < u; s++) | |
if (null != (e = arguments[s])) | |
for (t in e) r = e[t], "__proto__" !== t && a !== r && (l && r && (ce.isPlainObject(r) || (i = Array.isArray(r))) ? (n = a[t], o = i && !Array.isArray(n) ? [] : i || ce.isPlainObject(n) ? n : {}, i = !1, a[t] = ce.extend(l, o, r)) : void 0 !== r && (a[t] = r)); | |
return a | |
} |
const bootstrapEnvVarsTests = <ModuleType>(modulePath: string) => { | |
const OLD_ENV = process.env; | |
beforeEach(() => { | |
// this allows us to reassign env vars for individual tests | |
jest.resetModules(); | |
process.env = { ...OLD_ENV }; | |
}); | |
afterAll(() => { | |
process.env = OLD_ENV; |
/* Minified: | |
javascript: !function(e){for(var t,n=/(.*)(#\/[^'"<]+)(['"<]?.*)/,a=location.href.split("/").slice(0,-1).join("/"),l=e.evaluate("//td[contains(., '$ref')]/span/text()",e,null,4,null),o=[];t=l.iterateNext();)n.test(t.textContent)&&o.push(t);o.forEach(({parentNode:e,textContent:t})=>{let l=t.replace(n,"$2").split("/").pop();e.innerHTML=e.innerHTML.replace(n,`$1<a href="${a+"/"+l+".yaml"}">$2</a>$3`)})}(document); | |
*/ | |
// tslint:disable | |
(function(doc) { | |
var regRef = /(.*)(#\/[^'"<]+)(['"<]?.*)/; | |
var basePath = location.href.split("/").slice(0, -1).join("/"); | |
var matches = doc.evaluate("//td[contains(., '$ref')]/span/text()", doc, null, 4, null); | |
var nodes = []; | |
var node; |
I hereby claim:
To claim this, I am signing this object:
var wkx = require('wkx') | |
var pg = require('pg') | |
var pgUtil = require('pg/lib/utils') | |
const geoParser = { | |
init(knex){ | |
// 1. Convert postgis data coming out of the db into geoJSON | |
// Every postgres installation will have different oids for postgis geo types. | |
knex | |
.raw('SELECT oid, typname AS name FROM pg_type WHERE typname IN (\'geography\', \'geometry\');') |
Define your models with a transport (this is just sugar for can-connect)
import { Model, transport } from 'ylem-model';
const Person = Model({
id: { type: 'number', identity: true },
name: { type: 'string' },
email: { type: 'string' },
age: { type: 'number' },