View belezadecodigo.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def createdAtFormatted | |
def dateCreated = ticket?.getCreatedAt() | |
try { | |
createdAtFormatted = format?.format(dateCreated) | |
} catch (Exception e) { | |
try { | |
def dateCreatedDate = format?.parse(dateCreated) | |
createdAtFormatted = format?.format(dateCreatedDate) | |
} catch (Exception ex) { |
View cpanfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
requires 'JSON' => ''; | |
requires 'HTML::Entities' => ''; | |
requires 'Text::Unaccent' => ''; | |
requires 'List::MoreUtils' => ''; | |
requires 'Dancer' =>''; | |
requires 'YAML' => ''; |
View instalacao_perl_e_modulos_perl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
\curl -L http://install.perlbrew.pl | bash | |
source ~/perl5/perlbrew/etc/bashrc | |
perlbrew install perl-5.20.1 | |
perlbrew switch perl-5.20.1 |
View Relato
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Olá. Ha Tempos decidi escrever este texto e em forma de gist para me forçar a ser mais objetiva: o que aprendi desde dezembro/2013 quando descobrir que iria ter um bebê. | |
A primeira coisa que tenho que dizer é que você em algum momento entrará em pânico. Pode ser uma única vez ou várias vezes, porém você entrará em pânico, portanto não se sinta totalmente péssima quando isso o correr, so não vale utilizar gravidez como desculpa para ficar descontrolada. Por mais que seja difícil e que a falha seja inevitável, você deve tentar se manter o mais controlada possivel. | |
Sou programadora e sempre fui muito preocupada com minha produtividade e infelizmente admito que ela teve uma queda significativa. O sono do primeiro trimestre aliado aos vômitos frequentes - vomitei até o meio do quarto mes me prejudicaram bastante - emagreci 4 quilos. Melhorei bastante nos meses subsequentes. Faço coro com os que afirmam que o segundo trimestre é o mais fácil, pois parar de vomitar e sentir o sono quase constante ajuda muito. O pr |
View problems_RobertaArcoverde_18nov2014
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(Linux && Mac) | |
wget -O - http://install.perlbrew.pl | bash | |
source ~/perl5/perlbrew/etc/bashrc | |
perlbrew available | |
perlbrew install perl-5.20.1 | |
perlbrew list | |
perlbrew switch perl-5.20.1 | |
Windows -> http://strawberryperl.com/ ou http://www.activestate.com/activeperl |
View amazonprime
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://exame.abril.com.br/revista-exame/edicoes/1062/noticias/bolha-com-br?page=5 | |
http://www.amazon.com/Amazon-Prime-One-Year-Membership/dp/B00DBYBNEE | |
http://oglobo.globo.com/sociedade/tecnologia/amazon-aumenta-preco-da-assinatura-prime-para-us-99-11870558 | |
http://marketing.rakuten.com.br/blog/e-commerce/o-frete-gratis-em-xeque-quais-as-alternativas-para-o-varejo-online/ |
View gist:7864654
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Topic: | |
Repositório de modelos tridimensionais de Stanford (dragão incluso): | |
http://www-graphics.stanford.edu/data/3Dscanrep/ | |
Descrição e comparação de dois dos principais algoritmos de iluminação - Gouraud (que eu utilizei) e Phong: | |
http://www.nbb.cornell.edu/neurobio/land/oldstudentprojects/cs490-95to96/guo/report.html | |
Aulas/apresentações sobre Scanline Conversion (o algoritmo de renderização de polígonos que utilizei): | |
http://ww2.cs.mu.oz.au/380/slides/scan_conversion.pdf | |
http://myweb.lmu.edu/dondi/share/cg/polygons-and-shading.pdf |
View gist:6572163
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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 lang="pt-br" class="no-js"> | |
<!-- <![endif]--> | |
<head> |
View bottomUpDynamicProgramingExample.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cstring> | |
#define MAX 1000 | |
using namespace std; | |
int W[MAX]; | |
bool M[MAX][MAX]; | |
int main() { | |
int n, w; |
View memoization_example.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cstring> | |
#define MAX 1000 | |
using namespace std; | |
//Testar com 5 10 /n 1 2 3 4 5 e 5 10 /n 3 3 3 3 3 | |
int W[MAX]; | |
bool V[MAX][MAX]; | |
bool M[MAX][MAX]; |
NewerOlder