View NotaFiscal.java
public class NotaFiscal {
public NotaFiscal(Pessoa cliente, List<Produto> produtos) {
this.cliente = cliente;
this.produtos = produtos;
}
public String toString() {
String pulaLinha = System.getProperty("line.separator");
StringBuilder nota = new StringBuilder("Nota Fiscal" + pulaLinha);
nota.append("=================================" + pulaLinha);
View SomeAction.ts
import {Action} from "redux";
export default class SomeAction implements Action {
static type: string = "SOME_ACTION";
get type(): string {
return SomeAction.type;
}
}
View layout.js
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() {
View bash
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
View Closables.scala
object ImAClosable {
def work() = {
println("working...")
}
def close() {
prinlnt("closing...")
}
}
View ErrorInterceptor.java
package br.com.smartcoders.easyclinic.components;
import org.springframework.http.HttpStatus;
import br.com.caelum.vraptor.Intercepts;
import br.com.caelum.vraptor.Result;
import br.com.caelum.vraptor.InterceptionException;
import br.com.caelum.vraptor.core.InterceptorStack;
import br.com.caelum.vraptor.interceptor.Interceptor;
import br.com.caelum.vraptor.interceptor.ParametersInstantiatorInterceptor;
View gist:5929983
http://rafaelsteil.com/2012/09/15/zero-downtime-deploy-script-for-jetty/
View gist:4261636
Lista de documentários e filmes que considero como "obrigatórios", ou seja, todos deveriam assistir.
O critério usado para colocar um item na lista é: O documentário/filme mudou sua visão do mundo.
Documentários:
The Corporation - http://www.imdb.com/title/tt0379225/
The Story of Stuff - http://www.storyofstuff.com/
The Genius of Charles Darwin - http://en.wikipedia.org/wiki/The_Genius_of_Charles_Darwin
BBC - Horizon: How Many People Can Live on Planet Earth? - http://www.bbc.co.uk/programmes/b00pdjmk
View gist:4017444
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath: "com.github.marceloemanoel:gradle-environments-plugin:0.1"
}
}
View Directions.java
public enum Direction {
NORTH {
public Direction turnLeft(){
return WEST;
}
public Direction turnRight(){
return EAST;
}