Skip to content

Instantly share code, notes, and snippets.

Cristi Burcă scribu

Block or report user

Report or block scribu

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
scribu /
Last active Jan 9, 2019 — forked from ntamas/
Hierarchical link clustering algorithm of Ahn et al (see, implemented using Python and igraph for fun.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
Hierarchical link clustering
:Author: Tamás Nepusz
This is an implementation of the hierarchical link clustering algorithm of Ahn
et al. The results provided by this implementation match those of the original
scribu / index.html
Last active Aug 11, 2016
Basic Auth Test
View index.html
fetch('/secrets', {credentials: 'same-origin'}).then((response) => alert('Worked!'));
scribu /
Created Sep 10, 2015
Deferred Acceptance Algorithm
from collections import defaultdict
def male_without_match(matches, males):
for male in males:
if male not in matches:
return male
def deferred_acceptance(male_prefs, female_prefs):
female_queue = defaultdict(int)
scribu /
Last active Aug 29, 2015
Simulation for the Monty Hall problem.
import random
DOORS = set([1, 2, 3])
def play(picked_door, do_switch):
door_with_car = random.sample(DOORS, 1)[0]
revealed_door = random.sample(DOORS.difference([door_with_car]), 1)[0]
if do_switch:
scribu / index.html
Last active Aug 29, 2015
Negative Feedback
View index.html
<title>Negative Feedback</title>
body {
background: black;
.half {
float: left;
scribu /
Created Oct 28, 2014
Final Cut Pro Key layout for Blender 2.7.2 (initial version from
import bpy
import os
wm = bpy.context.window_manager
kc =[0])
# Map View2D
km ='View2D', space_type='EMPTY', region_type='WINDOW', modal=False)
kmi ='view2d.scroller_activate', 'LEFTMOUSE', 'PRESS')
View gist:951fb7ebc553d288479f
### Keybase proof
I hereby claim:
* I am scribu on github.
* I am scribu ( on keybase.
* I have a public key whose fingerprint is 2C8A 343A FDCC DDD2 6442 CCF1 8219 7F75 BDAF B501
To claim this, I am signing this object:
scribu / repl.js
Last active Dec 23, 2017
Simplistic REPL for CasperJS
View repl.js
// Usage: require('repl');
// Press Ctrl+D to continue script
// Press Ctrl+C to exit.
require = patchRequire(require);
var system = require('system');
var utils = require('utils');
exports.start = function(prompt) {
scribu /
Created Dec 24, 2013
Set up the package index for WP-CLI
#!/usr/bin/env bash
if [ -z "$INSTALL_DIR" ]; then
mkdir -p "$INSTALL_DIR"
if [ ! -x composer.phar ]; then
scribu /
Last active Aug 5, 2019
Convert notes from Tomboy XML to Evernote XML

This is a quick script to convert notes from Tomboy to Evernote.


pip install -r requirements.txt
mkdir export/
python <tomboy-dir>
You can’t perform that action at this time.