Skip to content

Instantly share code, notes, and snippets.

megamattron / jquery.jeditable.tinymce.js
Created March 8, 2012 00:08
JEditable TinyMCE custom input plugin
View jquery.jeditable.tinymce.js
* Wysiwyg input for Jeditable
* Copyright (c) 2008 Mika Tuupola
* Licensed under the MIT license:
* Depends on jWYSIWYG plugin by Juan M Martinez:
View gist:2843824
var testerWidth = testSubject.width(),
newWidth = (testerWidth + o.comfortZone) >= minWidth ? testerWidth + o.comfortZone : minWidth,
currentWidth = input.width(),
isValidWidthChange = (newWidth < currentWidth && newWidth >= minWidth)
|| (newWidth > minWidth && newWidth < o.maxWidth);
View autogrow.js
// From
(function ($) {
$.fn.autoGrowInput = function (o) {
o = $.extend({
}, o);
megamattron / jquery.html5form-1.5.js
Created August 7, 2012 14:31
JQuery HTML5 - modified for dynamic forms
View jquery.html5form-1.5.js
* Html5 Form Plugin - jQuery plugin
* Version 1.5 / English
* Author: by Matias Mancini
* Modified to be safe to call repeatedly on a form, useful for forms that change their fields dynamically.
* Copyright (c) 2010 Matias Mancini (
* Dual licensed under the MIT (MIT-LICENSE.txt)

How did Pullup get started? Who all was involved, and how did the idea come about?

Myself and @pents90 were talking about how online communities tend to lose much of what makes them special as they grow. There are some exceptions to that rule, but usually as the community gets diluted from the early adopters things go downhill. We decided to try and set the bar for membership to be (too?) high and see what happens. So the 1000th person that joined had to do roughly the same amount of work as the 1st person. All of that, and the hook for the site - join via pull request - seemed too sweet to pass up, we knew we had to give it a try. It also seemed like an interesting experiment in chaotic software development. You usually don't get far with no real plan for a piece of software, so it's been interesting to see things develop.

Pullup is one of the fastest growing projects on Github. How did you get so much traction so quickly?

I'm not exactly sure! I think it w

View gist:916cf6d7d1ef8495146a
Verifying that +matt2000 is my Bitcoin username. You can send me #bitcoin here:
megamattron /
Last active January 5, 2017 15:15
LED Minecraft server status for Raspberry Pi and Sense HAT
import requests
from mcstatus import MinecraftServer
from sense_hat import SenseHat
mojang_username = "<your mojang login, usually your email address>"
minecraft_playername = "<your minecraft playername>"
password = "<your mojang password>"
def get_cookie(user_uuid):
return "sid=token:" + get_token() + ":"+user_uuid+";user="+minecraft_playername+";version=1.7.9"
import org.web3j.crypto.Keys;
import org.web3j.crypto.Sign;
import org.web3j.utils.Numeric;
public class SignUtil {
private static final String GETH_SIGN_PREFIX = "\u0019Ethereum Signed Message:\n32";