Skip to content

Instantly share code, notes, and snippets.

View feltnerm's full-sized avatar

Mark Feltner feltnerm

View GitHub Profile
@feltnerm
feltnerm / main.go
Created July 29, 2014 22:02
go fineuploader server (work in-progress)
package main
import (
"fmt"
"io"
"log"
"mime/multipart"
"net/http"
"net/http/httputil"
"os"
@feltnerm
feltnerm / capitalize.js
Last active August 29, 2015 14:03
recursively capitalize a string that is separated by underscores:
function capitalize(s){
s = s || [''];
var titleCase = s[0].toUpperCase() + s.slice(1);
var idx = titleCase.indexOf("_");
if (idx != -1){
first = titleCase.slice(0, idx);
last = titleCase.slice(idx+1);
return first + ' ' + capitalize(last);
@feltnerm
feltnerm / keybase.md
Created June 12, 2014 21:01
keybase.md

Keybase proof

I hereby claim:

  • I am feltnerm on github.
  • I am feltnerm (https://keybase.io/feltnerm) on keybase.
  • I have a public key whose fingerprint is 7C67 7698 94BB FC01 E691 E4BD 3E80 8170 37C5 F779

To claim this, I am signing this object:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
</body>
</html>
@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
_________________________________________
/ 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 |
/**
* A variety of helper functions to help me.
*/
var helpme = (function () {
'use strict';
var obj = {
createFineUploader: function (element, button, autoupload, request,
_________________________________________
/ 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 |
_________________________________________
/ 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, |
@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