Skip to content

Instantly share code, notes, and snippets.

View mvcypriano's full-sized avatar

Marcos Vinicius Gomes Cypriano mvcypriano

  • São Paulo, Brazil
View GitHub Profile
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
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
{
"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",