This file contains hidden or 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
Vagrant::Config.run do |config| | |
config.vm.provision SprinkleProvisioner | |
end |
This file contains hidden or 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 Configuration | |
attr_accessor :tail_logs | |
attr_accessor :max_connections | |
attr_accessor :admin_password | |
def initialize | |
@app_server = AppServer.new | |
end | |
def app_server |
This file contains hidden or 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
def counter(start=0, increment=1) | |
start -=increment #not cheating | |
lambda do | |
start += increment | |
end | |
end | |
result = counter(0, 3) | |
puts result.call |
This file contains hidden or 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
#Why does this work: | |
config.vm.provision :chef_solo do |chef| | |
chef.cookbooks_path = "cookbooks" | |
chef.add_recipe "vagrant_main" | |
end | |
#But not this: | |
config.vm.provision :chef_solo do |chef| | |
chef.cookbooks_path = "cookbooks" |
This file contains hidden or 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 HelloWord { | |
void helloWord() { | |
System.out.println("Hello Word"); | |
} | |
} |
This file contains hidden or 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
[2010-11-10 13:40:01] make | |
ld: warning: in main.o, file was built for i386 which is not the architecture being linked (x86_64) | |
ld: warning: in dmydln.o, file was built for i386 which is not the architecture being linked (x86_64) | |
ld: warning: in dmyencoding.o, file was built for i386 which is not the architecture being linked (x86_64) | |
ld: warning: in dmyversion.o, file was built for i386 which is not the architecture being linked (x86_64) | |
ld: warning: in miniprelude.o, file was built for i386 which is not the architecture being linked (x86_64) | |
ld: warning: in array.o, file was built for i386 which is not the architecture being linked (x86_64) | |
ld: warning: in bignum.o, file was built for i386 which is not the architecture being linked (x86_64) | |
ld: warning: in class.o, file was built for i386 which is not the architecture being linked (x86_64) | |
ld: warning: in compar.o, file was built for i386 which is not the architecture being linked (x86_64) |
This file contains hidden or 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
[2010-11-06 20:04:55] make | |
array.c: In function ‘ary_resize_capa’: | |
array.c:150: error: expected expression before ‘;’ token | |
array.c:151: error: expected expression before ‘;’ token | |
array.c:153: error: expected expression before ‘;’ token | |
array.c:153: error: expected expression before ‘;’ token | |
array.c:164: error: expected expression before ‘;’ token | |
array.c:170: error: expected expression before ‘;’ token | |
array.c: In function ‘ary_double_capa’: | |
array.c:179: error: expected expression before ‘;’ token |
This file contains hidden or 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
public function set model(value:DepositumOgHusleieModel):void { | |
var that:Object = this; | |
_model = value; | |
_model.addEventListener(DepositumOgHusleieModel.INNBETALING_SUCCESS_EVENT, function():void { | |
that.visible = false; | |
}); | |
} |
This file contains hidden or 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 no.frykt; | |
import java.util.Properties; | |
import javax.annotation.Resource; | |
import javax.ejb.ActivationConfigProperty; | |
import javax.ejb.MessageDriven; | |
import javax.ejb.MessageDrivenContext; | |
import javax.jms.Message; | |
import javax.jms.MessageListener; |
This file contains hidden or 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 no.frykt; | |
import java.util.Properties; | |
import javax.annotation.Resource; | |
import javax.ejb.ActivationConfigProperty; | |
import javax.ejb.MessageDriven; | |
import javax.ejb.MessageDrivenContext; | |
import javax.jms.Message; | |
import javax.jms.MessageListener; |