Skip to content

Instantly share code, notes, and snippets.

View ukn-ubi's full-sized avatar

Simon Harms ukn-ubi

  • Port Orange, FL
View GitHub Profile
# prepend to .xinitrc
# feh...
# 2bwm&
exec termite -e "xidlehook --not-when-audio --not-when-fullscreen --timer normal 720 './~/.locker' ''"
@ukn-ubi
ukn-ubi / git-proj.py
Last active October 10, 2015 05:32
A project/build system that currently supports a few languages, will later support other languages. Run `python git-proj.py help` to get help message. It needs virtualenv and assumes a unix based system.
#!/usr/bin/python
"""
Name: Git-Proj
Desc: A git and makefile based project/build system.
"""
import sys, subprocess, os
def main():
@ukn-ubi
ukn-ubi / suffix.hy
Last active September 19, 2015 10:58
Allows you to write code backwards in Lisp.
(defmacro suf [code]
(quasiquote (
(unquote (get code 2))
(unquote (get code 0))
(unquote (get code 1)))))
; Example use
(suf ("Hy" "Lisp" print)) ;=> "Hy Lisp"
@ukn-ubi
ukn-ubi / hy-world-as-a-macro.hy
Last active September 18, 2015 11:47
"Hy, World" program as a Hy macro.
(defmacro hy [who]
(print "Hy" who))
(hy "world")
@ukn-ubi
ukn-ubi / 01ab.fs
Last active August 29, 2015 14:15
Adds zero plus one and builds off it and prints a through z at the end.
let a = 0
let b = 1
let c = a + b
let d = b + c
let e = c + d
let f = d + e
let g = e + f
let h = f + g
let i = g + h
let j = h + i
name = prompt "What is your name?"
alert "Hello "+name+"!"
prompt "How was your day?"
feel = prompt "Are you well?"
if feel == "no"
alert "Call the doctor!"