Skip to content

Instantly share code, notes, and snippets.

View JeanBarriere's full-sized avatar
👋
[object Object]

Jean Barriere JeanBarriere

👋
[object Object]
View GitHub Profile
@JeanBarriere
JeanBarriere / 1. AService.ts
Last active March 11, 2020 12:00
real ts factory
export default abstract class AService {
constructor () {
console.log('service created')
}
}
@JeanBarriere
JeanBarriere / 1. README
Created February 21, 2020 18:10
Releases subscriptions
First, I checked doc on https://www.graphile.org/postgraphile/subscriptions/
I installed the app_public.graphql_subscription()
I added the trigger on insert/update of each release
I added validate_subscription()
enable simple_subscription call validation_subscription but not from graphql, so I need to see how I can validate from graphql itself
@JeanBarriere
JeanBarriere / GildedRose.ts
Created January 10, 2020 16:18
Gilded Rose
export class Item {
name: string;
sellIn: number;
quality: number;
constructor(name, sellIn, quality) {
this.name = name;
this.sellIn = sellIn;
this.quality = quality;
}
@JeanBarriere
JeanBarriere / pingdom.story
Last active November 5, 2019 11:05
pingdom as a story
# pingdom as a story
###
# there is 2 levels on this story
# - CRUD on entries to ping
# - CRON on entries every minute
###
# crud /entries
http server as server
when server listen path:"/entries" as request
@JeanBarriere
JeanBarriere / invalidopenapi2omg.json
Created August 30, 2019 12:25
open api yaml tests
{"components":{"schemas":{"Pets":{"type":"array","items":{"$ref":"#/components/schemas/Pet"}},"Error":{"type":"object","required":["code","message"],"properties":{"code":{"format":"int32","type":"integer"},"message":{"type":"string"}}},"Pet":{"type":"object","required":["id","name"],"properties":{"name":{"type":"string"},"id":{"format":"int64","type":"integer"},"tag":{"type":"string"}}}}},"servers":[{"url":"http://petstore.swagger.io/v1"}],"openapi":"3.0.0","paths":{"/pets":{"post":{"summary":"Create a pet","operationId":"createPets","responses":{"|default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"201":{"description":"Null response"}},"tags":["pets"]},"get":{"summary":"List all pets","operationId":"listPets","responses":{"200":{"headers":{"x-next":{"schema":{"type":"string"},"description":"A link to the next page of responses"}},"description":"A paged array of pets","content":{"application/json":{"schema":{"$ref":"#/components/schemas/

Keybase proof

I hereby claim:

  • I am jeanbarriere on github.
  • I am jeanbarriere (https://keybase.io/jeanbarriere) on keybase.
  • I have a public key ASCbXE7kob0v1Tedwx_FqB-C9h9E9QwpHINHYINpUAhBZgo

To claim this, I am signing this object: