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
require 'rubygems' | |
require 'httparty' | |
require 'benchmark' | |
require 'thread' | |
class Google | |
include HTTParty | |
base_uri 'http://google.com' | |
def self.benchmark |
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
F, [2015-10-07T09:48:55.630000 #493] FATAL -- : undefined method `slice' for nil:NilClass (NoMethodError) | |
/Users/claudiug/.rbenv/versions/jruby-9.0.0.0/lib/ruby/gems/shared/gems/ruboto-1.3.0/lib/ruboto/util/setup.rb:200:in `check_for_haxm' | |
/Users/claudiug/.rbenv/versions/jruby-9.0.0.0/lib/ruby/gems/shared/gems/ruboto-1.3.0/lib/ruboto/util/setup.rb:168:in `check_all' | |
/Users/claudiug/.rbenv/versions/jruby-9.0.0.0/lib/ruby/gems/shared/gems/ruboto-1.3.0/lib/ruboto/util/setup.rb:23:in `setup_ruboto' | |
/Users/claudiug/.rbenv/versions/jruby-9.0.0.0/lib/ruby/gems/shared/gems/ruboto-1.3.0/lib/ruboto/commands/base.rb:453:in `run' | |
/Users/claudiug/.rbenv/versions/jruby-9.0.0.0/lib/ruby/gems/shared/gems/main-5.3.2/lib/main/program/class_methods.rb:155:in `block in run' | |
org/jruby/RubyKernel.java:1099:in `catch' | |
/Users/claudiug/.rbenv/versions/jruby-9.0.0.0/lib/ruby/gems/shared/gems/main-5.3.2/lib/main/program/class_methods.rb:143:in `run' | |
/Users/claudiug/.rbenv/versions/jruby-9.0.0.0/lib/ruby/gems/shared/gems/main-5.3.2/lib/ |
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
ROM ubuntu:14.04 | |
RUN apt-get update && apt-get install -y wget | |
RUN wget http://netcologne.dl.sourceforge.net/project/d-apt/files/d-apt.list -O /etc/apt/sources.list.d/d-apt.list | |
RUN apt-get update && apt-get -y --allow-unauthenticated install --reinstall d-apt-keyring && apt-get update \ | |
&& apt-get install -y dmd-bin dub libcurl3-gnutls libevent-dev libcrypto++-dev libssl-dev | |
# Where the app live inside the container | |
ENV APP_ROOT /var/www/dlang-api-ecratum |
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
{ | |
"dcd_path": "/usr/local/bin/", | |
"dcd_port": 9166, | |
"include_paths": [ | |
// "/Library/D/dmd" | |
// "usr/local/Cellar/dmd/2.071.0/include/d2" | |
"/Library/D/dmd/src/phobos/", | |
"/Library/D/dmd/src/druntime/import/", | |
"/Users/claudiug/.dub/packages/vibe-d-0.7.28/source", | |
"/Users/claudiug/.dub/packages/asdf-0.0.8/asdf/source", |
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
inking... | |
To force a rebuild of up-to-date targets, run again with --force. | |
Running ./bin/dlangide | |
2016-06-24 21:08:41.777 I Log level changed to Trace | |
2016-06-24 21:08:41.780 I Logger is initialized | |
2016-06-24 21:08:41.781 V DerelictFT: Loading FreeType library | |
2016-06-24 21:08:41.781 V DerelictFT: Missing symbols callback is registered | |
2016-06-24 21:08:41.783 V DerelictFT: Loaded | |
2016-06-24 21:08:41.783 V Initializing FreeType library | |
2016-06-24 21:08:41.799 W Cannot load FontConfig shared library |
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
require 'java' | |
java_import java.lang.System | |
Frame = javax.swing.JFrame | |
Button = javax.swing.JButton | |
Label = javax.swing.JLabel | |
frame = Frame.new("what") | |
button = Button.new("a button") | |
label = Label.new |
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
require 'sinatra' | |
require 'action_mailer' | |
class Mailer < ActionMailer::Base | |
def contact | |
mail( | |
:to => "[email protected]", | |
:from => "[email protected]", | |
:subject => "Test") do |format| | |
format.text |
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
[] ~/projects/jruby $ jruby.bash --environment --dev | |
JRuby Environment | |
================= | |
JRuby executable: | |
/Users/headius/projects/jruby/bin/jruby.bash | |
JRuby command line options: | |
--environment --dev | |
Environment: |
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
#contents of sample.rb | |
cat sample.rb | |
require './before' | |
puts "Hello World!" | |
#contents of before.rb | |
cat before.rb | |
puts "Before..." | |
#running: |
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
require 'authentication' | |
class MyApp < Roda | |
include Authentication | |
plugin :json | |
route do |r| | |
r.on('docs') { r.run Docs } |