Skip to content

Instantly share code, notes, and snippets.

View dalebradshaw's full-sized avatar
🎯
Focusing

Dale Bradshaw dalebradshaw

🎯
Focusing
View GitHub Profile
@ploeber
ploeber / main.py
Created April 18, 2023 15:37
vocode script
import asyncio
import signal
import vocode
from vocode.streaming.streaming_conversation import StreamingConversation
from vocode.helpers import create_microphone_input_and_speaker_output
# Transcriber
from vocode.streaming.models.transcriber import AssemblyAITranscriberConfig
from vocode.streaming.transcriber.assemblyai_transcriber import AssemblyAITranscriber
@mayoff
mayoff / UnitPoint.angle.swift
Last active July 16, 2023 15:07
point on unit square at a given angle
import SwiftUI
extension UnitPoint {
/// - returns: The point on the perimeter of the unit square that is at angle `angle` relative to the center of the unit square.
init(_ angle: Angle) {
// Inspired by https://math.stackexchange.com/a/4041510/399217
// Also see https://www.desmos.com/calculator/k13553cbgk
let s = sin(angle.radians)
let c = cos(angle.radians)
@UnderscoreDavidSmith
UnderscoreDavidSmith / UnitSquareIntersectionPoint.swift
Created February 22, 2023 11:59
SwiftUI UnitPoint for Angle
//
// ContentView.swift
// GradientComponenet
//
// Created by David Smith on 2/21/23.
//
import SwiftUI
struct ContentView: View {
@scripting
scripting / buildVerbList.js
Last active November 24, 2021 16:01
A script that generates the current list of Drumkit verbs.
//Changes
//11/23/2021 by DW
//Updated to handle a subcategory of verbs, such as op.attributes.
//11/22/2021 by DW
//http://drummer.scripting.com/davewiner/verblist.opml
var theOutline = {
opml: {
head: {
title: "Drumkit verb list",
dateCreated: "Mon, 22 Nov 2021 21:49:22 GMT",
@justanotherdot
justanotherdot / Dockerfile.bite_sized_networking
Last active May 20, 2022 08:56
A Dockerfile with (almost) all the tools mentioned in Bite Size Networking by Julia Evans
# N.B. The only tool missing here that is mentioned in the document is `zenmap`
# purely because this image is intended to be run via a CLI and `zenmap` is a GUI
# to `nmap` i.e. one can play around with the tools by running:
#
# $ docker build --name bite_size_networking:latest .
# $ docker run --rm -d --name bsn_test bite_size_networking:latest
# $ docker exec -it bsn_test bash
#
# Alternatively, one can change the `ENTRYPOINT` to `["bash"]` and run:
#
<script>
export default {
props: {
span: {
type: String,
default: null
}
},
render: function (createElement) {
return createElement(
@mbostock
mbostock / README.md
Created January 29, 2018 17:14
U.S. Historical Tax Rates

Amounts are in 2013-equivalent dollars when filing as the head-of-household.

Sources: Vox, Tax Foundation

@eeropic
eeropic / Ae expressions and scripts.js
Last active June 12, 2024 10:23
After effects expressions and scripts collected from various authors and myself.
//dynamic parenting for 3d layers
//from Dan Ebberts on forums I think..
//Position
L=thisComp.layer("Object center");
L.toWorld(L.effect(name)("3D Point"));
//Scale
L =thisComp.layer("Object center");
[L.transform.scale[0]/100*value[0],L.transform.scale[1]/100*value[1],L.transform.scale[2]/100*value[2]];
@spicycode
spicycode / GIF-Screencast-OSX.md
Last active June 10, 2019 21:16 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application: