Skip to content

Instantly share code, notes, and snippets.

View mrdaemon's full-sized avatar

Alexandre Gauthier mrdaemon

View GitHub Profile
#!/usr/bin/env python
#
# Shittiest script to scrape http://irssi.org/themes and fetch the theme
# image screenshots, because frankly, that shit is unviewable.
from os import path, mkdir
import re
import sys
import urllib2
from urlparse import urlsplit, urljoin
Building shit with multi core
==============================
Or: make vs make -j9 on a dual Xeon quad core
./configure --prefix=$HOME/local --enable-mzschemeinterp --enable-perlinterp=yes --enable-pythoninterp=yes --enable-tclinterp --enable-rubyinterp=yes --enable-cscope --enable-multibyte --enable-fontset --enable-gui=gnome --enable-gnome-check --with-features=huge --with-gnome --with-compiledby="Alexandre Gauthier <[email protected]>"
Normal compile:
----------------
real 1m12.588s
user 1m7.800s
:version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jan 5 2011 00:48:03)
Rustines incluses : 1-98
Compilé par Alexandre Gauthier <[email protected]>
Énorme version avec interface graphique GTK2-GNOME. Fonctionnalités incluses (+) ou non (-) :
+arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset +cindent +clientserver +clipboard +cmdline_compl +cmdline_hist
+cmdline_info +comments +conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con_gui +diff +digraphs +dnd -ebcdic +emacs_tags
+eval +ex_extra +extra_search +farsi +file_in_path +find_in_path +float +folding -footer +fork() +gettext -hangul_input +iconv
+insert_expand +jumplist +keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap -lua +menu +mksession +modify_fname
+mouse +mouseshape +mouse_dec +mouse_gpm -mouse_jsbterm +mouse_netterm -mouse_sysmouse +mouse_xterm +multi_byte +multi_lang
## Why a proper DVCS is awesome.
[0:538] callisto:Pong $ git remote add upstream https://github.com/Knifa/Pong.git
[0:540] callisto:Pong $ git pull upstream master
From https://github.com/Knifa/Pong
* branch master -> FETCH_HEAD
Merge made by recursive.
public class DicksOnParade {
public static void main(String[] args) {
Dong aDick = new Dong();
String cockname = aDick.getName();
System.out.println("Dick length: " + cockname.length());
}
}
public class Dong {
private int lenght;
public void setLenght(int l) {
this.lenght = l;
}
public int getLenght() {
return this.lenght;
}
@mrdaemon
mrdaemon / Phones.muf
Created February 17, 2011 05:34
OH GOD MULTI USER FORTH WAS HORRIBLE I DON'T MISS IT ONE BIT
(** BuyPhone.muf [c] Nilesta, 2000 http://members.home.net/tiadasia/ **)
$def PPROG #277 (** DBREF of Phones.muf **)
(** The following are for costs. If you don't want costs, set them all **)
(** to 0. Per-month cost is added up and stored on the phone object **)
(** under '@phone/upkeep' **)
(** This /does not/ actually charge them the per-month costs. You'll **)
(** need to program something to do that if you want it done. **)
@mrdaemon
mrdaemon / env_universaldate.cmd
Created January 30, 2011 18:31
Shit example to parse the output of date
@echo off
:: $Id: env_universaldate.cmd 1986 2006-12-06 20:36:59Z gauthiera $
:: Librarie pour generation de date Universelle
::
:: ATTENTION: La date et le nom des variables
:: sont differents selon la langue du systeme
:: d'exploitation:
:: Francais: %jj% %mm% %aa%
:: Anglais: %mm% %dd% %yy%
::
@mrdaemon
mrdaemon / DesignModule.inc.php
Created January 23, 2011 09:54
The KnifaCode (tm)
<?php
/**
* Design Module.
*
* @package Module
* @subpackage Design
*/
/**
* Include System stuff.
@mrdaemon
mrdaemon / cygwinapi_check.py
Created January 13, 2011 08:58
Work in progress. Functional programming is making me mad. Mad I say.
from contextlib import closing
#from collections import defaultdict
import re
import shelve
from urllib2 import Request, urlopen, URLError
from BeautifulSoup import BeautifulSoup
apiurls = { 'std-unix': 'http://cygwin.com/cygwin-api/compatibility.html',