Skip to content

Instantly share code, notes, and snippets.

View mrdaemon's full-sized avatar

Alexandre Gauthier mrdaemon

View GitHub Profile
; SHITTY ADVENTURE GAME
; Is it can be lisp tiems nao
(defvar *objects*)
(defvar *map*)
(defvar *object-locations*)
(defvar *location*)
(defun init ()
(setf *objects*
#!/bin/bash
#
# ###### ####### ###### ## ## ######## ## ####### ## ##
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
# ## ## ## ## ## ## ## ## ## ## ## ## ##
# ## ## ## ## ##### ######## ## ## ## ###
# ## ## ## ## ## ## ## ## ## ## ## ## ##
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
# ###### ####### ###### ## ## ######## ######## ####### ## ##
#
#!/bin/bash
#
# ###### ####### ###### ## ## ######## ## ####### ## ##
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
# ## ## ## ## ## ## ## ## ## ## ## ## ##
# ## ## ## ## ##### ######## ## ## ## ###
# ## ## ## ## ## ## ## ## ## ## ## ## ##
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
# ###### ####### ###### ## ## ######## ######## ####### ## ##
#
@mrdaemon
mrdaemon / PantsFrame.java
Created June 7, 2011 03:14
I made a GUI. Using Swing. I am not exactly pleased.
package org.underwares.pants;
import java.awt.Cursor;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.util.Random;
import javax.swing.SwingWorker;
public class PantsFrame extends javax.swing.JFrame implements
PropertyChangeListener {
import random
import sys
import time
from PyQt4 import QtCore, QtGui
from shitpantsui import Ui_Form
class _TimeWasterThread(QtCore.QThread):
def __init__(self):
import random
import sys
import time
from PyQt4 import QtCore, QtGui
from shitpantsui import Ui_Form
class _TimeWasterThread(QtCore.QThread):
def __init__(self):
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Form</class>
<widget class="QWidget" name="Form">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>447</width>
<height>271</height>
@mrdaemon
mrdaemon / out.txt
Created June 16, 2011 20:01
output
supernaut@kitsune:~/code/git/xsort$ ls
example* example.c example.o fixsort.c fixsort.h fixsort.o Makefile testfile.bin
supernaut@kitsune:~/code/git/xsort$ ls -lah testfile.bin
-rw-r--r-- 1 supernaut supernaut 1,4G 2011-06-15 20:45 testfile.bin
supernaut@kitsune:~/code/git/xsort$ cat testfile.bin | wc -l
18837575
supernaut@kitsune:~/code/git/xsort$ time ./example 512 testfile.bin /tmp/shit%d output.bin
Calculating sorting resource requirements...
Buffer size = 290098655 bytes
Number of runs = 5
#!/usr/bin/env python
"""
Shitty validator for xmerge's sorts.
Rather simplisitic and naive.
Then again, I am not a real programmer :(
"""
__author__ = "Alexandre Gauthier <[email protected]>"
__copyright__ = "Copyright (c) 2011-2012"
@mrdaemon
mrdaemon / Upload.java
Created June 29, 2011 00:29
Upload servlet using the new Streaming upload in apache commons' uploadfile. This is how it should be done.
package org.underwares.uploadtest;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.servlet.ServletException;