Skip to content

Instantly share code, notes, and snippets.

View tamouse's full-sized avatar
🏠
Retired from Work

Tamara Temple tamouse

🏠
Retired from Work
View GitHub Profile
@tamouse
tamouse / s3_client.py
Last active March 11, 2025 03:17
Example: An S3 proxy client written in Python
"""
The server application uses AWS S3 in various places.
This utility provides a common place for interacting
with S3 and handles the authentication in a unified manner.
"""
import os.path
import logging
@tamouse
tamouse / bidvertiser.php
Last active June 9, 2024 13:34
php code for inserting bidvertiser markup. tested. Insert this into local/config.php.
<?php if (!defined('PmWiki')) exit(); // omit this line if inserting into another php file!!
Markup('bidvertiser','>inline','/\\(:bidvertiser\s+(.*?)\s+(.*?)\s*:\\)/e',
"bidvertiser_markup('$1','$2')");
function bidvertiser_markup($pid, $bid) {
global $MessageFmt;
$text = <<<EOT
<!-- Begin BidVertiser code -->
<script language="JavaScript1.1" SRC="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=$pid&bid=$bid" type="text/javascript"></SCRIPT>
@tamouse
tamouse / README.2019.org
Last active March 25, 2024 21:56
Guidelines for Hack-the-Gap Teams

Hack-the-Gap 2019

Preparation for Weekend

In answer to the question: “What should I know, expect, and have prepared for the weekend?”

  • The biggest thing to remember is to bring an open mind — you’ll learn new skills, tricks and maybe even a new programming language.
  • A laptop, charger, and you might bring an extension cord / power strip. Make sure it is a machine you can install and run software on (some work laptops are locked down).
  • Hav your favorite text editor installed. Make sure you have a modern code editor installed, lots of ppl use VSCode, Atom, Sublime. Be familiar with it.
  • Have Git installed, and be familiar with it. Additional tools that make using Git easier include Github Desktop and SourceTree. Additionally, many modern code editors such as VSCode integrate with Git. You are not required to use the command line, although many people do. If you’re not familiar with using Git in a team, let your team members and a mentor know and we will help.
  • Also, some people ar
@tamouse
tamouse / logseq-Gruvbox.css
Created January 17, 2024 17:33 — forked from tallguyjenks/logseq-Gruvbox.css
Logseq Gruvbox
@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;700&family=Fira+Sans:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");
:root {
--background: #282828;
--light-background: #3c3836;
--lighter-background: #504945;
--dark-background: #3c3836;
--darker-background: #1d2021;
--foreground: #ebdbb2;
--current-line: #504954;
@tamouse
tamouse / input.md-text
Last active May 25, 2023 13:46
Adding a class to a table in markdown (using kramdown processor as default in Jekyll).
# Let's try out a table with kramdown class tag
| A simple | table |
| with multiple | lines|
{: .my-class }
@tamouse
tamouse / __README.md
Last active April 10, 2020 16:22
ErrorBoundary Example (old, do it differently with functional components everywhere, hooks, etc)

This is pretty old now, and I'll likely do it a lot different these days.

@tamouse
tamouse / contact.md
Created April 10, 2020 16:19
Contact tamouse (Tamara Temple)
@tamouse
tamouse / Time.js
Last active June 5, 2019 12:56
A React Time atom, that uses date-fns
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 January 2, 2019 15:21
Personal Bio and Diversity & Inclusion resource list

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 November 29, 2018 20:44
Answer to a question someone asked about how to write good tests:

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