Skip to content

Instantly share code, notes, and snippets.

View akoenig's full-sized avatar
🐝

André König akoenig

🐝
View GitHub Profile
@akoenig
akoenig / keybase.md
Created September 24, 2014 07:24
keybase.md

Keybase proof

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:

@akoenig
akoenig / index.js
Last active August 29, 2015 14:13
logbot - Simple IRC log bot
#!/usr/bin/env node
/*
* logbot
*
* Copyright(c) 2015 André König <[email protected]>
* MIT Licensed
*
*
*/
@akoenig
akoenig / 0_reuse_code.js
Last active August 29, 2015 14:23
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@akoenig
akoenig / package.json
Created June 27, 2015 18:19
npm: referencing properties
{
"name": "awesome-package",
"version": "1.0.0",
"description": "Well, an awesome package.",
"author": "André König <[email protected]>",
"main": "index",
"config": {
"distdir": "dist"
},
"scripts": {
@akoenig
akoenig / myEditor.js
Last active April 29, 2016 08:29 — forked from grebaldi/myEditor.js
How runtime dependencies could work for Guevara
export default [
//
// The store shard function
//
({user}) => ({
user
}),
//
@akoenig
akoenig / index.js
Last active June 28, 2017 07:57
requirebin sketch
const moment = require('moment');
// Einmal die Browser-Console öffnen ...
console.log(moment(new Date('2017-06-27T13:36:05.803Z')).fromNow());

Keybase proof

I hereby claim:

  • I am akoenig on github.
  • I am andrekoenig (https://keybase.io/andrekoenig) on keybase.
  • I have a public key ASCmH4ikELj1nb5IqsUp2HwtTtAAv7EI8ep833n_qkDtDwo

To claim this, I am signing this object:

@akoenig
akoenig / invite.mutation.ts
Last active March 3, 2018 12:57
Medium: M2M in GraphQL context (Invite Mutation)
interface InviteInput {
input: {
email: string;
message?: string;
}
}
const invite = async (parent, args: InviteInput, context: Context, info) => {
await context.messaging.publish({
type: "Invite",
@akoenig
akoenig / fetchUserRegistrationsInLastHour.ts
Last active March 3, 2018 13:53
Medium: M2M in GraphQL context (Fetch User Registrations In The Last Hour)
import { request } from "graphql-request";
export const fetchUserRegistrationsInLastHour = async (period: string) => {
const query = `
query UserRegistrationsWithinPeriod($period: String!) {
users(where: {
createdAt: $period
} {
id
}
@akoenig
akoenig / telemetry.query.graphql
Created March 3, 2018 13:53
Medium: M2M in GraphQL context (Invite Mutation)
{
user {
id
measuredAt
registrations
logins
}
}