Skip to content

Instantly share code, notes, and snippets.

💭
Stuff is happening.

Florian Gilcher skade

💭
Stuff is happening.
Block or report user

Report or block skade

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@skade
skade / playground.rs
Created May 27, 2019 — forked from rust-play/playground.rs
Code shared from the Rust Playground
View playground.rs
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 {
View gist:8633489
$ 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)
View gist:6123519

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.

View gist:4319867

Client Management

  • ???

Proposals

  • Bidsketch
  • Proposable

Invoicing

View gist:4174945
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|
@skade
skade / Guardfile
Created Feb 27, 2012 — forked from dhepper/ci.sh
Poor man's CI, Ruby edition
View Guardfile
# gem install guard; guard
guard 'django_tests' do
watch(%r{(.+)\.py}) do |m|
`django-admin.py test main`
end
end
You can’t perform that action at this time.