I hereby claim:
- I am akoenig on github.
- I am akoenig (https://keybase.io/akoenig) on keybase.
- I have a public key whose fingerprint is 1A29 D86F E0D6 93E7 2932 328C 3BFF A19D A565 EA84
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env node | |
/* | |
* logbot | |
* | |
* Copyright(c) 2015 André König <[email protected]> | |
* MIT Licensed | |
* | |
* | |
*/ |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
{ | |
"name": "awesome-package", | |
"version": "1.0.0", | |
"description": "Well, an awesome package.", | |
"author": "André König <[email protected]>", | |
"main": "index", | |
"config": { | |
"distdir": "dist" | |
}, | |
"scripts": { |
export default [ | |
// | |
// The store shard function | |
// | |
({user}) => ({ | |
user | |
}), | |
// |
const moment = require('moment'); | |
// Einmal die Browser-Console öffnen ... | |
console.log(moment(new Date('2017-06-27T13:36:05.803Z')).fromNow()); |
I hereby claim:
To claim this, I am signing this object:
interface InviteInput { | |
input: { | |
email: string; | |
message?: string; | |
} | |
} | |
const invite = async (parent, args: InviteInput, context: Context, info) => { | |
await context.messaging.publish({ | |
type: "Invite", |
import { request } from "graphql-request"; | |
export const fetchUserRegistrationsInLastHour = async (period: string) => { | |
const query = ` | |
query UserRegistrationsWithinPeriod($period: String!) { | |
users(where: { | |
createdAt: $period | |
} { | |
id | |
} |
{ | |
user { | |
id | |
measuredAt | |
registrations | |
logins | |
} | |
} |