This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"event_id": "01EJREWM6FP77YF2NZY34C5216", | |
"event_type": "form_response", | |
"form_response": { | |
"form_id": "dvWylptA", | |
"landed_at": "2020-09-21T13:50:42Z", | |
"submitted_at": "2020-09-21T13:50:42Z", | |
"answers": [ | |
{ | |
"type": "text", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Observable } from 'rxjs'; | |
export function fetchWithProgress( | |
url: string, | |
opts: RequestInit = {}, | |
): Observable<ProgressEvent | Response> { | |
return new Observable(observer => { | |
const xhr = new XMLHttpRequest(); | |
xhr.open(opts.method || 'get', url, true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function template({ template }, opts, { imports, componentName, props, jsx, exports }) { | |
const typeScriptTpl = template.smart({ plugins: ['typescript'] }); | |
return typeScriptTpl.ast` | |
import { Svg } from 'expo'; | |
import * as React from 'react'; | |
const { | |
Circle, | |
ClipPath, | |
Defs, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { MongoClient, Db } from 'mongodb'; | |
import { Observable } from 'rxjs'; | |
import { config } from '../core/config'; | |
import { logger } from '../core/logger'; | |
const urlFromConfig = config.mongo.url; | |
export const mongoConnector = (mongoUrl?: string) => { | |
const connection = new Observable<Db>(observer => { | |
logger.info('Trying to connect to mongo'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
####################################################################### | |
# version.sh - # | |
# This script will check for the latest commit badge # | |
# and will return a version numeber that corresponds # | |
# to the semver spec. # | |
# Latest commit tag should have '(patch)', '(minor)' or '(major) # | |
# in the comment. The script is not case sensitive. # | |
# Other badges will be interpreted as patch version # | |
# # |