Skip to content

Instantly share code, notes, and snippets.

View thiagokimo's full-sized avatar
🇧🇷
Olá!

Thiago Rocha thiagokimo

🇧🇷
Olá!
  • Bambuser
  • Stockholm, Sweden
  • 06:14 (UTC +02:00)
  • Instagram thiagokimo
View GitHub Profile
@thiagokimo
thiagokimo / save.txt
Last active December 26, 2015 11:59
My Candybox2 game save
bool candiesThrownGotChocolateBar=false, bool candyBoxBoxOpened=false, bool castleBigRoomHovenHappy=true, bool castleRoom2LitFire=false, bool castleRoom2TookObject=false, bool castleTowerFirstVisitDone=true, bool castleTowerPStoneDone=true, bool castleTowerLStoneDone=false, bool castleTowerAStoneDone=false, bool castleTowerYStoneDone=false, bool castleTowerTookTalkingCandy=false, bool castleKilledNougatMonster=true, bool cellarDone=true, bool dragonDone=true, bool dragonUnlockedCyclops=true, bool forgeFoundLollipop=true, bool forgeBoughtWoodenSword=true, bool forgeBoughtIronAxe=true, bool forgeBoughtPolishedSilverSword=true, bool forgeBoughtLightweightBodyArmour=true, bool forgeBoughtScythe=false, bool fortressRoom1ChestFound=true, bool fortressRoom3ChestFound=true, bool fourthHouseFoundLollipopOnCupboard=true, bool gameDebug=false, bool gameInvertedColors=false, bool lighthousePuzzleDone=false, bool lollipopFarmPlant1LollipopButtonUnlocked=true, bool lollipopFarmPlant10LollipopsButtonUnlocked=true, bool loll
require 'benchmark'
number = 257
def power_of_2?(number)
return true if number == 1
return false if number == 0 || number % 2 != 0
power_of_2?(number / 2)
end
@thiagokimo
thiagokimo / macarrao-ao-alho-e-oleo
Last active August 29, 2015 14:09
Macarrão ao alho e óleo
Receita do Macarrão ao Alho e Óleo
Estou supondo será para 1 pessoa (você).
Ingredientes:
- spaghetti (o tanto que vc irá achar que dá conta de comer)
- azeite (eu uso o azeite comum. se vc quiser usar outros azeites diferentes fique à vontade)
- 12 dentes de alho fatiados bem fininhos (se achar que é muito alho, diminua a quantidade)
- pimenta caiena (não vou colocar a quantidade pq eu não sei se vc gosta muito de pimenta)