Skip to content

Instantly share code, notes, and snippets.

View mekanoe's full-sized avatar
✂️
cut it out

noe mekanoe

✂️
cut it out
View GitHub Profile
@mekanoe
mekanoe / ct
Last active August 29, 2015 13:57
ct tool
#!/usr/bin/env python
# ct - cURL then (un)tar
# for normal use, it replaces
# $ curl <tarball url> | tar -z?f -
# also has weird zip stuff that acts the same way.
# NOW WITH RPM+YUM SUPPORT
import posixpath
import subprocess
<!doctype html>
<script>
var get_info = function() {
var x = new XMLHttpRequest()
x.open("GET", "http://localhost:8080/requests/status.json", true);
x.onreadystatechange = function() {
if (x.readyState === 4) {
var tmp = JSON.parse(x.responseText),
L = {}
L.title = tmp.information.category.meta.title
@mekanoe
mekanoe / player.coffee
Last active December 10, 2019 04:57
very lazy implementation of the player.me api
player =
_: "https://player.me/api"
_oauth:
clientId: undefined
clientSecret: undefined
header: undefined
__version: "1.0.0"
__author: "Katie Skytte <katie@phaser.tv>"
[ 'atm',
'binoculars',
'breaking_news',
'camera_gallery',
'cellphone_alert_popup',
'cellphone_ifruit',
'cellphone_prologue',
'countdown',
'darts_scoreboard',
'digiscanner',
package main
import "fmt"
import "sync"
import "time"
func main() {
var m sync.WaitGroup
fmt.Println("ok it's running boyo")
m.Add(1)