Skip to content

Instantly share code, notes, and snippets.

View icco's full-sized avatar
🏠
Working from home

Nat Welch icco

🏠
Working from home
View GitHub Profile
@icco
icco / WTFPL.txt
Created March 1, 2010 23:49
the WTFPL
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar
14 rue de Plaisance, 75014 Paris, France
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Select *
from tablename
where col = 'string'
#!/bin/bash
# By Nat Welch
# Puts your twitter status in the .project file
# so when you finger username, their twitter status is there.
VAR1="Twitter Status: ";
VAR2=`curl -s -u username:userpassword http://twitter.com/users/show/username.xml | egrep text\> | cut -d \< -f 2 | cut -b 6-`;
echo $VAR1 $VAR2 > ~/.project;
chmod 755 ~/.project;
@icco
icco / gist:330040
Created March 12, 2010 04:43
Puts your twitter in your .project
We couldn’t find that file to show.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Nat's Last.Fm Fun</title>
<style type="text/css">
<!--
li {
list-style-type: none;
padding: 5px;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Nat's Last.Fm Fun</title>
<style type="text/css">
<!--
li {
list-style-type: none;
padding: 5px;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Nat's Last.Fm Fun</title>
<style type="text/css">
<!--
li {
list-style-type: none;
padding: 5px;
@icco
icco / lastfm.php
Created March 12, 2010 04:58
really old php I wrote
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Nat's Last.Fm Fun</title>
<style type="text/css">
<!--
li {
list-style-type: none;
padding: 5px;
@icco
icco / whereami.sh
Created March 14, 2010 20:15
Find where you are via bash
#!/bin/bash
curl -s http://www.maxmind.com/app/locate_my_ip | awk '/<table>/{RS=RS RS}/tblProduct1/' | html2text
@icco
icco / ladders.fs
Created April 5, 2010 16:57
458 Assignment 1
(**
* Chutes and Ladders
* @author Nat Welch
* @author Mark Gius
*)
// I landed on position pos, where should I be?
let gameBoard pos =
match pos with
| 1 -> 38