Skip to content

Instantly share code, notes, and snippets.

@iamdey
iamdey / brassage-T0.md
Last active April 27, 2017 08:53 — forked from anonymous/Brassage T0
brassam

brassage T0

1 Stérilisation

Prévoir ~1H pour la préparation

  • plonger dans le saladier dans 1L + chemipro : barboteur, écumoire, ouvreboite, verre, petite cuillère, verre doseur ...
  • 1L + chemipro : nettoyer seau, cuiller brasseur
  • bien nettoyer le kit (rebords)
const proxy = require('express-http-proxy');
const url = require('url');
module.exports = (app) => {
const { api: { hostname, port } } = app.get('coConfig');
const target = `http://${hostname}:${port}`;
app.use('/api', proxy(target, {
forwardPath: req => url.parse(req.originalUrl).path,
decorateRequest: (proxyReq, req) => {
// PiGraph/index.spec.jsx
const AXE_LENGTH = 100;
export function calcXpoint(level, count) {
return AXE_LENGTH - (level * Math.sin((count * Math.PI) / 180));
}
export function calcYpoint(level, count) {
return AXE_LENGTH - (level * Math.cos((count * Math.PI) / 180));
}
//--------------
@iamdey
iamdey / README.md
Created September 5, 2016 08:11
convert ogv to gif (requires ffmpeg)

Ogv to gif

usage:

ogv-togif.sh input-file.ogv [output-file.gif]

configuration:

// ==UserScript==
// @name leboncoin-distance
// @namespace net.herezia
// @description Affiche la distance en mn et km avec le lieu d'une offre
// @include https://*.leboncoin.fr/*/offres/*
// @version 3
// @grant GM_getValue
// @grant GM_setValue
// ==/UserScript==
const DEFAULT_FETCH_OPTIONS = {
@iamdey
iamdey / .bashrc
Created April 29, 2016 13:28
alias docker clean
alias docker-clean='docker rm `docker ps -aq`; docker rmi `docker images -q -f "dangling=true"`'
const SignListByIdReducer = (state = { }, action) => {
switch (action.type) {
case actions.SUBMIT_EMAIL:
return Object.assign({}, state, {
[action.id]: {
id: action.id,
email: action.email,
list: action.list,
loading: true,
errors: [],
#from pmartin
# tmux > 2.0
# Bindings de keys
set -g prefix C-a
set-window-option -g mode-keys vi
bind-key C-a last-window
@iamdey
iamdey / keybase.md
Last active February 10, 2016 07:48

Keybase proof

I hereby claim:

  • I am iamdey on github.
  • I am iamdey (https://keybase.io/iamdey) on keybase.
  • I have a public key ASDMCuwK1nvbO0iGMKmar5HiAgqZPBtmMykYylRaPEOJ0Qo

To claim this, I am signing this object:

@iamdey
iamdey / README.md
Last active August 29, 2015 14:20
configuration de vim pour le développement

config vim pour le développement par Patrice FERLET

Ce script reprend les différentes commandes présentés dans la vidéo suivante :

https://www.youtube.com/watch?v=srGrhjOEx7M

Pré-requis

Le plugin Tagbar dépend de ctags :