Skip to content

Instantly share code, notes, and snippets.

View averymd's full-sized avatar
🐢
Slow and steady

Melissa Avery-Weir averymd

🐢
Slow and steady
View GitHub Profile
@averymd
averymd / asg-fam-photo.py
Created March 29, 2019 15:19
Ace Systems Go! Photo Generation
init 1 python:
def generate_family_photo():
comp = {}
# first, the frame
comp['frame'] = {
'filename': 'images/fam-photo/frames/' + 'frame-{:0>3d}.png'.format(renpy.random.randint(1,3)),
'x': 0,
'y': 0
}
@averymd
averymd / sass-main.scss
Created May 25, 2018 14:23
Example of "parent" Sass file (for talk)
@import "_normalize";
@import "compass/css3/transform";
@import "compass/css3/transition";
@import "compass/css3/animation";
@import "compass/css3/user-interface";
@import "compass/css3/flexbox";
@import "font-awesome-compass";
@import "font-awesome";
@averymd
averymd / ezd-mixins-inheritance.scss
Last active May 25, 2018 13:50
Example of Sass mixin that uses inheritance (for a talk)
@mixin rating-button($color) {
display: inline-block;
padding: $body-padding;
border-width: 1px;
background-color: $color;
border-color: tint($color, 50%);
box-shadow: 0 $body-padding shade($color, 50%);
color: black;
cursor: pointer;
font-weight: bold;
@averymd
averymd / __main__.py
Created January 11, 2016 00:01
Sanitized piwik ecommerce importer
""" Main executable for the Piwik sales importer. """
from process_sales_data import SalesDataProcessor
import logging, locale
logging.basicConfig(format='%(levelname)s: %(asctime)s %(message)s',
level=logging.DEBUG)
locale.setlocale(locale.LC_ALL, 'en_US')
def main():
@averymd
averymd / keybase.md
Created April 16, 2014 02:56
keybase.io

Keybase proof

I hereby claim:

  • I am averymd on github.
  • I am averymd (https://keybase.io/averymd) on keybase.
  • I have a public key whose fingerprint is 2518 D797 87F0 711B 9029 A3F9 E7F6 B6C2 CA65 27A1

To claim this, I am signing this object:

@averymd
averymd / .vimrc
Last active December 18, 2015 07:48
Various Linux configuration files.
" http://vim.wikia.com/wiki/Example_vimrc
" Authors: http://vim.wikia.com/wiki/Vim_on_Freenode
" Description: A minimal, but feature rich, example .vimrc. If you are a
" newbie, basing your first .vimrc on this file is a good
" choice.
" If you're a more advanced user, building your own .vimrc
" based
" on this file is still a good idea.
"
"------------------------------------------------------------