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
package main; | |
import "fmt" | |
func Each(arr []int, iterator func(int)) { | |
for i := range arr { | |
iterator(i) | |
} | |
} |
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
config.status: creating Makefile | |
config.status: creating config.intl | |
config.status: creating config.h | |
config.status: executing default-1 commands | |
Configuring stage 1 in ./gcc | |
configure: creating cache ./config.cache | |
checking build system type... x86_64-apple-darwin10 | |
checking host system type... x86_64-apple-darwin10 | |
checking target system type... x86_64-apple-darwin10 | |
checking LIBRARY_PATH variable... ok |
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 contains any messages produced by compilers while | |
running configure, to aid debugging if configure makes a mistake. | |
It was created by portage-prefix configure 2.2.00.15444, which was | |
generated by GNU Autoconf 2.63. Invocation command line was | |
$ ./configure --prefix=/Users/divoxx/Gentoo/usr --build=x86_64-apple-darwin10 --host=x86_64-apple-darwin10 --mandir=/Users/divoxx/Gentoo/usr/share/man --infodir=/Users/divoxx/Gentoo/usr/share/info --datadir=/Users/divoxx/Gentoo/usr/share --sysconfdir=/Users/divoxx/Gentoo/etc --localstatedir=/Users/divoxx/Gentoo/var/lib --with-portage-user=divoxx --with-portage-group=staff --with-root-user=divoxx --with-offset-prefix=/Users/divoxx/Gentoo --with-extra-path=/usr/bin:/bin | |
## --------- ## | |
## Platform. ## |
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
* Cannot find $EPATCH_SOURCE! Value for $EPATCH_SOURCE is: | |
* | |
* /Users/divoxx/Gentoo/usr/local/portage/dev-db/postgresql-server/files/postgresql-8.4-common.patch | |
* ( postgresql-8.4-common.patch ) | |
* ERROR: dev-db/postgresql-server-8.4.2-r1 failed: | |
* Cannot find $EPATCH_SOURCE! | |
* | |
* Call stack: | |
* ebuild.sh, line 54: Called call-ebuildshell 'src_prepare' | |
* environment, line 593: Called src_prepare |
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
# Between those alternatives I'd go with this one. | |
# | |
# Ruby has open classes, there is nothing wrong about embracing them. Even Rails that used to | |
# create modules and mix them into the classes has decided to change it on rails3 and simply | |
# open the classes and add the methods. | |
# | |
# It's simple, and it works. Of course you shouldn't be adding stuff that are specific to | |
# your application's business logic. | |
class Fixnum | |
def to_bit_array |
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
Booting 'Kernel 2.6.28-hardened-r9' | |
root (hd0) | |
Filesystem type is ext2fs, using whole disk | |
kernel /boot/kernel-2.6.28-hardened-r9 root=/dev/xvdb ro | |
close blk: backend at /local/domain/0/backend/vbd/254/51712 | |
close blk: backend at /local/domain/0/backend/vbd/254/51728 | |
close blk: backend at /local/domain/0/backend/vbd/254/51744 |
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
CONFIG_PARAVIRT_GUEST=y | |
CONFIG_XEN=y | |
CONFIG_PARAVIRT=y | |
CONFIG_PARAVIRT_CLOCK=y | |
CONFIG_XEN_BLKDEV_FRONTEND=y | |
CONFIG_XEN_NETDEV_FRONTEND=y | |
CONFIG_HVC_XEN=y | |
CONFIG_XEN_BALLOON=y | |
CONFIG_XEN_SCRUB_PAGES=y |
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
Teus diretórios temq estar assim | |
/var/www/blog | |
/var/www/consultoriamedica | |
/var/www/rails/blog -> /var/www/blog/public (Symlink) | |
/var/www/rails/consultoria -> /var/www/consutoriamedica/public (Symlink) | |
Ai o teu apache.conf | |
LoadModule passenger_module /var/lib/gems/1.8/gems/passenger-3.0.0.pre3/ext/apache2/mod_passenger.so |
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 User | |
has_one :profile | |
def profile | |
super || build_profile | |
end | |
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
array = [] | |
loop do | |
print "Enter Mark: " | |
case mark = gets.chomp | |
when Integer | |
array << mark.to_f | |
when "end" | |
break |