This is just meant to be a small proof of concept functional programming libray for TypeScript which handles working with Releasables, Maps, Maybes, and Results.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"log" | |
"net/http" | |
"net/url" | |
) | |
type handler struct{} |
I hereby claim:
- I am pspeter3 on github.
- I am pspeter3 (https://keybase.io/pspeter3) on keybase.
- I have a public key whose fingerprint is 5ED7 7417 FCDD A309 186E 34BE FCD7 7F73 9981 2DF9
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import base64 | |
import json | |
import os | |
import urllib | |
import urllib2 | |
AUTHORIZATION = base64.encodestring( | |
"%s:" %(os.environ["ASANA_API_KEY"])).replace("\n", "") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir ~/.vim | |
curl -Sso ~/.vimrc https://gist.github.com/pspeter3/6511802/raw/f62511c31f70dd6f90eb09ab2dc87d43a265809a/settings.vim | |
mkdir -p ~/.vim/colors | |
curl -Sso ~/.vim/colors/Tomorrow-Night.vim https://raw.github.com/chriskempson/tomorrow-theme/master/vim/colors/Tomorrow-Night.vim | |
mkdir -p ~/.vim/autoload ~/.vim/bundle | |
curl -Sso ~/.vim/autoload/pathogen.vim https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim | |
cd ~/.vim/bundle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Status Board Foursquare Server | |
*/ | |
var http = require('http'); | |
var https = require('https'); | |
var querystring = require('querystring'); | |
var util = require('util'); | |
/** | |
* Configuration for the server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer | |
from json import loads | |
from os import environ | |
from time import time | |
from urllib2 import urlopen | |
HEADER = environ.get('HEADER') | |
FOURSQUARE_URL = "https://api.foursquare.com/v2/checkins/recent?oauth_token=%s" % (environ.get('FOURSQUARE_TOKEN')) | |
FOURSQUARE_IDS = set(environ.get('FOURSQUARE_IDS').split(',')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function add-alias() { | |
echo "alias $1=\"${@:2:$#}\"" >> ~/.bashrc; | |
source ~/.bashrc; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Supports the default controls in the way I thought was logical. | |
# | |
# A is jump | |
# B is sneak | |
# X is drop | |
# Y is chat | |
# Scroll with the DPAD | |
# RT is left click | |
# LT is right click | |
# Left joystick is WASD |