Skip to content

Instantly share code, notes, and snippets.

Gaspard Bucher gaspard

Block or report user

Report or block gaspard

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View de.json
"styled": {
"tipLangSelector": "Changer la langue de l'interface",
"tipTooltipsIcon": "Afficher ou masquer l'aide en ligne"
"date": {
"Ago1Day": "il y a un jour",
"Ago1Hour": "il y une heure",
"Ago1Minute": "il y a une minute",
"AgoXDays": "il y a {count} jours",
gaspard /
Created Feb 13, 2019
Christian Alfoni article proposal

Why do pink unicorns sing at night ?

Are these animals pure ?

Is it to improve developper expérience or just enchant the sleepless geeky heads during moonrise ?

Do they take drugs to improve performance when producing milk ?

Would really love your feedback on this ❤️ Christian...

View query.sql
SELECT "item"."id" AS "item_id",
"item"."type" AS "item_type",
"item"."savedat" AS "item_savedAt",
"item"."creator" AS "item_creator",
"item"."createdat" AS "item_createdAt",
"item"."editor" AS "item_editor",
"item"."editedat" AS "item_editedAt",
"item"."accesschangedby" AS "item_accessChangedBy",
"item"."accesschangedat" AS "item_accessChangedAt",
"item"."revision" AS "item_revision",
View temp.test.ts
import { describe, it } from 'test'
import { createCollection, privateCollectionId, userFromWordList } from './'
export async function makeUser(wordList: string[]) {
const user = await userFromWordList(wordList)
const privateCollection = await createCollection(user, {
id: privateCollectionId(,
return { user, privateCollection }
View updateAccessChangeLog.ts
async function updateAccessChangeLog(
type: 'user' | 'collection',
currentUser: UserWithKeys,
now: number,
// Old item
oldItem: Item,
// New userAccess
newItem: Item
) {
// collectionAccess: Item belongs to collections
View modules.ts
import { Action, Configuration } from 'overmind'
type SubType<Base, Condition> = Pick<
{ [Key in keyof Base]: Base[Key] extends Condition ? Key : never }[keyof Base]
type TState<Config extends Configuration> = [Config['state']] extends [
gaspard /
Last active Jul 2, 2018
Remove "Offers" board in postfinance (swiss banking solution)


You will be sharing the pages you visit with the extension. It means you have to trust the extension not to send any confidential information to some other party.

True solution

The best solution is to contact Postfinance and ask them for a close "X" button on the Offers board. You can do this through the user menu near the logout button and send a message like this:

Dear Sir or Madam, 
View builder-idea.ts
import * as cerebral from 'cerebral'
interface BlockDefinition<State, Sequences> {
state: any
sequences: any
interface Builder<State, Sequences> {
state: State
sequences: Sequences
View connect2.ts
import { connect } from '@cerebral/react'
import { state, props } from 'cerebral/tags'
interface State {
things: {
[ key: string ]: {
title: string,
description: string
View useragent.json
"_id": "@cerebral/useragent",
"_rev": "14-6667b038dc0504d85b2e55f833468eef",
"name": "@cerebral/useragent",
"description": "Adds useragent specs to your cerebral state model",
"dist-tags": {
"latest": "1.0.0",
"beta": "0.0.0-beta.3",
"next": "1.0.1-1502489943822"
You can’t perform that action at this time.