Skip to content

Instantly share code, notes, and snippets.

View ursine's full-sized avatar

Gary Coulbourne ursine

  • Philadelphia, PA
View GitHub Profile
### Keybase proof
I hereby claim:
* I am ursine on github.
* I am kodiak (https://keybase.io/kodiak) on keybase.
* I have a public key ASAI2zxA4lMf6y06-rCNz9uHKagGP0MrHXNWWiqJLC-2zQo
To claim this, I am signing this object:
@ursine
ursine / addanalytics.sed
Created October 9, 2016 18:34
A quick hack to add analytics and change some stuff on a webpage I was working on
#!/bin/sed -f
s|Wednesday,||
s|September 21, 2005|<script language="javascript">document.write(Date.today().toString("dddd, MMMM d, yyyy"));</script>|
s|</title>|</title>\n<script src="date.js"/>|
s|</body>|<script type="text/javascript">var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));</script><script type="text/javascript">try {var pageTracker = _gat._getTracker("TRACKERCODE");pageTracker._trackPageview();} catch(err) {}</script></body>|
@ursine
ursine / maybe.py
Created August 29, 2016 18:54 — forked from senko/maybe.py
A Pythonic implementation of the Maybe monad
# maybe.py - a Pythonic implementation of the Maybe monad
# Copyright (C) 2014. Senko Rasic <senko.rasic@goodcode.io>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
#!/usr/bin/php
<?php
// The bulk of the following code is from /etc/inc/util.inc in pfSense v2.0.2
// See http://www.pfsense.org - seriously good open source router software
// NOTE: formatting uses 3-space tabs
/* Convert IP address to long int, truncated to 32-bits to avoid sign extension
on 64-bit platforms. */
#!/bin/bash
rm -rf llvmbuild
svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
cd llvm/tools
svn co http://llvm.org/svn/llvm-project/cfe/trunk clang
cd ../..