This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DROP TABLE activities; | |
CREATE TABLE activities ( | |
id INTEGER NOT NULL PRIMARY KEY, | |
activity TEXT NOT NULL, | |
type TEXT GENERATED ALWAYS AS (json_extract(activity, '$.type')) STORED, | |
name text GENERATED ALWAYS AS (json_extract(activity, '$.name')) STORED | |
); | |
INSERT INTO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes"> | |
<title>Skulls with Rough.js</title> | |
<meta name="description" content="Random squares generative art using rough.js"> | |
<style> | |
body { | |
margin: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
climatik v0.0.1 | |
Create command line interface from function definition | |
""" | |
import inspect | |
import argparse | |
def command(fnc, *args, **kwargs): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
# -*- coding: utf-8 -*- | |
#https://developer.gnome.org/pygobject/2.28/ | |
#http://www.pygtk.org/articles/subclassing-gobject/sub-classing-gobject-in-python.htm#d0e570 | |
from gi.repository import GObject | |
from gi.repository import GLib | |
class GAsyncSpawn(GObject.GObject): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys | |
import StringIO | |
import hashlib | |
from optparse import OptionParser | |
from xml.dom import minidom | |
from xml.dom.minidom import Node | |
first = True |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# After "Tim Golden's Python Stuff" code | |
# http://timgolden.me.uk/python/win32_how_do_i/catch_system_wide_hotkeys.html | |
# | |
# After a post to c.l.py by Richie Hindle: | |
# http://groups.google.com/groups?th=80e876b88fabf6c9 | |
# | |
import os | |
import sys | |
import threading |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<link rel="stylesheet" href="library/fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" /> | |
<script type="text/javascript" src="js/jquery.js" ></script> | |
<script type="text/javascript" src="library/fancybox/jquery.fancybox-1.3.4.pack.js"></script> | |
<style> | |
.theme { width: 210px; height: 300px; float: left; } | |
.theme img { width: 200px; } | |
.theme .name {} |