Duas ótimas ferramentas e uma tarefa para testarmos as performances
###Nodejs nodejsapp https://nodejsapp-malha-logistica.herokuapp.com/
nodejs-source https://github.com/altherlex/nodejsapp-malha-logistica
| ;^c:: | |
| #Persistent | |
| return | |
| OnClipboardChange: | |
| ClipWait | |
| StringReplace, clipboard, clipboard, STRING_REPLACE, STR , All | |
| clipboard = %clipboard% | |
| return |
| #phantomjs | |
| Make integration tests with phantomjs: http://phantomjs.org/ | |
| http://staal.io/blog/2013/08/17/incredibly-convenient-testing-of-frontend-javascript-with-node-dot-js/ | |
| #http://nightwatchjs.org/ | |
| #lambda3 (Giovanni Bassi) | |
| http://blog.lambda3.com.br/ | |
| #jsdom | |
| https://github.com/tmpvar/jsdom |
| //Automatic re-running with nodemon and npm server | |
| nodemon -x 'npm start' | |
| //or | |
| node app.js | |
| //Start mongodb | |
| mongod --dbpath C:\mongodb\data\db |
| #http://stackoverflow.com/questions/9778657/why-does-this-simple-rspec-string-equality-spec-fail | |
| describe First do | |
| specify { First.new.to_s.should == "Hello World" } | |
| end | |
| describe First do | |
| describe "#to_s" do | |
| subject { First.new.to_s } | |
| it { should == "Hello World" } | |
| end |
| # Testing Scaling | |
| require 'benchmark' | |
| n = 10000 | |
| result = Benchmark.bm do |x| | |
| x.report { for i in 1..n; Thread.new {`curl -XGET http://localhost:3000`}; end } | |
| end |
Duas ótimas ferramentas e uma tarefa para testarmos as performances
###Nodejs nodejsapp https://nodejsapp-malha-logistica.herokuapp.com/
nodejs-source https://github.com/altherlex/nodejsapp-malha-logistica
h1. Meus comandos
for i in $(find -name '.');do file $i;done |grep UTF
#!/bin/bash for i in $(find -name '*.*');do iconv -f iso-8859-1 -t UTF-8 -o $i $i;done #do encoding=$(file -bi $i | sed -e 's/.*[ ]charset=//'); do iconv -f iso-8859-1 -t UTF-8 -o $i $i;done -----------------------------------------
| # encoding: UTF-8 | |
| #http://watir.com/ | |
| #https://github.com/watir/watir/ | |
| require 'rubygems' | |
| require "watir" | |
| teste_site = "http://blogsearch.google.com.br/" | |
| browser = Watir::IE.new | |
| browser.goto teste_site |
| # encoding: UTF-8 | |
| # Exercise description: http://goo.gl/2XsKhW | |
| require 'minitest' | |
| require "minitest/autorun" | |
| ############### Exercise 3 ############## | |
| class Array | |
| def combine_anagrams | |
| self.group_by{|el| el.downcase.chars.sort}.values | |
| end |