Skip to content

Instantly share code, notes, and snippets.

View pspeter3's full-sized avatar

Phips Peter pspeter3

View GitHub Profile
@pspeter3
pspeter3 / .eleventyignore
Last active December 8, 2022 20:42
Eleventy 11ty.js Extensions
README.md
@pspeter3
pspeter3 / README.md
Last active March 4, 2016 18:18
Lambda: A simple functional TypeScript library

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 February 19, 2016 18:28
IFTTT Maker Channel Asana Proxy
package main
import (
"flag"
"log"
"net/http"
"net/url"
)
type handler struct{}
@pspeter3
pspeter3 / keybase.md
Created October 24, 2014 19:43
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 December 13, 2013 00:51
Print out the tasks you mark today from asana
#!/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 September 21, 2017 02:12
VIM settings
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 December 22, 2015 18:09
Status Board Foursquare Server written in pure node.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 September 9, 2013 23:04
Status Board Foursquare Python Server
#!/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 July 24, 2012 18:15
Quickly add aliases to your ~/.bashrc
function add-alias() {
echo "alias $1=\"${@:2:$#}\"" >> ~/.bashrc;
source ~/.bashrc;
}
@pspeter3
pspeter3 / minecraft.xboxdrv
Created July 31, 2011 08:37
Use with xboxdrv -c 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