Skip to content

Instantly share code, notes, and snippets.

@viclib
Created September 4, 2013 19:29
Show Gist options
  • Save viclib/6441678 to your computer and use it in GitHub Desktop.
Save viclib/6441678 to your computer and use it in GitHub Desktop.

Revisions

  1. viclib created this gist Sep 4, 2013.
    8 changes: 8 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    global.perfis = {}
    for p,perfil of data.perfis
    perfis[p] = {}
    for c,cat of perfil
    perfis[p][c] = {}
    for sc,parcela of cat.divisao
    categoria[sc] = c
    perfis[p][c][sc] = interpolated (map (->it*parcela/100), cat.percentuais), 0, 10