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
ieoooeukiauqodelghkpjfaoeaeea | |
omyzwjuvioutmgrmreuamqahnhyfa | |
eñoeuyuvepiamatmziwiapojueoco | |
atoaañobeekijboozvaifxumaaaju | |
ihaaoyamwñxdvaoasxigcruqeoicu | |
okgcrlororvouaedmeceuheqhcsso | |
aeeioeuzexabavoqimodibaueaeea | |
npmqjdwqpopwiseñroeoixvdpdgxn | |
iiññeoabqrgobaepuiolacqewouio | |
eodovkgifoisoyfuyeogijooiiaia |
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
{ | |
"operations": [ | |
{ | |
"operationAmount": { | |
"totalWithDiscount": 1, | |
"totalWithoutDiscount": 1 | |
}, | |
"operationTaxes": [ | |
{ | |
"percentage": 6 |
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
require 'csv' | |
require 'date' | |
memory_customer_id = 0 | |
memory_points = 0 | |
memory_last_date = nil | |
memory_location_id = 0 | |
debug = true | |
CSV.foreach('main.csv').each do |line| |
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
+-------------------+ +---------------------+ | |
| Master | | Staging | | |
| | | | | |
+-------------------+ +---------------------+ | |
Rama A | | |
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
module CampaignBlock::ReportManager | |
class ReportIncrementalBudget | |
attr_accessor :year, :month, :report | |
def self.default_year | |
Date.current.year | |
end | |
def self.default_month | |
Date.current.month | |
end |
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
module CampaignBlock::ReportManager | |
class ReportIncrementalBudget | |
def self.default_year | |
Date.current.year | |
end | |
def self.default_month | |
Date.current.month | |
end | |
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
{ | |
"coupon_id": { | |
// representer solo tiene format e includes_control | |
"representer": { | |
"format": "ean_13", // posible valores 'ean_13', 'code_25_interleaved', 'code_39', 'code_128' | |
"includes_control": true // posibles valores true/false | |
}, | |
// formater tiene max_size, prefix y format |
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
find . -name '*.txt' -print0 | xargs -0 wc -l |
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
" Specify a directory for plugins (for Neovim: ~/.local/share/nvim/plugged) | |
call plug#begin('~/.vim/plugged') | |
" Make sure you use single quotes | |
" Shorthand notation; fetches https://github.com/junegunn/vim-easy-align | |
Plug 'junegunn/vim-easy-align' | |
" On-demand loading | |
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } |
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
#!/bin/bash | |
tail -n +2 $1 | split -l 10000 - split_ | |
for file in split_* | |
do | |
head -n 1 $1 > tmp_file | |
cat $file >> tmp_file | |
mv -f tmp_file output/$file.csv | |
rm $file | |
done |
NewerOlder