TODO: Write a project description
TODO: Describe the installation process
$this->ContaCorrente->find('first', | |
array('fields' => | |
array('SUM(ContaCorrente.valor) AS total'), | |
'conditions'=>array('ContaCorrente.moeda' => 'REAIS') | |
) | |
); |
/* | |
* Check all checkboxes for facebook | |
*/ | |
var checks = document.getElementsByClassName("checkbox"); | |
for(var i = 0; i < checks.length; i++){ checks[i].checked = true; } |
.setSize(@w, @h){ | |
width: @w; | |
height: @h; | |
} | |
.iconSize(@size){ | |
.setSize(@size); | |
} | |
.iconCreate(@background, @position: left, @size: 16px){ | |
background-image: @background; | |
background-repeat: no-repeat; |
Attention: if you attempt to fork this gist, github will think that you are a spammer and you will have to confirm that you are human with them. Apparantly there are too many links in this list. Also I update it rather frequently (see revisions on the left), so it's probably wise to not fork it anyway.
/* The API controller | |
Exports 3 methods: | |
* post - Creates a new thread | |
* list - Returns a list of threads | |
* show - Displays a thread and its posts | |
*/ | |
var Thread = require('../models/thread.js'); | |
var Post = require('../models/post.js'); |
<?php | |
class Cidades_estados_pais extends CI_Model { | |
public function index() { | |
//----------------------------------------------- | |
// Se preferir altere o nome da tabela e colunas | |
// | |
$tabela = 'sys_cidades_estados_pais'; |