Skip to content

Instantly share code, notes, and snippets.

import time
import serial
import RPi.GPIO as GPIO
# Set up gpio for button push
PIN_NUM = 7
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BOARD)
# Set up printer
var five = require("johnny-five");
var keypress = require("keypress");
var options = {
// TODO: YOU SHOULD PUT THIS IN HERE
// TODO: we can make cute names for this?
'port' : '/dev/tty.GoldsamBot-SPPDev'
}
var board = new five.Board(options);
@goldsamantha
goldsamantha / README.md
Last active June 1, 2018 06:44
terminal theme for slack

Night mode for Slack Web

nightmode

Installing a theme

You'll want to add this theme color to slack as well: #000000,#000000,#006600,#00ff00,#00ff00,#00ff00,#ff0000,#ff0000 which I got from this site here: http://slackthemes.net/#/retro_monochrome_terminal

Instructions on how to add or customize slack themes can be found here

Events

Ways to bring people together (either as an employee resource group, and sometimes with allies present).

  • Mixers: We use our mixer bot to randomly email two members of our group, who can then arrange to get coffee, craft, or get to know each other in a way that's interesting to them. This one is great because it runs with little coordination from a single group leader.
  • Speaking/Writing Group: Sara set up a great weekly meeting for people in our group to bring their talks/blog posts/ideas and get feedback and help from the group.
  • Code as Craft: We had a series technical talks by women and non-binary people, speaking about topics from generative algorithms to how we do A/V at scale.
  • Here's another event organized by Malika for mid/senior level women & nbs in eng that functions similarl
#!/usr/bin/env bash
ESC_SEQ="\x1b[38;5;"
COL_01=$ESC_SEQ"160;01m"
COL_02=$ESC_SEQ"196;01m"
COL_03=$ESC_SEQ"202;01m"
COL_04=$ESC_SEQ"208;01m"
COL_05=$ESC_SEQ"214;01m"
COL_06=$ESC_SEQ"220;01m"
COL_07=$ESC_SEQ"226;01m"
"""
For recursively drawing turtle functions
Samantha Goldstein
April, 2012
"""
import turtle
def main():
@goldsamantha
goldsamantha / index.html
Created June 30, 2015 15:25
Synchronous Typer
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>synchronous fiddle</title>
</head>
<body>
<h1 class="init-text"></h1>
@goldsamantha
goldsamantha / README
Last active October 17, 2020 08:18
An implementation of Depth First Search in Python
This is a search algorithm implementation.
It takes a text file used to construct the tree
(use the example one exampletree.txt or your own)
To run:
$ python search.py <textfile.txt>