Skip to content

Instantly share code, notes, and snippets.

@bbinet
bbinet / trello-hide-labelled-cards.user.js
Created March 15, 2013 09:00
Trello: Hide all cards that have specific color labels
// ==UserScript==
// @name trello-hide-labelled-cards
// @namespace trello
// @version 0.1
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
// @description Trello: Hide all cards that have specific color labels
// @match https://trello.com/board/*
// @copyright 2013+, Bruno Binet
// ==/UserScript==
@bbinet
bbinet / index.html
Last active December 11, 2015 13:39
Drag test
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Drag test</title>
</head>
<body>
Drag inside the box and see the graphs below.
<div style="width:800px; height:400px; border:solid;" id="box"></div>
<p>x, y:</p>
#-*- coding: utf-8 -*-
"""ListePlanUE values should be filtered on ListeNatureUE.value=poteau
Revision ID: 17a6073d49ac
Revises: 22e1c34c8efd
Create Date: 2012-11-19 17:11:27.782388
"""
# revision identifiers, used by Alembic.
@bbinet
bbinet / Load.conf
Created October 2, 2012 15:58
funkload_bench
# FunkLoad test configuration file
# $Id: $
# ------------------------------------------------------------
# Main section
#
[main]
title=Load FunkLoad tests
description=Simply testing a default static page
reports_dir = results
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, Index
from sqlalchemy.orm import scoped_session, sessionmaker
from sqlalchemy.types import Integer, String
Base = declarative_base()
Base.metadata.bind = "postgres://user:pass@localhost/sqla_test"
meta = Base.metadata
session = scoped_session(sessionmaker(bind=meta.bind))()
@bbinet
bbinet / import_geonames.sh
Created September 5, 2012 11:21
Bash script to import geonames data into a local database (original script from http://forum.geonames.org/gforum/posts/list/15/926.page)
#!/bin/bash
#===============================================================================
# FILE: import_geonames.sh
#
# USAGE: sudo -u postgres import_geonames.sh [/path/to/working/directory]
#
# DESCRIPTION: run the script so that the geodata will be downloaded and
# inserted into your database
#
# ORIGINAL AUTHOR: Andreas (aka Harpagophyt)
@bbinet
bbinet / moderncvstyleclassic.sty
Created August 26, 2012 07:09
moderncv \section patch
% BBI edition %%%%%%%%%%%%%%%%%%%%%%%%%%
% add:
\newlength{\argtextwidth}%
\newlength{\freespace}%
\newcommand*{\calcfreespace}[1]{%
\settowidth{\argtextwidth}{#1}%
\setlength{\freespace}{\maincolumnwidth}%
\addtolength{\freespace}{-\argtextwidth}%
\addtolength{\freespace}{-\separatorcolumnwidth}%
@bbinet
bbinet / DejaVuSansMono-Bold-Powerline.ttf
Created July 12, 2012 14:25
DejaVu Sans Mono patched for vim-powerline
@bbinet
bbinet / gaellerie-ghp-update
Created May 5, 2012 13:01
gaellerie-ghp-update cgi
#!/usr/bin/env python
import cgi
import os
import sys
if os.environ["REMOTE_ADDR"] in ["207.97.227.253", "50.57.128.197",
"108.171.174.178", "89.88.161.33"]:
print "Content-type: text/plain"
print ""
@bbinet
bbinet / ebenezer-ghp-update
Created May 5, 2012 13:01
ebenezer-ghp-update cgi
#!/usr/bin/env python
import cgi
import os
import sys
if os.environ["REMOTE_ADDR"] in ["207.97.227.253", "50.57.128.197",
"108.171.174.178", "89.88.161.33"]:
print "Content-type: text/plain"
print ""