Skip to content

Instantly share code, notes, and snippets.

View feltnerm's full-sized avatar

Mark Feltner feltnerm

View GitHub Profile
@feltnerm
feltnerm / mp6.ada
Created December 8, 2012 01:43
Ada program that supports adding and subtracting arbitrary-sized integers - "Bignum"s in Ruby. The program will read two numbers and print the result of adding and subtracting them. The numbers can be positive or negative. The implementation uses linked lists.
pragma License (Gpl);
-- BigIntegers - Package Specification
--
-- Package to define operations on BigIntegers
-- ###########################################################################
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package BigIntegers is
@feltnerm
feltnerm / SomeHaskell.hs
Created December 18, 2012 17:37
Some Haskell problems that I did for fun
{--
-
- @author: Mark Feltner
-
- **Haskell**
-
- Haskell is a nice language. I enjoyed it better than F# for functional
- programming.
- From my limited perspective, it seems that Haskell would operate best
- in a highly theoretical or mathematical environment; not the environment
@feltnerm
feltnerm / wicd WPA2-PEAP2 config
Created February 1, 2013 18:55
UW-Platt uses WPA2-PEAP2 encryption, which is not in the default wicd encryption templates. Putting this here for reference.
name = WPA2-PEAP2
version = 1
require identity *Username password *Password
protected password *Password
-----
ctrl_interface=/var/run/wpa_supplicant
network={
ssid="$_ESSID"
scan_ssid="$_SCAN"
key_mgmt=WPA-EAP
@feltnerm
feltnerm / deploy.rb
Created March 15, 2013 06:05
Assimilate the shell
#!/usr/bin/env ruby
##
# Deploy.rb
#
# Deploy dotfiles into users $HOME via symlinks
# Useful for those who keep a version controlled (via git) folder
# full of dotfiles
#
# assumptions:
# your files are stored in either ~/dotfiles or ~/dropbox
_________________________________________
/ Ever since I was a young boy, I've \
| hacked the ARPA net, From Berkeley down |
| to Rutgers, He's on my favorite |
| terminal, Any access I could get, He |
| cats C right into foo, But ain't seen |
| nothing like him, His disciples lead |
| him in, On any campus yet, And he just |
| breaks the root, That deaf, dumb, and |
| blind kid, Always has full SYS-PRIV's, |
_________________________________________
/ Five people -- an Englishman, \
| Russian,American, Frenchman and |
| Irishman were each asked to write a |
| book on elephants. Some amount of time |
| later they had all completed their |
| respective books. The Englishman's book |
| was entitled "The Elephant -- How to |
| Collect Them", the Russian's "The |
| Elephant -- Vol. I", the American's |
/**
* A variety of helper functions to help me.
*/
var helpme = (function () {
'use strict';
var obj = {
createFineUploader: function (element, button, autoupload, request,
_________________________________________
/ I've built a better model than the one \
| at Data General For data bases |
| vegetable, animal, and mineral My OS |
| handles CPUs with multiplexed duality; |
| My PL/1 compiler shows impressive |
| functionality. My storage system's |
| better than magnetic core polarity, You |
| never have to bother checking out a bit |
| for parity; There isn't any reason to |
@feltnerm
feltnerm / Fine Uploader 101
Created November 19, 2013 15:00
Fine Uploader 101
# Fine Uploader 101
## Intro
Hello! ...
### Server
Download server as zip and extract
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
</body>
</html>