This file contains 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
# UX para Developers - Referências | |
## Soluções prontas | |
- jQuery Mobile (http://www.jquerymobile.com) | |
- HTML 5 Boilerplate (http://html5boilerplate.com) | |
## Ferramentas | |
- Spin.js (http://fgnass.github.com/spin.js) |
This file contains 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
#!/usr/bin/env bash | |
INSTALL_DIR="${INSTALL_DIR:-/opt/local}" | |
VERSION=$2 | |
APP_NAME="ruby" | |
URL="http://ftp.ruby-lang.org/pub/ruby/ruby-$VERSION.tar.bz2" | |
PREFIX="$INSTALL_DIR/$APP_NAME/$VERSION" | |
CURRENT="$INSTALL_DIR/$APP_NAME/current" | |
TGZ="$INSTALL_DIR/src/$(basename $URL)" | |
COMMAND=$1 |
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "hellobits" | |
config.vm.box_url = "http://hellobits.com/vagrant/hellobits.box" | |
config.vm.synced_folder ".", "/Projects", id: "vagrant-root" | |
# config.vm.network :private_network, ip: "192.168.50.2" | |
forward_port = ->(guest, host = guest) do |
This file contains 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
# TRIM | |
function ltrim(s) { sub(/^[ \t]+/, "", s); return s } | |
function rtrim(s) { sub(/[ \t]+$/, "", s); return s } | |
function trim(s) { return rtrim(ltrim(s)); } |
This file contains 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
## | |
# Troca a CST dos registros C470/C490 de acordo com o CFOP | |
## | |
File.open(ARGV.first).each do |line| | |
row = line.split("|") | |
if row[1] == "C470" | |
row[7] = "060" if row[8] == "5656" | |
row[7] = "060" if row[8] == "5405" | |
row[7] = "000" if row[8] == "5102" |
This file contains 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
tributos = '0700120018002500020000000000000000000000000000000000000000000000' | |
Dir.glob("#{Dir.pwd}/cat52/*").each do |file| | |
total_tributos = Array.new(16,'0' * 14) | |
File.open(file,'r').each do |line| | |
serie_ecf ||= line[3..22] |
This file contains 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
andreanastacio @ ~/Workspace/src/ruby/ventriloquist/development | |
> vagrant destroy | |
You appear to be running Vagrant in a Bundler environment. Because | |
Vagrant should be run within installers (outside of Bundler), Vagrant | |
will assume that you're developing plugins and will change its behavior | |
in certain ways to better assist plugin development. | |
Are you sure you want to destroy the 'default' VM? [y/N] y | |
[default] Forcing shutdown of VM... | |
[default] Destroying VM and associated drives... |
This file contains 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
andreanastacio @ ~/Workspace/src/ruby/ventriloquist/development | |
> bundle | |
Resolving dependencies... | |
Using rake (10.1.0) | |
Using dependor (1.0.1) | |
Using bogus (0.1.4) | |
Using timers (1.1.0) | |
Using celluloid (0.15.2) | |
Using ffi (1.9.0) | |
Using childprocess (0.3.9) |
This file contains 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
andreanastacio @ ~/Workspace/src/ruby/ventriloquist/development | |
> vagrant up | |
You appear to be running Vagrant in a Bundler environment. Because | |
Vagrant should be run within installers (outside of Bundler), Vagrant | |
will assume that you're developing plugins and will change its behavior | |
in certain ways to better assist plugin development. | |
Bringing machine 'default' up with 'virtualbox' provider... | |
[default] Setting the name of the VM... | |
[default] Clearing any previously set forwarded ports... |
This file contains 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
andreanastacio @ ~/Workspace/src/ruby/ventriloquist/development | |
> vagrant up | |
You appear to be running Vagrant in a Bundler environment. Because | |
Vagrant should be run within installers (outside of Bundler), Vagrant | |
will assume that you're developing plugins and will change its behavior | |
in certain ways to better assist plugin development. | |
Bringing machine 'default' up with 'virtualbox' provider... | |
[default] Setting the name of the VM... | |
[default] Clearing any previously set forwarded ports... |
OlderNewer