Instantly share code, notes, and snippets.

View install-rbenv-amazon-linux-ami.sh
sudo yum install -y git gcc make readline-devel openssl-devel
git clone git://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
# Install ruby-build system-widely
git clone git://github.com/rbenv/ruby-build.git /tmp/ruby-build
cd /tmp/ruby-build
View server-euforia.go
// Copyright 2015 The Gorilla WebSocket Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build ignore
package main
import (
"flag"
View onename
Verifying that +luisbebop is my blockchain ID. https://onename.com/luisbebop
View life_hello_world.rb
require "openlife"
def add_pGLO(bacteria)
construct = GeneticCircuit.new(:assembly)
construct.add_selection_gene(:AmpR)
construct.add_promoter(:very_strong)
construct.add_rbs(:very_strong)
construct.add_gene(:GFP)
construct.add_terminator(:ter)
construct.replication_origin(:high)
View inicio.c
const unsigned char simple_init_data[] = {
0x6d,0x33,0x0a,0x31,0x0a,0x0d,0x3e,0x0a,0x32,0x0a,0x0d,0x3e,0x0a,0x33,0x0a,0x0d,
0x3e,0x0a,0x34,0x0a,0x0d,0x3e,0x0a,0x35,0x0a,0x0d,0x3e,0x0a,0x36,0x0a,0x0d,0x3e,
0x63,0x6f,0x6e,0x66,0x69,0x67,0x2e,0x64,0x61,0x74,0x0a,0x37,0x0a,0x0d,0x3e,0x0a,
0x38,0x0a,0x0d,0x3e,0x0a,0x39,0x0a,0x0d,0x3e,0x0a,0x31,0x30,0x0a,0x0d,0x3e,0x0a,
0x31,0x31,0x0a,0x0d,0x3e,0x0a,0x31,0x32,0x0a,0x0d,0x3e,0x0a,0x31,0x33,0x0a,0x0d,
0x3e,0x0a,0x31,0x34,0x0a,0x0d,0x3e,0x0a,0x31,0x35,0x0a,0x0d,0x3e,0x0a,0x31,0x36,
0x0a,0x0d,0x3e,0x0a,0x31,0x37,0x0a,0x0d,0x3e,0x0a,0x31,0x38,0x0a,0x0d,0x3e,0x0a,
0x31,0x39,0x0a,0x0d,0x3e,0x0a,0x32,0x30,0x0a,0x0d,0x3e,0x0a,0x32,0x31,0x0a,0x0d,
0x3e,0x0a,0x32,0x32,0x0a,0x0d,0x3e,0x70,0x61,0x63,0x6b,0x61,0x67,0x65,0x2e,0x7a,
View build-error.txt
$ rake
~/Documents/c/mobiruby-ios/submodules/libffi/armv7-ios ~/Documents/c/mobiruby-ios/submodules/libffi
autoreconf: 'configure.ac' or 'configure.in' is required
checking build system type... i386-apple-darwin12.5.0
checking host system type... arm-apple-darwin10
checking target system type... arm-apple-darwin10
checking for gsed... sed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-apple-darwin10-strip... no
View mruby-all.h
/*
** mruby - An embeddable Ruby implementation
**
** Copyright (c) mruby developers 2010-2013
**
** Permission is hereby granted, free of charge, to any person obtaining
** a copy of this software and associated documentation files (the
** "Software"), to deal in the Software without restriction, including
** without limitation the rights to use, copy, modify, merge, publish,
** distribute, sublicense, and/or sell copies of the Software, and to
View Dockerfile
FROM greglearns/ruby
RUN git clone https://github.com/planobe/cloudwalk-http-echo.git /opt/cloudwalk-http-echo/
RUN gem install bundler
EXPOSE 5000
ENV PORT 5000
RUN cd /opt/cloudwalk-http-echo && git pull && bundle install
CMD ["/usr/local/bin/foreman","start","-d","/opt/cloudwalk-http-echo"]
View sinatra.rb
#Bound to this address so that external hosts can access it, VERY IMPORTANT!
set :bind, '0.0.0.0'
set :logging, true
View inicio_en.xml
<posxmlapplication xmlns="http://tempuri.org/posxml.xsd">
<page name="principal">
<stringvariable value="" variable="primeiravez" />
<stringvariable value="" variable="ModeloTerminal" />
<stringvariable value="" variable="ModeloAbreviado" />
<stringvariable value="" variable="VersaoFramework" />
<integervariable value="3" variable="int_return" />
<stringvariable value="" variable="str_return" />
<readfile filename="config.dat" key="primeiravez" variabledestination="$(primeiravez)" />