Skip to content

Instantly share code, notes, and snippets.

View aggrolite's full-sized avatar
:shipit:
coding!

Curtis Brandt aggrolite

:shipit:
coding!
View GitHub Profile
@aggrolite
aggrolite / tank.cs
Created September 5, 2017 15:51
unity tank control
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TankControl : MonoBehaviour {
public float walkSpeed;
public float rotateSpeed;
private CharacterController controller;
// Use this for initialization
@aggrolite
aggrolite / redditbot.md
Last active January 6, 2022 13:44
Writing a reddit bot with Go and OAuth2
diff --git a/META.json b/META.json
index 454d1bc..05baac7 100644
--- a/META.json
+++ b/META.json
@@ -63,7 +63,8 @@
},
"version" : "0.03",
"x_contributors" : [
- "Curtis Brandt <[email protected]>"
+ "Curtis Brandt <[email protected]>",
Section "ServerLayout"
Identifier "X.org Configured"
Screen 1 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Mouse1" "SendCoreEvents"
InputDevice "TouchScreen0" "SendCoreEvents"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
# This may be needed to prevent X from ignoring keyboard
@aggrolite
aggrolite / overloaded
Created December 19, 2013 17:53
imgur's overloaded page
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>imgur: the simple overloaded page</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta name="robots" content="follow,index" />
<meta name="keywords" content="images, funny pictures, image host, image upload, image sharing, image resize" />
<meta name="description" content="Imgur is used to share photos with social networks and online communities, and has the funniest pictures from all over the Internet." />
<meta http-equiv="X-UA-Compatible" content="IE=Edge;" />
<link rel="alternate" type="application/rss+xml" title="Imgur Gallery" href="http://feeds.feedburner.com/ImgurGallery?format=xml" />
@aggrolite
aggrolite / gist:5138710
Last active August 15, 2022 13:27
email deobfucsator
function obfuscateText(coded, key) {
// Email obfuscator script 2.1 by Tim Williams, University of Arizona
// Random encryption key feature by Andrew Moulden, Site Engineering Ltd
// This code is freeware provided these four comment lines remain intact
// A wizard to generate this code is at http://www.jottings.com/obfuscator/
shift = coded.length
link = ""
for (i = 0; i < coded.length; i++) {
if (key.indexOf(coded.charAt(i)) == -1) {
ltr = coded.charAt(i)
@aggrolite
aggrolite / hotels.pl
Created February 18, 2013 22:53
check for Yosemite hotels
use strict;
use warnings;
use HTML::TreeBuilder::XPath;
use LWP::Simple qw(get);
use Net::SMTP;
use URI;
my $uri = URI->new('https://gc.synxis.com/rez.aspx');
$uri->query_form(
use v5.10;
say !($_ % 3) && !($_ % 5) ? 'FizzBuzz' : !($_ % 3) ? 'Fizz' : !($_ % 5) ? 'Buzz' : $_ for (1 .. 100);
@aggrolite
aggrolite / 2012.pm
Created March 3, 2012 02:18
first stab at AP elections interface
package WWW::AP::Elections::2012;
use Moose;
use HTML::TreeBuilder::XPath;
use LWP::Simple qw(get);
use Geography::States;
has states => (
is => 'ro',
lazy_build => 1,
@aggrolite
aggrolite / 2012.pm
Created March 3, 2012 02:16
first stab at AP elections interface
package WWW::AP::Elections::2012;
use Moose;
use HTML::TreeBuilder::XPath;
use LWP::Simple qw(get);
use Geography::States;
has states => (
is => 'ro',
lazy_build => 1,