Skip to content

Instantly share code, notes, and snippets.

@thammi
thammi / test.pro
Created September 5, 2014 23:24
Testing link-local multicast in Qt
#####################################################################
# Automatically generated by qmake (3.0) Sa. Sep. 6 01:08:04 2014
######################################################################
CONFIG += console
QT += network
TEMPLATE = app
TARGET = test
INCLUDEPATH += .
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Meine erste Videoapplikation</title>
<script src="https://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="https://raw.github.com/Wolfy87/EventEmitter/master/EventEmitter.min.js"></script>
<script src="https://raw.github.com/palavatv/palava-client/master/palava.min.js"></script>
<script type="text/coffeescript">
@thammi
thammi / reverse.c
Created October 21, 2012 13:35
Reverse a file
#include <stdio.h>
#include <unistd.h>
#define BLOCK_SIZE 512
#define min(a, b) ((a) < (b) ? (a) : (b))
inline void swap(char* buf, size_t a, size_t b) {
char tmp = buf[a];
buf[a] = buf[b];
@thammi
thammi / quads.py
Created July 10, 2012 23:41
quads into quads @ output2012
#!/usr/bin/env python
import sys
import random
import json
class QuadPuzzle:
def __init__(self, big, data, rand=True):
self.big = big
@thammi
thammi / alarm.py
Created January 6, 2011 11:01
Pizza alarm clock written waiting for a pizza
#!/usr/bin/env python
##############################################################################
##
## Copyright (C) 2010 Thammi
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##