- Sort by priority
- Dark
- Compact
#!/usr/bin/env bash -e | |
### CONFIG | |
CONTAINER_NAME=something_unique_here | |
CONTAINER_IMAGE=python:3.9 # must have bash, or change the infinite sleep on :17 | |
COMMAND_PREFIX=./pants | |
### STOP EDITING |
Shopify as 3rd-party | |
* shopifysvc.com | |
_ shopify.com frame | |
_ shopify.com script | |
_ shopifysvc.com other |
#include <IRremote.h> | |
int IR_RCV_PIN = 2; | |
int IR_SND_PIN = 15; | |
int AMP_RCV_PIN = 36; | |
IRrecv irrecv(IR_RCV_PIN); | |
IRsend irsend; |
// sortedHashes = ['a', 'b', 'c', 'd', 'e', ...] | |
// doneRaces = [['a', 'c'], ['c', 'e'], ['a', 'b'], ...] | |
function getNewVoteRace(sortedHashes, doneRaces) { | |
let firstHash; | |
let secondIdxMax; | |
let secondTotalOpts; | |
let secondBlacklist; | |
while(_.isNil(secondIdxMax) || secondBlacklist.length >= secondTotalOpts) { |
const TIMEOUT_MS = 2000; | |
const FSM_DEF = { | |
id: 'tokenRequest', | |
initial: 'timing', | |
context: { | |
payload: { statusCode: 500, body: '{"error":"Unknown error [init]"}'}, | |
}, | |
states: { | |
timing: { |
# CodePipeline doesn't support symlinks. They are reflected on | |
# disk as their target path in the file contents. | |
check_content_path = True | |
while check_content_path: | |
content = sql_path.read_text() | |
try: | |
new_sql_path = sql_path.parent.joinpath(content) | |
if new_sql_path.exists(): | |
sql_path = new_sql_path | |
else: |
#!/usr/bin/env python3 | |
import sys | |
from copy import deepcopy | |
from pprint import pprint | |
class Decoder(object): | |
def __init__( |
#!/usr/bin/env python3 | |
import unittest | |
CONTINUATION_HIGH_BITS = 0b10 | |
CONTINUATION_SHIFT_RIGHT = 8 - CONTINUATION_HIGH_BITS.bit_length() | |
def is_continuation(byte): | |
return byte >> CONTINUATION_SHIFT_RIGHT == CONTINUATION_HIGH_BITS |