a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
define(["jquery", | |
"jquery.gridster"], function($) { | |
var gridster = $(".gridster").gridster({ | |
widget_margins: [5, 5], | |
widget_base_dimensions: [200, 200], | |
widget_selector:"section.widget", | |
draggable: { | |
handle: '.ui-sortable-handle, .ui-sortable-handle > h5', | |
stop: function() { |
a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
Como incluir código fonte no seu texto lateX? | |
resumidos: | |
http://texblog.wordpress.com/2008/04/02/include-source-code-in-latex-with-listings/ | |
http://www.tjansson.dk/?p=419 | |
completo: | |
ftp://ftp.tex.ac.uk/tex-archive/macros/latex/contrib/listings/listings.pdf | |
Pseudo código em LateX? | |
http://en.wikibooks.org/wiki/LaTeX/Algorithms_and_Pseudocode |
@Get | |
@Path("/") | |
public void consultar(final Requisicao requisicao) { | |
validator.checking(new Validations() {{ | |
that(requisicao, Matchers.notNullValue(), "requisicao", "parametro.obrigatorio", "requisicao"); | |
}}); | |
if(validator.hasErrors()){ | |
System.out.println("encontrou um erro"); | |
} |
## ORACLE | |
def disable_referential_integrity(&block) #:nodoc: | |
sql_constraints = <<-SQL | |
SELECT constraint_name, owner, table_name | |
FROM user_constraints | |
WHERE constraint_type = 'R' | |
AND status = 'ENABLED' | |
SQL | |
old_constraints = select_all(sql_constraints) | |
begin |
Array.prototype.add = function(el) { | |
this[this.length] = el; | |
return this; | |
}; | |
if(typeof Array.prototype.each == "undefined") { | |
Array.prototype.each = function(fn) { | |
for(var index = 0; index < this.length; index++) { | |
fn(this[index], index); | |
} |
var json = {} | |
var name = "empresa.id"; | |
var valor = "01/01/2011"; | |
var gerarJSON = (function gerarJSON(json, hierarquia, value) { | |
var hierarquia = hierarquia.split("."); | |
var last = hierarquia.pop(); | |
var temp = {}; |
var objeto = { | |
nome: "Christiano Milfont", telefone: "23423423", idade: 18, | |
paginacao: function(name) { return name; } | |
}; | |
var template = "<div> #{paginacao(nome)} #{nome} \ | |
- #{telefone} - #{ (idade >= 18)? \"permitido\": \"proibido\" }</div>"; | |
function Engine(tmpl) { | |
var _pattern = /\#\{([^}]+)\}/g; |
public enum Direction { | |
NORTH { | |
public Direction turnLeft(){ | |
return WEST; | |
} | |
public Direction turnRight(){ | |
return EAST; | |
} |
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath: "com.github.marceloemanoel:gradle-environments-plugin:0.1" | |
} | |
} |