Skip to content

Instantly share code, notes, and snippets.

View minhhh's full-sized avatar

Minh Ha minhhh

View GitHub Profile
My thoughts on writing tiny reusable modules that each do just one
thing. These notes were adapted from an email I recently sent.
***
If some component is reusable enough to be a module then the
maintenance gains are really worth the overhead of making a new
project with separate tests and docs. Splitting out a reusable
component might take 5 or 10 minutes to set up all the package
overhead but it's much easier to test and document a piece that is
import algorithm
import future
import math
import sequtils
import tables
import os
import csfml
import perlin
#!/bin/sh
## you'll have to do a couple extra steps to get this running
## there are probably other ways to handle svncanboot, but this is from the linux forum
set -e
if
touch /etc/_testr_file
then
@minhhh
minhhh / svn.md
Last active August 29, 2015 14:09
Subversion
@minhhh
minhhh / install_psp
Last active August 29, 2015 14:07
INSTALLING PRO CFW ON A PSP
http://wololo.net/installing-pro-cfw-on-a-psp-3000-psp-brite/
@minhhh
minhhh / test_markdown.md
Created September 11, 2014 15:16
test_markdown.md

First

Second

Third

@minhhh
minhhh / mercurial-server
Last active August 29, 2015 14:00
Install mercurial-server #mercurial
http://bayo.opadeyi.net/2010/12/setup-mercurial-server-on-ubuntu-vps.html
http://ekkescorner.wordpress.com/blog-series/git-mercurial/step-by-step-install-mercurial-server-on-ubuntu/
apt-get install mercurial-server
sudo mkdir -p /etc/mercurial-server/keys/root/remoteuser
sudo cp my-key /etc/mercurial-server/keys/root/remoteuser/localmachine
sudo -u hg /usr/share/mercurial-server/refresh-auth
touch ~/.hgrc
@minhhh
minhhh / generate-swarm.sh
Created April 10, 2014 14:59 — forked from derwiki/generate-swarm.sh
#code_swarm #visualization
CODESWARM_DIR="/home/user/src/code_swarm/"
# extract from your git repo
git log --name-status --pretty=format:'%n------------------------------------------------------------------------%nr%h | %ae | %ai (%aD) | x lines%nChanged paths:' > $CODESWARM_DIR/data/activity.log
# convert to XML for CodeSwarm
python convert_logs/convert_logs.py \
-g $CODESWARM_DIR/data/activity.log -o $CODESWARM_DIR/data/activity.xml
# create a new config that points to the correct input XML and saves snapshots