Skip to content

Instantly share code, notes, and snippets.

View graphicore's full-sized avatar
🎯
Focusing then blurring again …

Lasse Fister graphicore

🎯
Focusing then blurring again …
View GitHub Profile
@graphicore
graphicore / proxy-whitelist.js
Last active August 29, 2015 14:06
direct proxies as whitelists
require('harmony-reflect');
function CPSWhitelistHandler(whitelist) {
this._whitelist = whitelist;
// We can't use "get" and "has" from the prototype of the handler with
// at least the nodejs implementations that is available. I don't
// know if this is going to change ...
// It looks like the internal check is done with Object.hasOwnProperty
this.get = function(target, name, receiver) {
#! /usr/bin/env python
import json
from robofab import glifLib2
class Glyph (object):
def __init__(self):
self.outline = [];
def getPen(self):
return OutlinePen(self.outline)