Skip to content

Instantly share code, notes, and snippets.

View lgcantarelli's full-sized avatar

Lucas Guerreiro Cantarelli lgcantarelli

View GitHub Profile
@lgcantarelli
lgcantarelli / natural-language-script.html.erb
Last active May 17, 2016 19:25
natural language script with erb
<h2 class="small">Filtrar por monitoramentos de </h2>
<div class="nl-field">
<a class="toggle-options">Todas as Culturas</a>
<% cultures_options = Culture.get_options_for_filter %>
<ul class="options-list" style="display: none">
<% cultures_options.each do |culture_name, culture_id| %>
<li class="culture" value="<%= culture_id %>"> <%= culture_name %> </li>
<% end %>
</ul>
data B = T | F | NOT B | AND B B | OR B B
deriving(Eq, Show)
prog :: B
prog = OR (AND F (NOT T)) (NOT F)
smallStepB :: B -> B
smallStepB (NOT T) = F
smallStepB (NOT F) = T
smallStepB (NOT b) = (NOT (smallStepB b))
@lgcantarelli
lgcantarelli / example.js
Last active January 26, 2017 17:28
Formato dos dados da url /saldo
// atualmente esta vindo assim
[
{
"id": "1",
"unidade": "LT",
"armazens": [
"quantidade_disponivel": "2",
"codigo_armazem": "3"
];
# Blender v2.78 (sub 0) OBJ File: 'hamburgeres.blend'
# www.blender.org
mtllib hamburgeres.mtl
o X-Salada_Sphere.003
v 0.338341 1.059088 2.034468
v 0.453195 1.003514 3.152926
v 1.436582 1.062229 1.863912
v 1.437446 0.911588 3.174180
v 1.231215 1.067752 1.835357
v 0.866631 1.078272 1.914245