Skip to content

Instantly share code, notes, and snippets.

Working from home

Fabrice Aneche akhenakh

Working from home
Block or report user

Report or block akhenakh

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
sstolz /
Last active Jan 12, 2017
TVA intracommunautaire FR
# Calcul GRATUIT et pour tous du numéro de TVA intracom français
# !! le contrôle de ces clés n'implique pas l'existence réelle du numéro de TVA intracommunautaire !!
# Source :
SIREN=111222333 && echo "FR $(echo '(12 + (3*(${SIREN} % 97))) % 97' | bc) ${SIREN}"
View embedded.go
package main
// This is a basic example of running an nsqd instance embedded. It creates
// and runs an nsqd with all of the default options, and then produces
// and consumes a single message. You are probably better off running a
// standalone instance, but embedding it can simplify deployment and is
// useful in testing.
// See and
// for
elithrar / use.go
Last active Jul 18, 2018
go/use: Little middleware chains that could. Inspired by comments here:
View use.go
r := mux.NewRouter()
// Single handler
r.HandleFunc("/form", use(http.HandlerFunc(formHandler), csrf, logging)
// All handlers
http.Handle("/", recovery(r))
// Sub-routers
apiMiddleware := []func(http.Handler) http.Handler{logging, apiAuth, json}
akhenakh /
Created Jun 19, 2012
flask jsonify with support for MongoDB from tools import jsonify
import simplejson as json
except ImportError:
import json
except ImportError:
raise ImportError
import datetime
from bson.objectid import ObjectId
from werkzeug import Response
skeeet /
Created Apr 12, 2012 — forked from MaximKeegan/
Create a RAM disk for using with XCode
# Create a RAM disk with same perms as mountpoint
# Script based on with some additions
# Usage: sudo ./ start
You can’t perform that action at this time.