PIN code: 000000
Set them up using an iOS app:
- Install Lightblue Explorer from App store
- Connect to 'JinouBeacon'
- Enter the PIN 000000 to pair the device
- Editable values are in UUID:F350 section
- Covert strings / numbers to HEX before writing
import trio | |
import random | |
from collections import deque | |
WORKER_COUNT = 10 | |
tasks = range(103) | |
class WorkQueue: | |
def __init__(self, workers): |
from datetime import datetime | |
import numpy as np | |
def to_datetime(date): | |
""" | |
Converts a numpy datetime64 object to a python datetime object | |
Input: | |
date - a np.datetime64 object | |
Output: | |
DATE - a python datetime object |
PIN code: 000000
Set them up using an iOS app:
type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
Around 2006-2007, it was a bit of a fashion to hook lava lamps up to the build server. Normally, the green lava lamp would be on, but if the build failed, it would turn off and the red lava lamp would turn on.
By coincidence, I've actually met, about that time, (probably) the first person to hook up a lava lamp to a build server. It was Alberto Savoia, who'd founded a testing tools company (that did some very interesting things around generative testing that have basically never been noticed). Alberto had noticed that people did not react with any urgency when the build broke. They'd check in broken code and go off to something else, only reacting to the breakage they'd caused when some other programmer pulled the change and had problems.
defmodule HammingBench do | |
use Benchfella | |
use Bitwise | |
@n Stream.repeatedly(fn -> Enum.random [0, 1] end) | |
|> Enum.take(100_000) | |
|> Enum.join | |
|> String.to_integer(2) | |
bench "CharlesO" do |
import 'dart:convert'; | |
import 'dart:async'; | |
import 'dart:io'; | |
import 'package:http/http.dart' as http; | |
/** | |
* A utility method that reads HTTP response body and returns it as a string. | |
* | |
* The difference to http.read() is: send good headers, handle encodings better and have a timeout. |
import sqlalchemy as sa | |
import sqlparse | |
metadata = sa.MetaData() | |
tasks = sa.Table( | |
'tasks', metadata, | |
sa.Column('id', sa.Integer, primary_key=True), | |
sa.Column('bot', sa.String(255), nullable=False), | |
sa.Column('task', sa.String(255), nullable=False), |