Skip to content

Instantly share code, notes, and snippets.

View lucabrunox's full-sized avatar

Luca Bruno lucabrunox

View GitHub Profile
@zoni
zoni / tweak.sh
Created November 5, 2012 19:10
Make gnome-shell more usable
#/bin/sh
# Turn on debugging, makes it clearer what is happening
set -x
# I don't want the overlay bound to Super_L, it messes with other shortcuts
gsettings set org.gnome.mutter overlay-key ''
# That huge 24-pixel notification area sucks. Whoever thought that was a good idea....
sudo sed -i -e 's/SOURCE_ICON_SIZE:\ 48,/SOURCE_ICON_SIZE:\ 24,/g' /usr/share/gnome-shell/js/ui/messageTray.js
@mythz
mythz / basic-fsharp-gtk-demo.fs
Created September 15, 2011 05:16
Basic F# demo using Mono Gtk#
let btnUp = new Button("Increment", Visible=true)
let btnDown = new Button("Decrement", Visible=true)
let lbl = new Label(Text=" Count: 0", Visible=true)
Event.merge
(btnUp.Clicked |> Event.map (fun _ -> +1))
(btnDown.Clicked |> Event.map (fun _ -> -1))
|> Event.scan (+) 0
|> Event.map (sprintf " Count: %d")
|> Event.add (fun s -> lbl.Text <- s)