Skip to content

Instantly share code, notes, and snippets.

@yakovkhalinsky
yakovkhalinsky / droid.ini
Last active October 29, 2022 10:58
DROID sequencing based on 8 channels of euclidean rhythms
[p2b8]
[p2b8]
[b32]
[m4]
[b32]
[p4b2]
[p10]
[clocktool]
clock = I1
@kdorff
kdorff / distance-sensor-0.yaml
Last active September 26, 2024 17:32
Break beam sensor using VL53L0X for Home Assistant using ESPHome
##
## A standard "break beam sensor" uses a laser or LED with a device on both
## sides of an opening and is triggered when something breaks the beam
## (such as a customer walking through the beam). Some garage doors use them.
## Stores often use them at the entrace to ring a chime when a customer enters
## or leaves.
##
## This is my attempt at using a VL53L0X i2c Time of Flight sensor
## as a break beam sensor in Home Assistant using ESPHome.
##
@Bilguun132
Bilguun132 / CountdownProgressBar.swift
Created March 30, 2019 10:55
CoreAnimationTutorial-CountdownProgressBar
//
// CountdownProgressBar.swift
// Core Animations
//
// Created by Bilguun Batbold on 29/3/19.
// Copyright © 2019 Bilguun. All rights reserved.
//
import Foundation
import UIKit

Python pyenv and virtualenvwrapper setup

This document will help you set up python for development on MacOS.

Install Pyenv

Pyenv allows you to have several python versions in your machine.

brew update
@sooop
sooop / StreamReader.swift
Last active June 23, 2024 22:49
Read a large text file line by line - Swift 3
import Foundation
class StreamReader {
let encoding: String.Encoding
let chunkSize: Int
let fileHandle: FileHandle
var buffer: Data
let delimPattern : Data
var isAtEOF: Bool = false