Skip to content

Instantly share code, notes, and snippets.

View a-r-d's full-sized avatar
🍌

Aaron Decker a-r-d

🍌
View GitHub Profile
@a-r-d
a-r-d / projEuler11.py
Created March 12, 2012 21:04
project euler # 11 partway
#project euler problem 11
num_str = '''08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08
49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 62 00
81 49 31 73 55 79 14 29 93 71 40 67 53 88 30 03 49 13 36 65
52 70 95 23 04 60 11 42 69 24 68 56 01 32 56 71 37 02 36 91
22 31 16 71 51 67 63 89 41 92 36 54 22 40 40 28 66 33 13 80
24 47 32 60 99 03 45 02 44 75 33 53 78 36 84 20 35 17 12 50
32 98 81 28 64 23 67 10 26 38 40 67 59 54 70 66 18 38 64 70
67 26 20 68 02 62 12 20 95 63 94 39 63 08 40 91 66 49 94 21
@a-r-d
a-r-d / 18.py
Created March 13, 2012 23:37
proj euler 18 first attemp
# Proj Euler #18... NOT CORRECT!
########################################################
### Kind of just started calculating from largest
### number in bottom line going all the way up.
### Not really correct. Need to think about this more.
###########################################################
#import sys
#import time
@a-r-d
a-r-d / pe3.py
Created March 27, 2012 20:12
project euler 3- not optimized
#proj euler 3
'''
The prime factors of 13195 are 5, 7, 13 and 29.
What is the largest prime factor of the number 600851475143 ?
'''
factorsList = []
i = 2
@a-r-d
a-r-d / excelReader.vb
Created April 4, 2012 04:43
Excel file report generator Outline/ template script. Form layout not included!
'WHAT IS THIS?
' -opens an excel file with named cells, reads them from the specified sheet,
' then it will save this to another file. Basically this a template for
' generating reports from a large excel file that can be sent to people that only
' need minimal information
'microsoft tut
'http://support.microsoft.com/kb/302094
'also add COM Reference "Microsoft Excel Object Library 14"
@a-r-d
a-r-d / ani.html
Created April 6, 2012 16:53
Rotating and bouncing ball animations in Javascript / CSS
<link href='http://fonts.googleapis.com/css?family=Press+Start+2P' rel='stylesheet' type='text/css'>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<style>
#ball1 {
z-index: -5;
width: 100px;
height: 100px;
color: black;
background-color: white;
@a-r-d
a-r-d / matrix.html
Created April 13, 2012 22:52
the rainbow matrix in javscript
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" value="IE=9">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<link href='http://fonts.googleapis.com/css?family=Press+Start+2P' rel='stylesheet' type='text/css'>
<style>
body {
padding: 0px;
@a-r-d
a-r-d / rand.html
Created April 14, 2012 03:23
random letters random colors random places
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" value="IE=9">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<link href='http://fonts.googleapis.com/css?family=Della+Respira' rel='stylesheet' type='text/css'>
<!-- font-family: 'Della Respira', serif;-->
@a-r-d
a-r-d / paint.html
Created April 21, 2012 21:45
HTML5 canvas paint outline
<html>
<head>
<style>
#canvas1 {
margin-left: auto;
margin-right: auto;
}
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
@a-r-d
a-r-d / menuMaker.py
Created April 28, 2012 17:50
Python script I wrote to make a menu for a website from a .CSV to a bunch of JS arrays/ JSON objects.
#!/usr/bin/env python
#### OPEN CSV AND READ INTO A LIST OF LINES, TABED PIECES ###
def pullCSV():
#fname = raw_input("What is filename, TAB DELIMITED! > ")
#headerLoc = input("linenumber where heading is (eg 2) > ")
fname = "store_list.csv"
f = open(fname, "r")
lines= []
@a-r-d
a-r-d / lolautohacks.html
Created April 29, 2012 20:25
browser terminal typer. Press escape to switch terminals. Look like a pro.
<!--
lolautohacks.html
Copyright 2012 Aaron Decker <d00ble.ard@gmail.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.