IF EXISTS(select * FROM sys.views where name = 'view_name')
DROP VIEW view_name
if OBJECT_ID('SPD_Beneficios') is not null
Drop table SPD_Beneficios
function gerarCPF: string; | |
//http://www.geradorcpf.com/algoritmo_do_cpf.htm | |
var | |
cpf: string; | |
i: integer; | |
procedure Digito(Var cpf: string); | |
var | |
d: integer; | |
i: integer; |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
""" This is a simple gist to show how to mock | |
private methods. I've got lots of questions | |
regarding this topic. Most people seems confused. | |
Hope it helps. | |
""" | |
import unittest | |
import mock |
# Fu*%$ Promises | |
# Prefácio | |
Os desafios da carreira de TI são muitos, mesmo com alguma experiência, um novo desafio de vez em sempre acaba pulando em seu colo. O desafio da vez foi com o Cloud Code do Parse, junto com seus amigos, javascript, promises, testes integrados, QUnit. Enfim, o que vou falar mesmo é sobre algo que me ajudou a ser mega produtivo esse dia. | |
# Foco | |
Após o Stand-up meeting, com o objetivo de desperdiçar 2 pomodoros na tarefa até que eu sumone um amigo para parear, eu acabei não conseguindo seguir o combinado. Os 2 pomodoros inicias foram muito relevantes, a possibilidade de aplicar a lição aprendida no pomodoro anterior, foi muito tentadora. No final do dia consegui ficar muito feliz com o meu "desvio do foco". |
Notebook
IDE Android Studio - https://developer.android.com/sdk/index.html
Git - http://www.git-scm.com/
GenyMotion - https://www.genymotion.com/#!/ ou celular android com cabo usb
GenyMotion
Android Annotations https://github.com/excilys/androidannotations
for less code
#!/bin/sh | |
# Taken from and modified | |
# http://devblog.springest.com/a-script-to-remove-old-git-branches/ | |
echo "The following remote branches are fully merged into master and will be removed:" | |
git branch -r --merged master | sed 's/ *origin\///' | grep -v 'master$' | |
read -p "Continue (y/n)?" | |
if [ "$REPLY" == "y" ] ; then # Remove remote fully merged branches | |
git branch -r --merged master | sed 's/ *origin\///' | grep -v 'master$' | xargs -I % git push origin --delete % |