Skip to content

Instantly share code, notes, and snippets.

@Fil
Fil / .gitignore
Last active September 26, 2015 16:08
Outil pour créer une copie locale statique de "mes" seens
# ma config
seen-local-config.php
# stockage de mon backup xml
tmp/
# mes fichiers exportes
seen/
# mes fichiers downloades
@jasondavies
jasondavies / README.md
Created September 22, 2012 17:11 — forked from mbostock/.block
Stereographic Blue Marble
@hoehrmann
hoehrmann / identify-quoted-text.pl
Created February 28, 2013 01:24
Take mbox, print HTML version of contents with quoted text marked via <i> elements.
#!perl -w
use Modern::Perl;
use Algorithm::Diff::XS;
use Statistics::Basic qw/median stddev avg/;
use Mail::Mbox::MessageParser;
use MIME::Parser;
use MIME::Parser::Reader;
use Mail::Field;
use Encode;
use HTML::Entities;
@almet
almet / supergenerator.py
Last active December 14, 2015 13:58
Exemple of plugin for pelican defining a new reader.
from pelican import signals
from pelican.readers import EXTENSIONS, Reader
class NewReader(Reader):
enabled = True
file_extensions = ['yeah']
def read(self, filename):
metadata = {'title': 'Oh yeah',
@phenix-factory
phenix-factory / spip_dev_options.php
Last active January 18, 2016 09:18
Option de développement pour SPIP
<?php
/*********************************/
/*** Options de développement ***/
/*********************************/
// Désactiver le cache de SPIP
// -1: inactif
// 1: actif
define('_NO_CACHE', -1);
<?php
namespace Grav\Plugin\Console;
use Grav\Console\ConsoleCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
/**
* Class GeneratorCommand
*
@pykerl
pykerl / README.md
Last active June 7, 2016 15:41
Creating static data visualizations with D3 & Node
@nitaku
nitaku / README.md
Last active July 3, 2016 17:04
Fractal treemap of Konanopii (1,724 leaves)

See this gist for the full code.

An example of an unambiguous fractal treemap. See this example discussing the unambiguous representation of unordered trees, and also this other example from which the random tree Konanopii (1,724 leaves) has been taken from.

ipython
run gosper_regions_depth.py
gosperify('konanopii_1724.json','/data/_workspace/hexes.wkt.csv','regions','depth.json')
Ctrl+D
@monfera
monfera / .block
Last active August 8, 2016 11:34
Brownian motion with D3 4.0 velocity Verlet physics
license: gpl-3.0
@monfera
monfera / .block
Last active September 6, 2016 13:23
Brownian motion with elastic collisions
license: gpl-3.0