This is a quick script to convert notes from Tomboy to Evernote.
pip install -r requirements.txt
mkdir export/
python tomboy-export.py <tomboy-dir>
""" | |
(C) Mathieu Blondel - 2010 | |
License: BSD 3 clause | |
Implementation of the collapsed Gibbs sampler for | |
Latent Dirichlet Allocation, as described in | |
Finding scientifc topics (Griffiths and Steyvers) | |
""" |
#!/bin/bash | |
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF | |
appify v3.0.1 for Mac OS X - http://mths.be/appify | |
Creates the simplest possible Mac app from a shell script. | |
Appify takes a shell script as its first argument: | |
`basename "$0"` my-script.sh |
// Written by Pioz. | |
// Compile with: gcc -o autoclick autoclick.c -lX11 | |
#include <stdio.h> // printf, fprintf and fflush | |
#include <string.h> // memset | |
#include <unistd.h> // sleep and usleep | |
#include <X11/Xlib.h> // X11 | |
#include <X11/Xutil.h> // XGetPixel and XDestroyImage | |
// Simulate mouse click |
# look and feel | |
caption always "%{= bb}%{+b w}%h %=%{=b rw} %l %{= db} ${USER}@%H %{= dg}%c" | |
hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<" | |
# skip the startup message | |
startup_message off | |
# go to home dir | |
chdir |
from PyQt4 import QtGui, QtCore | |
from FingerTabs import FingerTabWidget | |
import sys | |
app = QtGui.QApplication(sys.argv) | |
tabs = QtGui.QTabWidget() | |
tabs.setTabBar(FingerTabBarWidget(width=100,height=25)) | |
digits = ['Thumb','Pointer','Rude','Ring','Pinky'] | |
for i,d in enumerate(digits): |
if you are using linux, unix, os x:
pip install -U setuptools
pip install -U pip
pip install numpy
pip install scipy
pip install matplotlib
#pip install PySide
/* | |
Example of how to write binary stuff in C++ | |
Illustrates some of the various quirks/annoyances | |
*/ | |
#include <iostream> | |
#include <fstream> | |
#include <string> | |
#include <vector> |
I made a few optimizations to the cython code. The timings on my machine are:
from sequences import P53_HUMAN, P53_MOUSE
from alignment import align as py_align
from align_numpy import align as cy_align
from align_numpy2 import align as cy_align2
%timeit py_align(P53_HUMAN, P53_MOUSE)
1 loops, best of 3: 442 ms per loop
# Script to clean (and sort) the bibfile exported by mendeley | |
# It is then apt for versioning | |
# Author: Carles F. Julià <carles.fernandez(AT)upf.edu> | |
# You will need bibtexparser package: | |
# $ pip install bibtexparser | |
# usage: cleanbib.py library.bib | |
# WARNING: it overwrites the original file |