Skip to content

Instantly share code, notes, and snippets.

@jamiew
jamiew / google_twunter_lol
Created July 28, 2011 20:34
All the dirty words from Google's "what do you love" project: http://www.wdyl.com/
easterEgg.BadWorder.list={
"4r5e":1,
"5h1t":1,
"5hit":1,
a55:1,
anal:1,
anus:1,
ar5e:1,
arrse:1,
arse:1,
@wrunk
wrunk / jinja2_file_less.py
Last active April 14, 2025 10:17
python jinja2 examples
#!/usr/bin/env/python
#
# More of a reference of using jinaj2 without actual template files.
# This is great for a simple output transformation to standard out.
#
# Of course you will need to "sudo pip install jinja2" first!
#
# I like to refer to the following to remember how to use jinja2 :)
# http://jinja.pocoo.org/docs/templates/
#
@fincs
fincs / lz77.s
Created November 6, 2011 16:16
LZ77 decompression routine
@ LZ77 decompression routine
@ v1.0 - by fincs
.arch armv5te
.arm
.align 2
.global LZ77_Decompress
.hidden LZ77_Decompress
@memborsky
memborsky / mp3_id3_reader.adb
Created November 18, 2011 19:52
Ada mp3 id3 tag reader
with Ada.Text_IO;
with Ada.Strings.Unbounded;
with Ada.Streams.Stream_IO;
with Ada.Command_Line;
with Ada.Streams;
use type Ada.Streams.Stream_IO.Count;
procedure mp3_id3_reader is
# https://api.instagram.com/v1/users/95987/media/recent?access_token=MY.ACCESS.TOKEN
{
"pagination": {
"next_url": "https://api.instagram.com/v1/users/95987/media/recent?access_token=MY.ACCESS.TOKEN",
"next_max_id": "232644831_95987"
},
"meta": {
"code": 200
},
@sfrdmn
sfrdmn / index.html
Created November 30, 2011 22:17
Mouse over example in d3
<html>
<head>
<meta charset="utf-8">
<title>Mouse Over</title>
<script type="text/javascript" src="https://github.com/mbostock/d3/raw/fe671a70e236710412a514fa276e59f875f3c617/d3.js"></script>
</head>
<body>
<script type="text/javascript">
// width
var w = 800;
@dpiponi
dpiponi / example.cu
Created December 20, 2011 17:36
Minimal CUDA example (with helpful comments).
#include <stdio.h>
//
// Nearly minimal CUDA example.
// Compile with:
//
// nvcc -o example example.cu
//
#define N 1000
@j0hn
j0hn / str2bf.py
Created January 1, 2012 08:32
String to brainfuck converter
#!/usr/bin/env python
# coding: utf-8
"""
String to Brainfuck.
Converts a string to a brainfuck code that prints that string.
Author: j0hn <[email protected]>
"""
return {
myfunc = function()
print 'in foo.myfunc'
end
}
@Deco
Deco / geometry.lua
Created February 2, 2012 08:18 — forked from Deco/geometry.lua
Luvit module example (using local _M table) (my personal choice)
local OO = require"oo"
local _M = {}
do _M.Shape = OO.class({
})
function _M.Shape:__init()
error("attempt to instantiate abstract shape")
end