Skip to content

Instantly share code, notes, and snippets.

View scalone's full-sized avatar

Thiago Scalone scalone

  • CloudWalk
  • São Paulo / SP
View GitHub Profile
Generating /Users/thiagoscalone/projects/plano_be/walk/mobile/ruboto_sample/using_bundler/libs/bundle.jar
Updating git@github.com:planobe/posxml_parse.git
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Using posxml_parse (0.0.2) from git@github.com:planobe/posxml_parse.git (at master) Successfully built RubyGem
Name: posxml_parse
Version: 0.0.2
File: posxml_parse-0.0.2.gem
Using bundler (1.3.5)
source "https://rubygems.org"
gem 'posxml_parse', "0.0.2", :git => "git@github.com:planobe/posxml_parse.git"
source "https://rubygems.org"
gem 'posxml_parse', "0.0.2", :git => "git@github.com:planobe/posxml_parse.git"
gem 'json'
def get_app
@request = nil
url = URI.parse("http://cloudwalk-manager-staging.herokuapp.com/api/users/token.json?email=#{@edit_text_email.text}&password=#{@edit_text_password.text}")
posxml_execute_thread { @request = Net::HTTP.post_form(url, {})}
loop do
break if @request != nil
end
parsed = JSON.parse(@request.body)
module PosxmlParse
class Terminal
CONFIG_FILE_NAME = "posxml_terminal_config.dat"
include PosxmlParse::Threadable
attr_accessor :root_path, :token, :email, :password, :app_id_list
def initialize(root_path, use_thread, email, password)
@root_path = root_path
class MyClass
include PosxmlParser
def start
use_thread = false
posxml_files_path = "./"
main = "main.posxml"
posxml_configure!("", , use_thread)
end
➈❸@walk (mruby) thiagoscalone@Atena:~/projects/plano_be/walk/omg-ide$ npm install; ./getLibs.sh
npm WARN package.json connect-redis@1.4.5 No repository field.
npm http GET https://github.com/sadasant/node-proxywrap/tarball/master
npm http 200 https://github.com/sadasant/node-proxywrap/tarball/master
OMG-IDE LIBRARIES
bootstrap.css
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 121k 100 121k 0 0 41013 0 0:00:03 0:00:03 --:--:-- 46093
class MyClass
include PosxmlParser
def pause
@pause = true
end
def oncreate
posxml_configure("/sdcard", "main.posxml")
posxml_loop do
loop { break if @pause == false }
# encoding: UTF-8
require "rubygems"
require 'riak'
require "ripple"
require "turn"
require "json"
require "rake"
include Rake::DSL
@scalone
scalone / gist:8513911
Created January 20, 2014 02:22
AB Performance
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking www.nerdbrew.com.br (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests