Skip to content

Instantly share code, notes, and snippets.

View Shou's full-sized avatar

Benedict Aas Shou

  • London, United Kingdom
View GitHub Profile
@Shou
Shou / Dark.css
Last active August 29, 2015 14:02
Dark CSS
@font-face
{ font-family: "Lobster"
; src: url(https://s3.amazonaws.com/Shoufonts/lobster_1.3-webfont.woff)
}
@font-face
{ src: url(https://s3.amazonaws.com/Shoufonts/Asap-Regular.woff) format('woff')
; font-family: "AssApp"
}
@Shou
Shou / hexip.user.js
Created January 4, 2014 13:39
XChat nick-style highlighting for IP addresses on Zetaboards
// ==UserScript==
// @name HexIP
// @description i recognize that IP address!
// @version 0.1.1
// @include http*://*.zetaboards.com/*/topic/*
// @author Shou
// @copyright 2013, Shou
// @license GPL-3
// ==/UserScript==
@Shou
Shou / Dark.css
Created November 25, 2013 04:06
Dark theme for Zetaboards
html, body
{ background: #101010
; background-image: url("http://a.pomf.se/A6g8P4.png")
; background-repeat: repeat
; color: #d0d0d0
; font-family: "Avant Garde", "Century Gothic", sans-serif
; font-size: 10pt
; margin: 0
; padding: 0
}
@Shou
Shou / gist:4597959
Created January 22, 2013 20:08
filthy
# foldr applies the first argument, a function which takes two arguments, to
# the accumulator z, whose value changes on each for-loop iteration, and x,
# which is the current iteration's element of the xs list.
def foldr(f, z, xs):
for x in xs: z = f(z, x)
return z
# A version of foldr that takes no starting value, z, and instead uses the first
# argument in the list as the starting value.
# Raises an exception when an empty list is passed.