Skip to content

Instantly share code, notes, and snippets.

Max Battcher WorldMaker

Block or report user

Report or block WorldMaker

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@WorldMaker
WorldMaker / use-blurhash.ts
Last active Apr 26, 2020
useBlurhash hook
View use-blurhash.ts
import { decode } from 'blurhash'
import { useEffect, useState } from 'react'
function useBlurhash (blurhash: string, width: number, height: number, punch: number = 1) {
punch = punch || 1
const [url, setUrl] = useState(null as string | null)
useEffect(() => {
let isCancelled = false
@WorldMaker
WorldMaker / Aurelia.Command.README.md
Last active Jun 3, 2016
Aurelia Command (Promise) Binding
View Aurelia.Command.README.md

A Command custom attribute that handles click triggers that return a promise, disabling the element while the promise runs, and does basic progress reporting with Toastr.

Example usage:

<button command.call="submit()">Save</button>
View keybase.md

Keybase proof

I hereby claim:

  • I am WorldMaker on github.
  • I am worldmaker (https://keybase.io/worldmaker) on keybase.
  • I have a public key whose fingerprint is 7E76 5A94 3B6B 60AD 1B63 F787 643F 13C6 9F27 CF77

To claim this, I am signing this object:

@WorldMaker
WorldMaker / waml.py
Created May 14, 2010
Wave Annotation Markup
View waml.py
# Simple, stupid Wave Annotation Markup
# Copyright 2010 Max Battcher. Licensed for use under the Ms-PL.
from google.appengine.ext.webapp import template
from waveapi import element
import yaml
def append_waml(blip, filename, context={}):
"""
Applies to the doc, which is expected to be a Wave API Document, the
transforms specified in an appropriate data structure loaded from a
@WorldMaker
WorldMaker / celtx2renpy.py
Created Mar 31, 2010
Celtx to Ren'Py Script
View celtx2renpy.py
#!/usr/bin/python
# Celtx HTML Film Script to Ren'Py Script Tool (Based on KeyLimePie tools)
# Copyright 2010 Max Battcher. Some Rights Reserved.
# Licensed for use under the Ms-PL.
from BeautifulSoup import BeautifulSoup, Tag
import logging
def tagtext(contents):
def txt(thing):
if isinstance(thing, Tag):
@WorldMaker
WorldMaker / textapp.py
Created Sep 23, 2009
'Dirty' combined IM and SMS requests framework for AppEngine
View textapp.py
#
# textapp -- Combined SMS and IM dispatching
# Copyright 2009 Max Battcher. All Rights Reserved.
#
# Microsoft Public License (Ms-PL)
#
# This license governs use of the accompanying software. If you use the
# software, you accept this license. If you do not accept the license,
# do not use the software.
#
You can’t perform that action at this time.