Skip to content

Instantly share code, notes, and snippets.

@pedropalmero
pedropalmero / .osx
Created February 23, 2012 19:47 — forked from paulstefanort/.osx
Mac OS X Lion Modifications
#!/bin/bash -x
# Originally from https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# disable spotlight and remove from menu
sudo mdutil -a -i off
sudo mv /System/Library/CoreServices/Search.bundle/ /System/Library/CoreServices/SearchOff.bundle/
# restart modified services, restart also works
killall Dock
killall Finder
# -*-coding: utf-8-*-
module Enumerable def ‰&b;each &b;end end
∲,☃,☣,☺,✄,❤,⚠,❣=10,{},->*♧{☃[♧]=1},->*♒{☃[♒]},->*✍{☒=❤[*✍]
☺[*✍]?☒&2>☒&12:☒==3},->⚓,♫{✉=0;⚠[->¢,♎{¢|♎==0||☺[¢+⚓,♎+♫]&&✉+=1}];✉},
->➨{(-1..1).‰{|¢|(-1..1).‰{|♎|➨[¢,♎]}}},->{∲.downto(-∲).‰{|☒|(-∲..∲).‰{|☐|
$><<(☺[☐,☒]??X:?.)};puts}};☀=->{☃=({}.tap{|త|☃.‰{|(☐,☒),_|⚠[->¢,♎{
¢|♎==0||త[[☐+¢,☒+♎]]=✄[☐+¢,☒+♎]}]}})};☣[0,0];☣[1,0];☣[2,0];☣[2,1];☣[1,2]
loop{❣[];☀[]}