Skip to content

Instantly share code, notes, and snippets.

View youmustfight's full-sized avatar
🌈

Mark youmustfight

🌈
View GitHub Profile
@youmustfight
youmustfight / tic-tac-toe.py
Created June 2, 2023 20:26
tic-tac-toe game, TODO: weave in a LLM (for recurse center folks)
# ==========================================================
# Tic-Tac-Toe Experiment
# Chat-based completion weaving into a tic tac toe game
# ==========================================================
def get_board_choices(board):
choices = []
for row_idx, row_abbrev in enumerate(['T','M','B']):
for col_idx, col_abbrev in enumerate(['L','M','R']):
if board[row_idx][col_idx] == None:
@youmustfight
youmustfight / portionOfTimeKeepingLightsOn.js
Last active May 15, 2020 17:55
Simple tally function to use at the end of a sprint to know how much time we spend on maintenance and if we're ready to support a new product (for JIRA users)
// FOR JIRA
// 1. Setup your sprints (we do 2 week sprints)
// 2. Setup your issues to have time tracking and create a "triage" label
// 3. Create a JQL filter to target your active sprint: "project = UP AND Sprint in openSprints()"
// 4. Create a dashboard and a Workload Balance Chart that uses your "Active Sprint" filter + groups by label.
// 5. Take your total and label specific time read outs (ex: "Total time: 1w 2d 3h 17m") and insert below
// 6. Run it! We are aiming for a 20% time spent "Keeping the Lights On". The below stats were from a sprint following a massive rewrite, so it's very high.
// Time spent on all issues within a sprint
const totalTimeSpent = {
@youmustfight
youmustfight / machine.js
Last active April 30, 2020 14:10
Generated by XState Viz: https://xstate.js.org/viz
const screenerMachine = Machine({
id: 'screenerMachine',
initial: 'checkDebtLevels',
states: {
checkDebtLevels: {
on: {
HIGH: 'segueWithTeam',
// https://xstate.js.org/docs/guides/communication.html#invoking-machines
LOW: sendParent('DISQUALIFIED')
}
Project
{
"title": "Fire Hydrant Maintenance",
"problem_statement": "Community engagement",
"description": "Allows citizens to adopt fire-hydrants to help solve the problem of snow coverage blocking",
"tags": ["slack", "community engagement", "integration", "python", "flask", "glossary", "dictionary"],
"dependencies": [Project],
"link": "http://github.com/firehydrantadoption",
@youmustfight
youmustfight / itsalive.js
Last active August 29, 2015 14:23
Testing Wikistack w/ Cats
var expect = require('chai').expect;
var mongoose = require('mongoose');
require('../models/');
// var user = mongoose.model('User');
var Page = mongoose.model('Page');
### Keybase proof
I hereby claim:
* I am youmustfight on github.
* I am markhansen (https://keybase.io/markhansen) on keybase.
* I have a public key whose fingerprint is C3B9 A203 3699 D5BE 8F8A 135D 0149 19CE AA92 6A5D
To claim this, I am signing this object: