class Pair < Struct.new(:first, :second) def same? inject(:==); end def add reduce(:+); end end a = Pair.new(4,4) # => # a.same? # => true a.add # => 8 b = Pair.new(5,6) # => # b.same? # => false b.add # => 11 --- $$: current shell id $!: background command id $?: last command exit status !!: execute the last command !n: execute the nth command %n: manipulates the nth job (command in the background) --- siare / usuarioSIARE --- CSS design pitfalls #1: Use one font per project #2: Have a small number of "go-to" fonts (all of the fonts you'll ever need) Georgia sophisticated serif Helvetica clean and neutral design Lato friendly and "natural" look Raleway more modern geometric look #3: Use a set of font size 5, 7, 9, 12, 16, 21, 28, 37, 50, 67, 89, 119, 159 #4: One Color, and shades of Gray #5: Avoid Column Soup, & Make The Grid Your Friend When you use a framework such as Bootstrap, just forget that you have 12 columns. Pretend you have a grid with 3, 4, or 6 columns. #6: Don't divide my attention. Focus it. --- Just hit Ctrl+Shift+' to select both tags for editing. --- # Prompt da direita mostrando versão do ruby + parte final do ip RPROMPT='%F{blue}${ruby_info[version]}%F{white}|%F{blue}`hostname -I | cut -d" " -f1 | cut -d"." -f3,4`' --- ** Criando layouts em css: http://learnlayout.com/ By Daniel Larusso Barros on Wednesday, February 20, 2013 at 4:16pm Vetores prontos http://www.freevectorarchive.com/ http://www.vecteezy.com/ http://all-silhouettes.com/ http://thenounproject.com/ http://www.brandsoftheworld.com/ Cores http://colourlovers.com https://kuler.adobe.com Fontes http://www.dafont.com/ http://www.fontsquirrel.com http://copypastecharacter.com/ Imagens http://flickr.com/ http://www.sxc.hu/ http://www.iconfinder.com/ http://cgtextures.com/ Converter Corel pra EPS http://www.filespazz.com/ * { background-color: rgba(255,0,0,.2); } * * { background-color: rgba(0,255,0,.2); } * * * { background-color: rgba(0,0,255,.2); } * * * * { background-color: rgba(255,0,255,.2); } * * * * * { background-color: rgba(0,255,255,.2); } * * * * * * { background-color: rgba(255,255,0,.2); } You can create containers that maintain a constant aspect ratio by using padding-bottom as a percentage.
this content will have a constant aspect ratio that varies based on the width.
background-position: calc(100% - 50px) calc(100% - 20px);