Skip to content

Instantly share code, notes, and snippets.

Avatar

Phips Peter pspeter3

View GitHub Profile
@pspeter3
pspeter3 / README.md
Last active Mar 4, 2016
Lambda: A simple functional TypeScript library
View README.md

Lambda

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.

@pspeter3
pspeter3 / main.go
Last active Feb 19, 2016
IFTTT Maker Channel Asana Proxy
View main.go
package main
import (
"flag"
"log"
"net/http"
"net/url"
)
type handler struct{}
View keybase.md

Keybase proof

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:

@pspeter3
pspeter3 / today.py
Created Dec 13, 2013
Print out the tasks you mark today from asana
View today.py
#!/usr/bin/python
import base64
import json
import os
import urllib
import urllib2
AUTHORIZATION = base64.encodestring(
"%s:" %(os.environ["ASANA_API_KEY"])).replace("\n", "")
@pspeter3
pspeter3 / install.sh
Last active Sep 21, 2017
VIM settings
View install.sh
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
@pspeter3
pspeter3 / statusboard.js
Last active Dec 22, 2015
Status Board Foursquare Server written in pure node.js
View statusboard.js
/**
* Status Board Foursquare Server
*/
var http = require('http');
var https = require('https');
var querystring = require('querystring');
var util = require('util');
/**
* Configuration for the server
@pspeter3
pspeter3 / statusboard.py
Created Sep 9, 2013
Status Board Foursquare Python Server
View statusboard.py
#!/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(','))
@pspeter3
pspeter3 / add-alias.sh
Created Jul 24, 2012
Quickly add aliases to your ~/.bashrc
View add-alias.sh
function add-alias() {
echo "alias $1=\"${@:2:$#}\"" >> ~/.bashrc;
source ~/.bashrc;
}
@pspeter3
pspeter3 / minecraft.xboxdrv
Created Jul 31, 2011
Use with xboxdrv -c minecraft.xboxdrv
View minecraft.xboxdrv
# 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
You can’t perform that action at this time.