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
/* | |
* What is the largest prime factor of the number 600851475143 ? | |
*/ | |
(function(n){ | |
var text = ''; | |
var checker = 2; | |
while ( checker * checker <= n){ | |
if(n % checker == 0){ | |
text = text+checker; |
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
echo 'opendiff $2 $5' > ~/opendiff-git.sh | |
chmod a+x ~/opendiff-git.sh | |
git config --global diff.external ~/opendiff-git.sh |
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
http://inapcache.boston.com/universal/site_graphics/blogs/bigpicture/afghan_06_30_10/a01_24008185.jpg | |
http://inapcache.boston.com/universal/site_graphics/blogs/bigpicture/afghan_06_30_10/a02_24052773.jpg | |
http://inapcache.boston.com/universal/site_graphics/blogs/bigpicture/afghan_06_30_10/a03_24040535.jpg | |
http://inapcache.boston.com/universal/site_graphics/blogs/bigpicture/afghan_06_30_10/a04_23862293.jpg | |
http://inapcache.boston.com/universal/site_graphics/blogs/bigpicture/afghan_06_30_10/a05_23659319.jpg | |
http://inapcache.boston.com/universal/site_graphics/blogs/bigpicture/afghan_06_30_10/a06_24095117.jpg | |
http://inapcache.boston.com/universal/site_graphics/blogs/bigpicture/afghan_06_30_10/a07_24045555.jpg | |
http://inapcache.boston.com/universal/site_graphics/blogs/bigpicture/afghan_06_30_10/a08_23994621.jpg | |
http://inapcache.boston.com/universal/site_graphics/blogs/bigpicture/afghan_06_30_10/a09_24061423.jpg | |
http://inapcache.boston.com/universal/site_graphics/blogs/bigpicture/afghan_06_30_10/a10_23944973.jpg |
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
This is the Unix philosophy: Write programs that do one thing and do it well. Write programs to work together. Write programs to handle text streams, because that is a universal interface. |
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
# This file is auto-generated from the current state of the database. Instead | |
# of editing this file, please use the migrations feature of Active Record to | |
# incrementally modify your database, and then regenerate this schema definition. | |
# | |
# Note that this schema.rb definition is the authoritative source for your | |
# database schema. If you need to create the application database on another | |
# system, you should be using db:schema:load, not running all the migrations | |
# from scratch. The latter is a flawed and unsustainable approach (the more migrations | |
# you'll amass, the slower it'll run and the greater likelihood for issues). | |
# |
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 Line < ActiveRecord::Base | |
has_one :rider_item | |
belongs_to :microphone | |
end | |
class Microphone < ActiveRecord::Base | |
belongs_to :line | |
end | |
class RiderItem < ActiveRecord::Base |
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
# This file should contain all the record creation needed to seed the database with its default values. | |
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). | |
# | |
# Examples: | |
# | |
# cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }]) | |
# Mayor.create(:name => 'Daley', :city => cities.first) | |
riders = Rider.create([ | |
{ |
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
Brian: Sajnálom Reg! | |
Reg: Óóó igazán szép tőle, ő sajnálja. Idehozza az V. légiót a főhadiszállásunkra és sajnálja! Jó! Nincs semmi baj Brian! Ülj le, egyél kekszet, érezd magad otthon!...Te kaka! Te sötét agyagagyú krokodil! |
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
Brian: Ti vagytok a Júdeai Népfront? | |
Reg: A jó édes anyád! | |
Brian: Mi? | |
Reg: Méghogy Júdeai Népfront! Mi a Júdea Népe Front vagyunk! Méghogy Júdeai Népfront! (nevet) | |
Brian: Én is... csatlakozhatnék? | |
Reg: Nem, kopj le! | |
Brian: Nem akarok ilyet árulni, ez csak egy meló. Ugyanúgy utálom a rómaiakat, mint bárki más! | |
Judith: Ez biztos? | |
Brian: Ó, holtbiztos! Régóta utálom a rómaiakat. | |
Reg: Figyelj! Ha csatlakozni akarsz a mozgalomhoz, tényleg utálnod kell a rómaiakat. |
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
ack-grep pattern -c|ack-grep 0 |