Skip to content

Instantly share code, notes, and snippets.

vagrant@vagrant-ubuntu-vivid-64:/vagrant/SmartAmericaServer/django_server$ python manage.py runserver
connecting... 0
connected, rc: 0
ERROR parsing JSON payload: {d:{device:undefined,time:{420},data:undefined}}
Expecting property name enclosed in double quotes: line 1 column 2 (char 1)
ERROR parsing JSON payload: {d:{device:{0119},time:{420},data:{911}}}
Expecting property name enclosed in double quotes: line 1 column 2 (char 1)
ERROR parsing JSON payload: {d:{device:0119,time:420,data:911}}
Expecting property name enclosed in double quotes: line 1 column 2 (char 1)
Subscribed: 1 (0,)
@hateradio
hateradio / html64.rb
Last active April 29, 2024 05:58
ruby image to base64 string
require 'base64'
# converts attached PNGs into base64 strings
# Eg
# <img src="my.png" /> to <img src="data:image/png;base64,..." />
class To64Html
def initialize(path)
// ==UserScript==
// @name I'm An Idiot: The Anti-LOL Script
// @namespace hateradio)))
// @description Remove those senseless letters from your view.
// @include http://*neogaf.*/forum/*
// @grant All
// @priority 100000
// ==/UserScript==
/*jslint indent: 4, maxerr: 50, browser: true */