Skip to content

Instantly share code, notes, and snippets.

@basicxman
basicxman / ActiveTopics Proposal
Created June 11, 2010 15:46
Changes grab.php from the InfoLeakNotify repo.
<?php
/*
@author: Andrew Horsman
@description: Grabs new content from Information Leak
@prerequisites:
Ubuntu 9.04+ (Notification Systray)
libnotify-bin (install via sudo apt-get install libnotify-bin)
Firefox (with an binary or symlink in /usr/bin)
PHP 5+
# Conky Configuration File - Andrew Horsman - 08/09/2010
alignment top_right
background yes
border_width 0
cpu_avg_samples 2
default_color #666
default_outline_color #666
default_shade_color #666
draw_borders no
@basicxman
basicxman / HTML Teaching 1
Created August 9, 2010 03:15
HTML Teaching 1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- The `DOCTYPE` is used to tell the browser what version of HTML it should use. -->
<!-- The `html` tag defines the root of the document, and various attributes. -->
<!-- Since HTML is based off XML markup, xml:lang and xmlns tell the browser certain things to follow. -->
<html lang="en-us" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<!-- The `head` tag contains meta-data about the page, information that helps the browser render our markup. -->
<head>
@basicxman
basicxman / HTML Teaching 1
Created August 9, 2010 03:29
Attributes, values, and tags.
<html> - Tag.
lang="en-us" - attribute = value
Attributes and values go inside a tag right before the ending bracket (>)
<html lang="en-us">
#!/usr/bin/env ruby
require 'find'
require 'yaml'
formats = [ '.jpg' ]
current_iteration = 0
print "Searching"
<?php
/*
* @author: Andrew Horsman
* @description: Humans vs. Zombies Extractor
*/
// Configuration, meh at a second config file.
$grabPage = 'http://www.hvzgatech.com/?page=killboard';
$sqlServ = 'localhost';
#!/usr/bin/env ruby
# Tetris Planning
# Namespace container for the seven standard Tetrominoes.
module Tetrominoes
# Keep track of an X and Y value for a relative cartesian plane.
class Position < Struct.new(:x, :y)
end
require 'sinatra'
get '/start/:vm'
`vboxmanage startvm #{params[:vm]}`
end
@basicxman
basicxman / vimrc
Created January 9, 2011 05:12
Will get in repo later.
" Vim configuration - Andrew Horsman [basicxman]
" Reference
" Surround Plugin:
" <Normal> cst - Change surrounding tag
" <Normal> dst - Delete surrounding tag
" Operating system dependent options
if has("win32")
Andrew-Horsmans-iMac:wpilib basicxman$ diff WPILibNew/Relay.cpp WPILibOld/Relay.cpp
Andrew-Horsmans-iMac:wpilib basicxman$ diff WPILibNew/Relay.h WPILibOld/Relay.h
Andrew-Horsmans-iMac:wpilib basicxman$
Andrew-Horsmans-iMac:wpilib basicxman$ diff WPILibNew/DigitalModule.cpp WPILibOld/DigitalModule.cpp
56c56
< Resource::CreateResourceObject(&DO_PWMGenerators[SlotToIndex(m_slot)], tDIO::kNumDO_PWMDutyCycleElements);
---
> Resource::CreateResourceObject(&DO_PWMGenerators[SlotToIndex(m_slot)], tDIO::kNumSystems * tDIO::kNumDO_PWMDutyCycleElements);