Skip to content

Instantly share code, notes, and snippets.

View skade's full-sized avatar
💭
Bringing Rust to safety critical.

Florian Gilcher skade

💭
Bringing Rust to safety critical.
View GitHub Profile
@skade
skade / Guardfile
Created February 27, 2012 10:21 — forked from dhepper/ci.sh
Poor man's CI, Ruby edition
# gem install guard; guard
guard 'django_tests' do
watch(%r{(.+)\.py}) do |m|
`django-admin.py test main`
end
end
@skade
skade / gist:4174945
Created November 30, 2012 10:14 — forked from mmack/gist:4174856
f = -> h,k { h[k] = Hash.new(&f) }
h = Hash.new &f
data = {
"80e33bc0-1b9a-0130-d2fb-38f6b113e413:data:message:name" => "max",
"80e33bc0-1b9a-0130-d2fb-38f6b113e413:data:text" => "bla",
"80e33bc0-1b9a-0130-d2fb-38f6b113e413:data:message:line:x" => 123
}
data.each do |path, v|

Client Management

  • ???

Proposals

  • Bidsketch
  • Proposable

Invoicing

How to use a PS3 controller on Mac OS X 10.7 (Lion)

  1. Open Apple menu -> System Preferences -> Bluetooth and disable Bluetooth on Mac as well as any other nearby Macs or devices which will try to pair with and confuse the controller.

  2. Reset PS3 controller by inserting paperclip into pinhole near L2 button.

  3. Connect PS3 controller to Mac with USB cable.

  4. Enable Bluetooth.

@skade
skade / gist:8633489
Last active January 4, 2016 14:19 — forked from tmm1/gist:7998799
$ cat ruby_mcache.stp
probe process("/usr/bin/ruby").mark("method__cache__clear")
{
module = kernel_string($arg1)
if ($arg2)
file = kernel_string($arg2)
else
file = "<internal>"
line = $arg3
printf("%s(%d) %s %s:%d cleared `%s'\n", execname(), pid(), $$name, file, line, module)
@skade
skade / playground.rs
Created May 27, 2019 11:42 — forked from rust-play/playground.rs
Code shared from the Rust Playground
fn main() {
let mut buffer = String::new();
for i in 1..100 {
buffer = fizzbuzz(i, buffer);
println!("{}", buffer);
buffer.clear();
}
}
fn fizzbuzz(i: u32, mut buffer: String) -> String {