Skip to content

Instantly share code, notes, and snippets.

View ddsilva's full-sized avatar

Daniel Silva ddsilva

  • São Paulo, Brasil
View GitHub Profile
@ddsilva
ddsilva / main.coffee
Created December 10, 2013 12:06
SIPLAN - main.coffee
define [
'core'
'layout/layout'
], () ->
'use strict'
Core = require 'core'
Session = require 'core/session'
Layout = require 'layout/layout'
@ddsilva
ddsilva / site_controller.coffee
Created December 10, 2013 12:08
SIPLAN - site_controller.coffee
define [
'core'
'views/site/index_view'
], () ->
# Imports
# =============================================================
Core = require 'core'
IndexView = require 'views/site/index_view'
@ddsilva
ddsilva / index_view.coffee
Created December 10, 2013 12:15
SIPLAN - Site index_view
define [
'core'
], () ->
# Imports
# =============================================================
Core = require 'core'
# IndexView class
@ddsilva
ddsilva / login.html
Created January 10, 2014 15:49
Login DNE
<form role="form" class="form-horizontal" novalidate>
<div class="form-group">
<h4>Qual seu endereço de email?</h4>
<label for="email" class="col-sm-2 control-label">Meu email é: </label>
<div class="col-sm-4">
<input type="email" class="form-control" id="email" name="email" autofocus>
</div>
</div>
@ddsilva
ddsilva / gist:8373480
Created January 11, 2014 17:00
modal solicitação senha
<div id="modal-password" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="esqueci-minha-senha" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title" id="esqueci-minha-senha">Esqueci minha senha</h4>
</div>
<div class="modal-body">
<div class="form-group">
<label for="email-forgot" class="col-sm-2 control-label">Meu email é: </label>
@ddsilva
ddsilva / query-include-estados.sql
Created January 11, 2014 21:25
Insert estados
INSERT INTO dne.Estado (nome, uf)
VALUES
('Acre' , 'AC'),
('Alagoas' , 'AL'),
('Amapá' , 'AP'),
('Amazonas' , 'AM'),
('Bahia' , 'BA'),
('Ceará' , 'CE'),
('Distrito Federal' , 'DF'),
('Espírito Santo' , 'ES'),
@ddsilva
ddsilva / query-include-cidades.sql
Created January 11, 2014 21:25
Insert cidades
INSERT INTO dne.Cidade (nome, estado_id) VALUES
('Afonso Cláudio', 8),
('Água Doce do Norte', 8),
('Águia Branca', 8),
('Alegre', 8),
('Alfredo Chaves', 8),
('Alto Rio Novo', 8),
('Anchieta', 8),
('Apiacá', 8),
('Aracruz', 8),
@ddsilva
ddsilva / query-include-cidades.sql
Created January 11, 2014 21:26
Include cidades
INSERT INTO dne.Cidade (nome, estado_id) VALUES
('Afonso Cláudio', 8),
('Água Doce do Norte', 8),
('Águia Branca', 8),
('Alegre', 8),
('Alfredo Chaves', 8),
('Alto Rio Novo', 8),
('Anchieta', 8),
('Apiacá', 8),
('Aracruz', 8),
@ddsilva
ddsilva / tree_view.coffee
Created January 14, 2014 16:27
Tree view espaço físico
define [
'core'
'jqtree'
'models/espaco_fisico_model'
'daos/espaco_fisico_dao'
], () ->
# Imports
# =============================================================
@ddsilva
ddsilva / index.html
Created January 17, 2014 14:12
index.html (DNE)
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">