Skip to content

Instantly share code, notes, and snippets.

@consindo
consindo / gist:3264642
Created August 5, 2012 13:00
Pretty Whitespaced & Relative Urls
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
nav,
section { display: block }
@consindo
consindo / multithreaded_sqlite.py
Created September 30, 2012 08:14
Multithreaded SQLite Python
from threading import Thread
from Queue import Queue
import sqlite3
class MultiThreadOK(Thread):
def __init__(self, db):
super(MultiThreadOK, self).__init__()
self.db=db
self.reqs=Queue()
self.start()
@consindo
consindo / todotxt.coffee
Created January 12, 2013 02:09
Nitro todo.txt generator
textfile = ""
pro = true
if pro
tasks = Task.sort(Task.list("all"))
# Avoids Logic
priorityArray = ["", "(A) ", "(B) ", "(C) "]
i = 0
while i < tasks.length
@consindo
consindo / gist:5669607
Created May 29, 2013 11:25
Postinst Chrome 27 udev
# Fedora 18 now has libudev.so.1. http://crbug.com/145160
# Same for Ubuntu 13.04. http://crbug.com/226002
LIBUDEV_0=libudev.so.0
LIBUDEV_1=libudev.so.1
add_udev_symlinks() {
get_lib_dir
if [ -f "/$LIBDIR/$LIBUDEV_0" -o -f "/usr/$LIBDIR/$LIBUDEV_0" -o -f "/lib/$LIBUDEV_0" ]; then
return 0
fi