Skip to content

Instantly share code, notes, and snippets.

View maxxcrawford's full-sized avatar

Maxx Crawford maxxcrawford

View GitHub Profile
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("phones", "0012_relaynumber"),
]
operations = [
@maxxcrawford
maxxcrawford / google-photo-video-select.js
Created March 3, 2021 04:15
Script used to select all videos from a Google Photos album
// Run this script in your DevTools console
// Calculate how many times you'll need to scroll down the page.
var pageHeight = window.innerHeight;
var windowEl = document.querySelector(".Ac8dXc");
var loopCount = Math.ceil(windowEl.offsetHeight / pageHeight)
// Running array of images (based on what is visible on the scren)
var videos = document.querySelectorAll("div[aria-label*='Video']");
// Click the video thumbnail, only if it is not already clicked
@maxxcrawford
maxxcrawford / map-data.json
Created October 27, 2020 22:25
Oklahoma Bridge Tracker Data
[
{
"NBI": "037400000000000",
"Div": "01",
"Co.": "Adair",
"FACILITY": "S.H. 100",
"FEATINT": "RUSSELL BRANCH CREEK",
"STRUCNAME": "0118 0450 X",
"LOCATION": "4.6 MI.E.JCT.US59",
"YEARBUILT": 1932,
@maxxcrawford
maxxcrawford / letter-availability.md
Created October 12, 2020 16:00
MTV Letter Project Availability
Letter Availability
A Available
B Available
C Available
D Available
E Available
F Available
G Available
H Available
@maxxcrawford
maxxcrawford / sept-update.md
Last active September 15, 2020 21:44
Techlahoma Sept 2020 Conference Committee Updates

Conference Committee

ThunderPlains (Nov 12, 2020)

@maxxcrawford
maxxcrawford / ConsentProcess.md
Last active September 8, 2020 21:34
Consent Process from "Deciding with Consents" by Roman Bercot

Consent Process

Excerpt from "Deciding with Consents" by Roman Bercot

1. State the Proposal

The person proposing the idea frames the problem or opportunity and offers a proposed way to address it.

2. Ask Questions

Participants ask clarifying questions that the proposer can answer.

@maxxcrawford
maxxcrawford / mixin-media-query-example.scss
Created August 31, 2020 20:43
SASS Mix-in Example for Media Query
@mixin mq-at-least($device-width) {
@media screen and (min-width: $device-width){
@content;
}
}
.container {
width: 100%;
@include mq-at-least(768px){
max-width: 50%;
* {box-sizing: border-box}
[hidden] {display: none !important}
[disabled] {pointer-events:none; opacity: 0.3}
.horizontal {display: flex; flex-direction: row; justify-content: space-between}
.vertical {display: flex; flex-direction: column}
.center {justify-content: center; align-items: center}
.flex {flex: 1}
html {
--spacing-xs: 8px;
--spacing: 24px;
@maxxcrawford
maxxcrawford / normandyDohTestScript-Enable-120.js
Created December 17, 2019 21:56
Run to simulate enrollment in v3 Doh Add-on study, and receive the v1.2.0 of the DoH Rollout add-on ENABLED
{
"id": 883,
"last_updated": "2019-11-28T04:32:58.623288Z",
"name": "DoH US Engagement Study V3",
"enabled": true,
"is_approved": true,
"revision_id": 2853,
"action": "branched-addon-study",
"arguments": {
"branches": [
@maxxcrawford
maxxcrawford / normandyDohTestScript-Disable.js
Last active December 10, 2019 21:49
Run to simulate enrollment in v3 Doh Add-on study, and receive the v1.1.0 of the DoH Rollout add-on DISABLED
{
"id": 883,
"last_updated": "2019-11-28T04:32:58.623288Z",
"name": "DoH US Engagement Study V3",
"enabled": true,
"is_approved": true,
"revision_id": 2853,
"action": "branched-addon-study",
"arguments": {
"branches": [