Some motor-control code for our robot kit.
Rather than starting with lexing and parsing, this week we just assume we have those bits already working, so that we can jump straight to eval()
.
Youbora went through a significant refactor as they transitioned from v5 to v6 of their iOS video playback metrics collecting plugins.
While this change has improved some shortcomings in the v5 design, it has unfortunately been the source of some confusion, as their dev infra and resources seem to have bifurcated across this change:
{ | |
"Min" : ["William", "Jayden", "Omar"], | |
"William" : ["Min", "Noam"], | |
"Jayden" : ["Min", "Amelia", "Ren", "Noam"], | |
"Ren" : ["Jayden", "Omar"], | |
"Amelia" : ["Jayden", "Adam", "Miguel"], | |
"Adam" : ["Amelia", "Miguel"], | |
"Miguel" : ["Amelia", "Adam"], | |
"Noam" : ["Jayden", "William"], | |
"Omar" : ["Ren", "Min"] |
import UIKit | |
import PlaygroundSupport | |
// FeatureFlags vs. "BetaFlags". BetaFlags are automatically false for AppStore builds, which provides | |
// an extra level of safety against accidentally shipping a build which has beta features enabled. | |
struct FeatureFlags { | |
// Set to false to disable support for fancy doors. |
When working with a team of iOS developers, it can be useful to keep all team members on the same version of the pod
command (different versions of pod
can result in wildly different Xcode project files, resulting in a lot of noise in pull-requests).
One way to do this is to include a Gemfile
in your github repo, which specifies a specific version of Cocoapods:
$ cat Gemfile
source 'https://rubygems.org'
gem 'fastlane'
Note: this is just a draft -- the last time I followed this process was a few years ago, so don't use this guide until I actually give it a test run.
In addition to using something like Time Machine to backup your Mac, I also recommend creating a "disaster recovery" backup by making an exact byte-for-byte copy of the hard drive itself. This is a universal method which can be used with any kind of computer (not just Macs).
If the hard drive contents are changing while backup is in-progress, this can result in a corrupted backup. This means you can't be booted from the hard drive which you are trying to backup. In the old days, this was easy: simply remove the hard drive from the machine, plug it into another machine, and image the drive.
#!/usr/bin/env python | |
import sys | |
def is_odd(x): | |
return x % 2 == 1 | |
# is any permutation of a string a palindrome? | |
def anypalin(string): | |
charcounts = {} |