This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env ruby | |
def ლ(_) Exception end | |
def ಠ益ಠლ; end | |
raise ლ(ಠ益ಠლ), "WTF, dude!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby -e 'z=0x1F551;->(c,&b){loop{c.each(&b)}}.(11.times.map{|i|[z+i].pack("U")}){|m|print "#{"\b"*3}#{m} ";sleep 0.1}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fractal #1 | |
ruby -e "36.times{|l|puts (0..99).map{|n|x=y=i=0;(x,y,i=x*x-y*y+n/38.0-1.9,2*x*y+l/14.0-1.2,i+1)until(x*x+y*y>4||i>78);(32+i).chr}*''}" | |
# Fractal #2 | |
ruby -e "32.times{|l|puts (0..78).map{|n|x=y=i=0;(x,y,i=x*x-y*y+n/38.0-1.5,2*x*y+l/14.0-1,i+1)until(x*x+y*y>4||i>78);(32+i).chr}*''}" | |
# Fractal #3 | |
ruby -e "57.times{|l|puts (-20..135).map{|n|x=y=i=0;(x,y,i=x*x-y*y+n/38.0-1.5,2*x*y+l/14.0-2,i+1)until(x*x+y*y>4||i>78);(32+i).chr}*''}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get -y install python-software-properties | |
sudo add-apt-repository ppa:juju/pkgs | |
sudo apt-get update | |
sudo apt-get -y install lxc apt-cacher-ng libzookeeper-java zookeeper juju git | |
# create a SSH authorized/public key | |
ssh-keygen -t rsa | |
# set AWS credentials | |
export AWS_ACCESS_KEY_ID=XXXXXXXX |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet"></link> | |
<script src="http://code.jquery.com/jquery.js"></script> | |
<script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js"></script> | |
</head> | |
<body> | |
<style type="text/css"> | |
#myCarousel { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// source: https://delicious.com/js/app.js | |
key("/",this.focusSearch), | |
key("1",this.showDiscover), | |
key("2",this.showNetwork), | |
key("3",this.showRemember)}, | |
//... | |
key("k",this.showPreviousDetailPane), | |
key("up",this.showPreviousDetailPane), | |
key("j",this.showNextDetailPane), | |
key("down",this.showNextDetailPane), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ traceroute 216.81.59.173 | |
traceroute to 216.81.59.173 (216.81.59.173), 64 hops max, 52 byte packets | |
1 * * * | |
2 * * * | |
3 * * * | |
4 * * * | |
5 133-165-89-200.fibertel.com.ar (200.89.165.133) 66.947 ms | |
189-165-89-200.fibertel.com.ar (200.89.165.189) 64.246 ms | |
157-165-89-200.fibertel.com.ar (200.89.165.157) 64.231 ms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DATA.rewind | |
puts DATA.read | |
__END__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Gmail | |
https://mail.google.com/mail/u/0/#inbox | |
Calendar | |
https://www.google.com/calendar/render?tab=mc | |
Delicious | |
http://www.delicious.com/joaquinvicente/%s | |
Google Maps (Ciudad de BsAs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class OfferPageBuilder | |
def initialize(account) | |
@account = account | |
end | |
def build | |
page = OffersPage.new { | |
name: "Special Offers", | |
heading: "Special Offers on Dental Services in #{@account.geo_keyword}, #{@account.state}", |