Skip to content

Instantly share code, notes, and snippets.

View dethe's full-sized avatar

Dethe Elza dethe

View GitHub Profile
@dethe
dethe / DemoNoise.elm
Created November 6, 2016 07:19
Elm example: Canvas, Noise, AnimationFrame
import Html exposing (Html)
import Html.App as App
import AnimationFrame exposing (times, diffs)
import Time exposing (Time)
import Collage exposing (..)
import Color exposing (Color)
import Element exposing (toHtml)
import Array
import Noise exposing (PermutationTable, permutationTable, noise3d)
import Random exposing (initialSeed)
pico-8 cartridge // http://www.pico-8.com
version 4
__lua__
-- heroic journey
-- by dethe
-- globals are evil and so am i
frame = 0
(function(global){
'use strict';
var O = function O(defaults){
defaults.__proto__ = this;
this._listeners = {};
return defaults;
}
@dethe
dethe / gist:b39f24d08e14554e5bb3
Last active August 25, 2017 04:58
Are there any social meetups for women in tech in Vancouver?
After asking this on Twitter, this is what we've come up with so far.
Women's Tech Meetups in Vancouver
Girls Raising http://www.meetup.com/Vancouver-Tech-Co-Founders/events/193432902/
Code & Coffee (mixed gender but open and inclusive) http://www.meetup.com/Code-Coffee-Vancouver/
Ladies Learning Code (http://ladieslearningcode.com/ no Vancouver-specific link I could find)
Girl Dev Meetup (defunct?)
Society for Canadian Women in Science and Technology (http://www.meetup.com/Society-for-Canadian-Women-in-Science-and-Technology/)
Vancouver Female Python dev/code (Couldn't find)

Keybase proof

I hereby claim:

  • I am dethe on github.
  • I am dethe (https://keybase.io/dethe) on keybase.
  • I have a public key whose fingerprint is 26FE 4B95 89A4 B4EA E177 0553 B0F6 E563 16EB AE8A

To claim this, I am signing this object:

@dethe
dethe / gist:6aa83a5917ca68738685
Created July 25, 2014 03:54
Split to infinitives!
Why it's supposed to be bad to split infinitives -- Renaissance English intellectuals thought the classics were neatest and Latin was best and in Latin, like several other languages, you can't split infinitives because they are one word -- *esse*: to be and *habere*: to have -- and like that. Therefore, in order to snottily and pointlessly bring their own language into false similarity with Latin they tried to greatly limit its flexibility by imposing the no split infinitives rule. Obviously, this is cultural imperialism to be resisted by all right-minded people.
Same thing with ending sentences with prepositions. In Latin, you can't, no matter how hard you try, so we heirs to grunting German tribes shouldn't be able to. Or so said 16th century assimilationists, and some still listen. Death to tyrants! Split to infinitives!
--Anne Herbert
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element">
@dethe
dethe / gist:10918465
Created April 16, 2014 18:38
Traceback
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/wsgiref/handlers.py", line 93, in run
self.result = application(self.environ, self.start_response)
File "/Users/delza/.virtualenvs/zamboni/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line 206, in __call__
response = self.get_response(request)
File "/Users/delza/.virtualenvs/zamboni/lib/python2.6/site-packages/django/core/handlers/base.py", line 196, in get_response
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
File "/Users/delza/.virtualenvs/zamboni/lib/python2.6/site-packages/django/core/handlers/base.py", line 114, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/delza/Sites/marketplace/zamboni/apps/amo/decorators.py", line 32, in wrapper
@dethe
dethe / waterbear.md
Last active December 29, 2015 12:29
Waterbear Project Description

Waterbear Project Description

Waterbear (http://waterbearlang.com/) is a toolkit for creating visual block-based programming languages for the web. Its blocks are inspired by Scratch (http://scratch.mit.edu/), but where Scratch is a full-fledged language, Waterbear is a family of languages and the tool for making them. Waterbear has been used to create visual languages which produce code for Javascript, Java, Arduino, Minecraft, and Processing. Where the code can be compiled and run in the browser it has capabilities for doing that safely.

Waterbear is primarily a learning environment where coding can be guided without having to worry about syntax errors. The goal is for it to be useful for casual programming by non-programmers in a variety of domains. We still have a ways to go before it is easy and intuitive to start coding with Waterbear, especially in guiding new users through their first scripts.

Overview

There are several components to Waterbear

[
{"value":"950","label":"Global pharma market","description":"Global drugs market","source_name":"Forbes","source_link":"http://www.forbes.com/sites/matthewherper/2012/07/12/the-global-drug-market-will-swell-to-1-2-trillion-while-big-pharma-treads-water/"},
{"value":"901","label":"US budget deficit","description":"2013","source_name":"BBC News","source_link":"http://www.bbc.co.uk/news/world-us-canada-17014744"},
{"value":"89.8","label":"China","description":"China defence, 2011","source_name":"IISS","source_link":"http://www.iiss.org/publications/military-balance/the-military-balance-2012/press-statement/figure-comparative-defence-statistics/"},
{"value":"740","label":"Tobacco","description":"Global tobacco industry revenue, 2011","source_name":"Euromonitor","source_link":"http://blog.euromonitor.com/2012/06/new-tobacco-research-what-is-it-telling-us.html"},
{"value":"739.3","label":"US","description":"US defence, 2011","source_name":"IISS","source_link":"http://www.iiss.org/publications/military-balance/the