Skip to content

Instantly share code, notes, and snippets.

View singlerider's full-sized avatar
🏝️

Shane Engelman singlerider

🏝️
  • San Francisco, CA
View GitHub Profile

openpgp4fpr:3d7c8d39e8c4df771583d3f0a8a091fd346001ca

@singlerider
singlerider / back_at_one.py
Created October 13, 2021 15:39
It's undeniable.
class BackAtOne(object):
@classmethod
def step_1(cls):
return "You're like a dream come true"
@classmethod
def step_2(cls):
return "Just want to be with you"
signalk-server@1.33.0 /home/shane/git/signalk-server-node
├─┬ @serialport/bindings@8.0.8
│ ├─┬ @serialport/binding-abstract@8.0.6
│ │ └── debug@4.1.1 deduped
│ ├─┬ @serialport/parser-readline@8.0.6
│ │ └── @serialport/parser-delimiter@8.0.6
│ ├─┬ bindings@1.5.0
│ │ └── file-uri-to-path@1.0.0
│ ├── debug@4.1.1 deduped
│ ├── nan@2.14.1

Keybase proof

I hereby claim:

  • I am singlerider on github.
  • I am singlerider (https://keybase.io/singlerider) on keybase.
  • I have a public key ASDGFHR3Lwy18My2EgWpLJ7NbhjhSAYfM_DC1GZ1RoAy2go

To claim this, I am signing this object:

websockets==4.0.1
@singlerider
singlerider / gdax_time_series.py
Last active June 16, 2017 05:02
GDAX Time Series Data for datetime.now() ~24 hours
import json
import time
import urllib
import urllib2
from datetime import datetime, timedelta
URL = "https://api.gdax.com"
def candles(product):

Keybase proof

I hereby claim:

  • I am singlerider on github.
  • I am singlerider (https://keybase.io/singlerider) on keybase.
  • I have a public key ASAWM1LE7BMLrdh73f4kW6c8Yp6uwjC5bXWdPXKqNK6nUgo

To claim this, I am signing this object:

@singlerider
singlerider / twitch_tmi_connect.py
Last active February 8, 2016 00:46
Connect to Twitch Chat and Whispers simultaneously (IRC connection)
server = 'irc.twitch.tv'
port = 6667
username = 'lorenzotherobot'
oauth_password = 'oauth:5fakeOuathud90jsdam' # get this from http://twitchapps.com/tmi/
channel = "#singlerider"
from twisted.internet import reactor
from twisted.words.protocols import irc
from twisted.internet.protocol import ClientFactory
import time
@singlerider
singlerider / github_report_issue.py
Last active January 30, 2016 05:35
Submit A Github Issue using API V3 and Python's requests lib
import json
import requests # pip install requests
def report(args):
username = "github username"
bot_repo = "bot repository name (on username's account)"
github_token = "github token obtained from https://github.com/settings/tokens with scopes"
reporter = "user reporting issue"
import requests
import json
def urban(args):
word = args[0].replace(' ','%20')
word_url = 'http://api.urbandictionary.com/v0/define?term=' + word
word_resp = requests.get(url=word_url)
translated_word = json.loads(word_resp.content)
found_word = translated_word['list'][0]['word']
definition = translated_word['list'][0]['definition']