Skip to content

Instantly share code, notes, and snippets.

View claudiug's full-sized avatar
💜
I eat stickers all the time, dude.

Klaus Heissler claudiug

💜
I eat stickers all the time, dude.
  • cto@relatico
  • Austin
View GitHub Profile
require 'rubygems'
require 'httparty'
require 'benchmark'
require 'thread'
class Google
include HTTParty
base_uri 'http://google.com'
def self.benchmark
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/
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
{
"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",
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
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
@claudiug
claudiug / gist:41af2ad400071b9d00ded420973b07ef
Created January 24, 2017 19:50 — forked from acwright/gist:1944639
Sinatra / ActionMailer / Sendgrid / Heroku
require 'sinatra'
require 'action_mailer'
class Mailer < ActionMailer::Base
def contact
mail(
:to => "[email protected]",
:from => "[email protected]",
:subject => "Test") do |format|
format.text
@claudiug
claudiug / output.txt
Created September 19, 2019 19:00 — forked from headius/output.txt
JRuby's new --environment flag
[] ~/projects/jruby $ jruby.bash --environment --dev
JRuby Environment
=================
JRuby executable:
/Users/headius/projects/jruby/bin/jruby.bash
JRuby command line options:
--environment --dev
Environment:
#contents of sample.rb
cat sample.rb
require './before'
puts "Hello World!"
#contents of before.rb
cat before.rb
puts "Before..."
#running:
@claudiug
claudiug / app.rb
Created February 6, 2020 15:50 — forked from jgaskins/app.rb
API app with Roda
require 'authentication'
class MyApp < Roda
include Authentication
plugin :json
route do |r|
r.on('docs') { r.run Docs }