Skip to content

Instantly share code, notes, and snippets.

Avatar
🦋
we renamed master to main. step 2: get the state to stop killing black&brown ppl

Brenda Wallace Br3nda

🦋
we renamed master to main. step 2: get the state to stop killing black&brown ppl
View GitHub Profile
View post-checkout.sh
#!/usr/bin/env bash
LC_ALL=C
# Place this in .git/hooks/post-checkout
local_branch="$(git rev-parse --abbrev-ref HEAD)"
if [[ $local_branch == "master" ]]
then
echo "==============================================="
View seatoun_sewage.py
#!/usr/bin/env python
from xml.etree import ElementTree
import requests
import json
import sys
import urllib
site = sys.argv[1] # e.g.'Seatoun Beach at Inglis Street',
@Br3nda
Br3nda / deploy-to-gh-pages.sh
Created Jan 15, 2019
Build and deploy jekyll site to gh-pages branch
View deploy-to-gh-pages.sh
#!/bin/bash
set -e
# based on https://gist.github.com/cobyism/4730490
DIST_FOLDER='_site'
PUBLISH_BRANCH='gh-pages'
REMOTE='origin'
GIT_USER=`git config user.name`
View Dash board testing checklist.md

Release notes:

  • Turned off page updating - you only get the readings at the time of loading the page. Will re-instate on new PR
  • Some admin screens not done yet - will send in new PRS

Things to Test:

Self-service workflow

  • Sign up a new user
  • Confirm your email
  • Login as this new user
View OpenFisca cheatsheet.md

Number of children in a family

class number_of_children_in_family(Variable):
    value_type = int
    definition_period = MONTH
    entity = Family
    label = u"The number of children in a family"

    def formula(families, period):
View OF aotearoa Accommodation Supplement Request.md

Example request body

{
  "persons": {
    "Tahi": {
      "social_security__eligible_for_accommodation_supplement": {
        "2018-08": null
      },
      "age": { "2018-08": 30},
      "normally_lives_in_nz": { "2018-08": true },
View gist:0424281f363e8d03b8e8b259a1bed0df
-----BEGIN PGP MESSAGE-----
Version: GnuPG v1
hQIMAwDLjlflpTdnARAAjN6uINbS5QJFUEAiBeJ8eVBCF9nXSHMNYQ+hk6rinBXE
xrFDGgSHbz6BIFSTkRePewJd/p735Ou6GrTBMD1y74qGY1lpX1GWT1peRv6VkmcS
YGCE+qT6g0YlqIFLeuNoW1tnfwLUSRM3cr5mFl1BreqHP2DFhw8icjXw+3+Zb17j
GJ9B+/vP5a/pNaT9ALQXvDeWisHFPWsNs3yxGEHQ7RMPBnPq9kzOF76ObgbdgJjb
EdmtTw8U0Okm+y9EYZwU4garzzQSvdCHBrzNMA7FutJghGgLsVFWN+5qtC3lE6HR
UuyQiJg7MZx6kDuVUrAG7QtjYmvybMk1S4LBwbW/p416qL+iOBQ54xkkGagrJTro
J1mgYk/7K56cX24y0PgQ0Y93Ya/0jkvvKAFT70E8pRUw1wGjMlkSxg1sB9lxshUr
View capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
View wharehauora_partslist.md
@Br3nda
Br3nda / Parts list
Last active Jun 9, 2017
Whare Hauora Parts list
View Parts list
Moved to:
https://gist.github.com/Br3nda/c52088c728b93ba1ae3055ab5e05e8e5