Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am webpigeon on github.
  • I am webpigeon (https://keybase.io/webpigeon) on keybase.
  • I have a public key whose fingerprint is E5AD C020 BB92 A6DF E653 0758 6D87 7209 7B39 630B

To claim this, I am signing this object:

@webpigeon
webpigeon / html5_canvas.html
Last active December 19, 2015 17:58
Creating a HTML 5 Canvas
<!DOCTYPE html>
<html>
<head>
<title>HTML5 Canvas example</title>
<meta charset="UTF-8">
<script type="text/javascript">
//run this when the window loads
window.onload = function() {
//function we're going to attach the file upload event to
function onFileUpload(evt) {
@webpigeon
webpigeon / makefile
Created September 30, 2012 11:22
pidgim-opensteamworks makefile by battwa
CC ?= gcc
PLUGINDIR ?= $(shell pkg-config --variable=plugindir purple)
CFLAGS += -Wall -fPIC
LDFLAGS += -shared
CPPFLAGS += $(shell pkg-config --cflags glib-2.0 json-glib-1.0 purple)
LIBS += $(shell pkg-config --libs glib-2.0 json-glib-1.0 purple)
TARGET = libsteam.so
@webpigeon
webpigeon / mycin.py
Created August 8, 2012 22:07
Foward Chaining expert system
#! /usr/bin/env python2
##
# Implementation of MyCIN-like expert system
# Copyright (c) 2012, Joseph Walton-Rivers <joseph@webpigeon.me.uk>
##
from collections import defaultdict
CV_TRUE = +1.0
CV_UNKNOWN = 0
" .vimrc
" based on https://wiki.archlinux.org/index.php/Vim/.vimrc
" Joseph Walton-Rivers <webpigeon@gmail.com>
" Tab settings
set tabstop=4
set shiftwidth=4
set expandtab
set smarttab
@webpigeon
webpigeon / .bashrc
Created June 4, 2012 14:52
BashRC for desktop
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
#PS1="[\u@\h \W$(__git_ps1 \" \(%s\)\")]\$ "
PS1="[\u@\h \W]$ "