Skip to content

Instantly share code, notes, and snippets.

jgibbon

Block or report user

Report or block jgibbon

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
@pankajp
pankajp / serve_http.py
Last active Aug 27, 2019
Simple Python HTTP Server with multi-threading and partial-content support
View serve_http.py
#! /usr/bin/env python
# Standard library imports.
from SocketServer import ThreadingMixIn
import BaseHTTPServer
import SimpleHTTPServer
import sys
import json
import os
from os.path import (join, exists, dirname, abspath, isabs, sep, walk, splitext,
@BoldBigflank
BoldBigflank / Image2Map.py
Last active Oct 20, 2017
Convert an image of a map into its generated tile-set.Command line args: tileWidth, tileHeight, fileexample:python Image2Map.py 16 16 map.png
View Image2Map.py
# Filename : Image2Map.py
# Authors : Alex Swan, Georg Muntingh and Bjorn Lindeijer
# Version : 1.3
# Date : June 17, 2013
# Copyright : Public Domain
import os, sys, networkx
from PIL import Image
class TileMap:
@mwunsch
mwunsch / emojiToImage.js
Created Dec 16, 2012
Replace emoji characters in a string with an image of said emoji.
View emojiToImage.js
// (c) 2012 Mark Wunsch http://markwunsch.com
// MIT license.
if (!String.fromCodePoint) {
/*!
* ES6 Unicode Shims 0.1
* (c) 2012 Steven Levithan <http://slevithan.com/>
* MIT License
*/
String.fromCodePoint = function fromCodePoint () {
@joewest
joewest / app.js
Created Dec 14, 2011
ember.js login form
View app.js
App = Ember.Application.create({});
App.loginController = Ember.Object.create({
// do login stuff
});
App.LoginFormView = Ember.View.extend({
login: null,
password: null,
You can’t perform that action at this time.