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
def fontSize(name) | |
charCount = name.length | |
if charCount < 22 | |
return 40 | |
elsif charCount > 36 | |
return 25 | |
else | |
puts charCount | |
return (45 - 0.5*charCount).round | |
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
item_id = "131131" | |
initial_coda = "000101" | |
name = "panthene" | |
store_id = 6 | |
tag_quantity = 15 | |
def zpl_generator(item_id,initial_coda,name,store_id,tag_quantity) | |
"^XA\n^CI28\n^LT44\n^LS-8\n^RS8,b0,,1,p,,,2\n\n\n^RFW,^FT8,0 H^FD5A61697474" | |
+item_id | |
+initial_coda |
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
{ | |
"id": 132, | |
"email": "mvcypriano@gmail.com", | |
"name": "Marcos", | |
"last_name": "Vinicius Cypriano", | |
"nickname": "Marcos ", | |
"phone": "+5527981373636", | |
"token": "EMAWdZB46uPZBsiKVClPrW4pILxoBpP9Fi8MTbQUsLcqRuR6eK5E6pvtkTZAI52XJSKWPHO7ZC7EQli2XrbRkzjfpEK8r3X1Wl9uQypAWUXZCkyhHZBka5QZBvZBdncy5igYE5ZCzeyBKoSZABrqEzLI2b0ACRvCkaW93ZC4ZD", | |
"birthday": "1992-06-12T00:00:00.000-03:00", | |
"gender": "male", |