Skip to content

Instantly share code, notes, and snippets.

View sudara's full-sized avatar
🧪
Brewing new formulas

Sudara sudara

🧪
Brewing new formulas
View GitHub Profile
@sudara
sudara / core_audio_tap_example.m
Created May 11, 2024 17:56 — forked from directmusic/core_audio_tap_example.m
An example how to use the new Core Audio Tap API in macOS 14.2.
// This is a quick example of how to use the CoreAudio API and the new Tapping
// API to create a tap on the default audio device. You need macOS 14.2 or
// later.
// Build command:
// clang -framework Foundation -framework CoreAudio main.m -o tapping
// License: You're welcome to do whatever you want with this code. If you do
// something cool please tell me though. I would love to hear about it!
@sudara
sudara / rspec-syntax-cheat-sheet.rb
Created December 14, 2011 02:02 — forked from dnagir/rspec-syntax-cheat-sheet.rb
RSpec 2 syntax cheat sheet by example
# RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com
# defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below)
module Player
describe MovieList, "with optional description" do
it "is pending example, so that you can write ones quickly"
it "is already working example that we want to suspend from failing temporarily" do
pending("working on another feature that temporarily breaks this one")
@sudara
sudara / .screenrc
Created June 10, 2011 12:41 — forked from rtomayko/.screenrc
~rtomayko/.screenrc
# ~rtomayko/.screenrc
# -------------------------------------------------------------------
# Settings
# -------------------------------------------------------------------
crlf off # No Microsoft linebreaks
startup_message off # bypass GPL notice (we're aware)
defscrollback 15000 # big scrollback
shell bash # don't start login shells
shelltitle "" # no title by default - set in PS1
@sudara
sudara / gist:947599
Created April 28, 2011 23:54 — forked from wayneeseguin/gist:947529
Which stack trace option yields the most useful information best?
# Option 6b — Tabular (modified to remove numbering)
===============================================================================================
= ERROR: Cannot print the DSL for a module as no module name was given.
===============================================================================================
BACKTRACE
Function Line Source
———————————————————————————————————————————————————————————————————————————————————————————————
main() 76 /usr/local/bin/bdsm
extension_action() 152 /usr/local/bdsm/modules/bash/extensions/dsl
@sudara
sudara / deploy
Created April 8, 2010 10:32 — forked from toolmantim/deploy
#!/bin/sh
# Simple deployment script
#
# Requires access to to github repository, as well as a host defined in
# ~/.ssh/config like so:
#
# Host myhost
# User appuser
# Hostname hostname
This example shows how to setup an environment running Rails 3 beta under 1.9.1 with a 'rails3' gem set.
∴ rvm update --head
# ((Open a new shell))
# If you do not already have the ruby interpreter installed, install it:
∴ rvm install 1.9.1
# Switch to 1.9.1
∴ rvm 1.9.1
@sudara
sudara / gist:28514
Created November 24, 2008 16:27 — forked from smoofles/gist:28510
/* • lpl modal */
/* lepilo modal dialog */
/* include low pro for jquery, then.... */
Model = $.klass({
initialize = function() {
$('#cancel_modal').mouseup(function() {