Skip to content

Instantly share code, notes, and snippets.

{
"recordings": {
"total_count": 3,
"data": [
{
"id": "cadf8094-62d8-4405-a56e-7640a1ec22cb",
"room_name": "moishe-test",
"start_ts": 1658411764,
"status": "finished",
"max_participants": 1,
import itertools
import json
base_config = {
"blurUniforms": {
"blurMultiplier": 10000,
"fadeDecrement": 0.00021
},
"colonies": {
"dense": {
150 152 increased
152 155 increased
155 156 increased
156 157 increased
157 141 decreased
141 124 decreased
124 138 increased
138 143 increased
143 145 increased
145 144 decreased
159 170 increased
170 171 increased
171 170 decreased
170 168 decreased
168 167 decreased
167 166 decreased
166 164 decreased
164 163 decreased
163 154 decreased
154 155 increased
f = open('input.txt')
steps = []
for l in f:
steps.append(int(l.rstrip()))
mx = max(steps) + 3
c = len(steps) + 1
print ("a + 3b = %d" % mx)
@Moishe
Moishe / oauth.diff
Last active November 11, 2020 19:25
OAuth diff
5a6
> import json
9a11,13
> BASE_URL = "http://127.0.0.1:5000"
> OAUTH_CALLBACK = "{}/oauth/mailchimp/callback".format(BASE_URL)
>
28c32
< "redirect_uri": "OAUTH_CALLBACK"
---
> "redirect_uri": OAUTH_CALLBACK
@Moishe
Moishe / new-oauth.py
Created November 11, 2020 19:24
Python OAuth sample file with fixes
#!/usr/bin/env python
from urllib.parse import urlencode
from operator import itemgetter
import json
import requests
from flask import Flask, redirect, request
import mailchimp_marketing as MailchimpMarketing
/*
This is a very simple and not very robust parser for nested lists.
It doesn't copy the source input, but builds a structured representation of the
input with pointers to values. This could be useful in memory-constrained environments.
The syntax is:
(value1 (value2 value3) value4)

First, let me get this out of the way: I'm having trouble writing about anything practical or work-related with everything happening with COVID-19. I'm worried about my family, I'm worried about my friends, I'm worried about neighbors and anyone vulnerable. But this seems like a small, topical thing I can contribute to that might make a narrow sliver of people's lives a tiny bit easier.

I've been working remote -- out of my home or a rented office -- for a little over 7 years now. During that time I've conducted a fair number of interviews over Zoom or Google Hangouts. It seems like doing this might become the norm for a while, so I thought it might be useful to share some things I've learned.

General Stuff

Interviews are stressful. They're stressful for candidates and for interviewers. There's a continuum of how comfortable people are, obviously, but the fact is they are important and they can have big impacts on people's lives. The nervousness isn't for nothing. I've been a candidate probably a

@Moishe
Moishe / remote.md
Created July 11, 2018 01:53
Remote work thoughts

Some random thoughts about making remote employees successful

  • have an advocate, ideally at the VP or C-Level, who is personally invested in making remote work. When I started at Etsy, I remember Kellan asking me directly "what can I do to make working remote better?" and Marc repeatedly checking in with me about remote qua remote. This has the obvious benefit of people who have power to make changes knowing about what changes to make and pushing things in a remote-friendly direction, but IME it also has an incredible effect on the morale of remotes. Remote morale is even more subject to perturbation than onsite morale, so this matters.

  • Avi Bryant said something once that really resonated: try to hire extroverts as remotes. I'm an introvert AND I'm shy and lots of the things I struggle with as a remote are, I think, tied up with that. My default action is not to reach out to people; it's a thing I have to nudge myself to do every time I need to do it, and minor barriers can grow in my head.