Skip to content

Instantly share code, notes, and snippets.

View raphigaziano's full-sized avatar

Raphi raphigaziano

View GitHub Profile
@raphigaziano
raphigaziano / delorean_server.py
Last active January 26, 2016 11:13
fix argument handling
import sys
from datetime import datetime
from freezegun import freeze_time
from django.core.management import call_command
from django.core.management.commands.runserver import Command as RunServerCmd
class Command(RunServerCmd):
"""
@raphigaziano
raphigaziano / 0_reuse_code.js
Created September 26, 2013 10:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@raphigaziano
raphigaziano / punkriffgen.html
Created May 1, 2013 14:01
Silly punk riff generator
<html>
<head>
<meta charset='utf-8'/>
<title>PUNK RIFF GENERATOR</title>
<style>
.riffgenbox input {
width: 25px;
}
.riffgenbox pre {
width: 600px;
Hello, my name is {{ name }}!
I'm {{ age }} years old, yay!
@raphigaziano
raphigaziano / consolelogger.py
Created January 25, 2013 20:05
A specialized logging handler and a bunch of assiocated utility functions to handle ouput printing.
#!/usr/bin/env python
#-*- coding:utf-8 -*-
"""
consolelogger.py
Author: raphi <r.gaziano@gmail.com>
Created: 24/01/2013
Version: 1.0
"""
import sys, logging
@raphigaziano
raphigaziano / qtdbg.py
Last active August 16, 2021 15:12
A simple PyQt output widget which can be used as basic debug console
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
qtdbg.py
A simple PyQt output widget.
It's main use case is to serve as an output console, for debugging or
other purposes.
It provides a file-like interface for ease of integration with other
python features such as the logging module, on top of a slightly