Skip to content

Instantly share code, notes, and snippets.

Tamara Temple tamouse

Block or report user

Report or block tamouse

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
@tamouse
tamouse / Time.js
Last active Jun 5, 2019
A React Time atom, that uses date-fns
View Time.js
import React from "react"
import T from "prop-types"
import { format, parse } from "date-fns"
/**
* Time
*
* @function
*
* @see https://date-fns.org/v1.30.1/docs/format for string formats
@tamouse
tamouse / errata.md
Last active Jan 2, 2019
Personal Bio and Diversity & Inclusion resource list
View errata.md

After listening to the podcast, I realize I made an error:

Alice Walker is the author of "The Color Purple".

Toni Morrison is the author of "Beloved".

My apologies to both authors and the audience.

@tamouse
tamouse / 1-howtowritegoodtests.org
Created Nov 29, 2018
Answer to a question someone asked about how to write good tests:
View 1-howtowritegoodtests.org

OP: I asked this in another group and I got a million answers but I’ll ask here: anyone have a good way to learn how to write good tests? I’ve listened to a test driven development course on lynda.com. I don’t really have a specific question per se, just looking for a pointer to good testing practices beyond the basics.

tamouse:

everyone says testing is Super Important, but no one seems to definitively answer that question. the obvious answer is “write a lot of bad tests” but that is oh so dismal.

the stuff i learned from, ages and ages ago, is probably no longer in print, but look for these authors:

  • jerry weinberg
  • boris beizer
@tamouse
tamouse / sexing-eggs.org
Created Apr 5, 2018
Learning Skills is like learning to sex eggs
View sexing-eggs.org

The novice comes into the barn where an old woman is sitting in front of a bin of eggs, reaching into it, pulling out an egg, and she looks at it, feels it, holds it up to the light, and smells it, and then sets the egg into another tray to the right.

She repeats these steps with another egg, and eventually puts it to the right as well.

Another egg, same process, only this time she puts it to the left.

This goes on and the novice observes, without asking questions, and the old woman offers no explanation.

Finally, they break for the noon meal. Still without speaking of the process, they return, only this time the nove sits in front of the large bin of eggs. He picks up an egg, looks at it, shakes it, and the old woman takes the egg from him, and proceeds with the same process, looking at it, feels it, holds it up to the light, smells it, and then sets it to the left.

View keybase.md

Keybase proof

I hereby claim:

  • I am tamouse on github.
  • I am tamouse_ (https://keybase.io/tamouse_) on keybase.
  • I have a public key ASDX97pMQJUNyQFIbPg0VUIqICncQnmYjQAirpUtL3WHRQo

To claim this, I am signing this object:

@tamouse
tamouse / script.sh
Created Jul 15, 2017
easier way to grab the page title, works for gizmodo
View script.sh
$ echo 'http://gizmodo.com/scientists-push-back-against-booming-genetic-pseudoscie-1796923059' |\
ruby -rnokogiri -ropen-uri -ne 'puts Nokogiri::HTML(open($_.chomp)).search("//title").text'
Scientists Push Back Against Booming Genetic Pseudoscience Market
@tamouse
tamouse / a-readme.md
Last active May 14, 2017
Minimum needed for header/main/footer full height stretch
View a-readme.md
View comment-or-uncomment-line-or-region.el
(defun comment-or-uncomment-line-or-region ()
"DWIM comment or uncomment line or region"
(interactive)
(let (start end )
(if mark-active
(progn
(setq start (mark))
(setq end (point)))
(progn
(setq start (line-beginning-position))
@tamouse
tamouse / guardreset.sh
Last active Apr 29, 2017
As a developer running emacs, When I am through testing, I want my emacs windows to go back to normal. https://swaac.tamouse.org/tools/2017/04/29/resetting-emacs-colours-after-working-with-guard/
View guardreset.sh
#!/bin/bash
# resetore the original colors when done running guard
[ -x "$(which emacsclient)" ] && emacsclient --eval '(set-face-attribute '\''mode-line nil :background "#1e2320" :foreground "#acbc90")' >/dev/null
[ -x "$(which tmux)" ] && tmux set status-left-bg colour239
You can’t perform that action at this time.