Skip to content

Instantly share code, notes, and snippets.

Avatar

CptSpaceToaster

View GitHub Profile
View super_mario_script_2_demoRg
@font-face {
font-family: 'super_mario_script_2_demoRg';
src: url(data:application/font-woff2;charset=utf-8;base64,d09GMgABAAAAAEiUABEAAAAAo1wAAEgrAAEZmQAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGh4GYACDUgg0CYRlEQgKgqNEgf4jATYCJAOGCAuDBgAEIAWFQAeEVQyCPD93ZWJmBhsIjjVy01m5HZAQNd/+UZRu2j6iKOOktWX//9cDJcf2495QihCICQPgGFUzSsawLGJtP1GOKsKDMGrmSPxyWCWlZ8u346/Mr/2GM8fUm+3V7rfVLaQkuyfx99gx3fYkdP+cQgr9032DhAwhAJk4sw6L85/mB/QGWR03L7otYU/LKeLqGYF/KXFcrXGcHLJRSCWj9ZCkqIUn+k7qVWOCWVAnYM2/kytZUx2d+SUMz+vm/0lIAtx7CYGQeyEJkFyQsBJZSsII44apkCArJCAzCRhEEpZoImMluhsctBjQYpXgoCM4a0HtVNva9hU60Ba0X/+r2GX76JJ4Yr+27wzzaE0bIXMNtyTaoDSmU5pXUuWXckkHnfsPpRogkBilP0OAUDUCNl6r18Y/XWvLcPv0b1me/2ljZRGxID988CxQii3uCWrTi9UwqWrkgZdy16pW5R3mzDQtj44BDAvltEf46uXjiQ8lu+VskUAaJZtCoES/o4L9P8xZOpItGBEZMHFgc4A5wra/Rxsc7zA8/MvPvdm48NrlA9Ad6AjrIsWEOfD/5S+z/+KMpHG5W4RDLH0tPRNWvqnLaeokved1G4PQlTvI20AZgUYHfo03wIFCmivtmFoGCiiBmEEpb3acMzhh+4u2uKL/otb929RmtNbT2xkpR0ZUiGhg4dkL33bIEGDVB1ReV1yK+spUx39vqtm+t0vo/q5EpbvsJDmkLvZKTqEoXbp0yf0f6e8uAG+itLsgOQAo+4Al7oRAnQFSZwiUq
View add_song.sh
#!/bin/bash
function get_artist() {
if [[ ! -z "$ARTIST" ]]; then
return
fi
ARTIST=$(mid3v2 "$1" -l | awk -F"=" '/TPE1/ {print $2}')
if [[ ! -z "$ARTIST" ]]; then
return
fi
ARTIST=$(mid3v2 "$1" -l | awk -F"=" '/TPE2/ {print $2}')
View does_not_work
# Example Montior Setup
# [s]
# [c][s]
section: screens
s:
c:
end
section: links
View lsb-release
==> /etc/lsb-release <==
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04 LTS"
View elementary.list
==> /etc/apt/sources.list.d/elementary.list <==
deb http://ppa.launchpad.net/elementary-os/stable/ubuntu trusty main
deb-src http://ppa.launchpad.net/elementary-os/stable/ubuntu trusty main
View gist:77e9af1cd2749da4094b
[17:44:29] global - [DEV] General Taal: goblins not ogres :)
[17:44:40] global - [DEV] Lyros: Trolls not goblins
[17:44:57] global - [DEV] Lyros: jeez taal cmon
[17:45:03] global - sneaktwo: Anyone have an ornate orc helm and protector's pants to sell me? :D
[17:45:14] global - White Feather:
Traceback (most recent call last):
File "./main.py", line 180, in <module>
I.get_chat()
File "./main.py", line 124, in get_chat
self.parse_chat(messages, group, init)
View yggauth.py
#!/usr/bin/env python3
import requests
import json
import argparse
import uuid
import getpass
import os
import sys
View gist:8ae4dcf57424421740f2
color_divide = numpy.array([2, 2, 2, 1])
def do_compare(pic1, pic2):
return ((pic2 - pic1) + 255)//color_divide
View gist:b260050d4a111c185057
$ python3.4
Python 3.4.0 (default, Jun 19 2015, 14:20:21)
[GCC 4.8.2] on linux
>>> import numpy
>>> a = numpy.array([[[127, 127, 127, 255],
... [127, 127, 127, 255]],
... [[127, 127, 127, 255],
... [127, 127, 127, 255]]])
View Fall.py
def make_fall_delicacy():
delicacy = get_random_food()
return 'Pumking Spice ' + delicacy