I hereby claim:
- I am infog on github.
- I am infog (https://keybase.io/infog) on keybase.
- I have a public key whose fingerprint is A21D 5075 8E9C CCE9 D3B4 D767 B031 7CCF B522 0331
To claim this, I am signing this object:
from flask import Flask | |
app = Flask(__name__) | |
@app.route("/"): | |
data = [] | |
data["title"] = "My Page" | |
data["description"] = "Just a Page" | |
return render_template("index.html", **data) |
I hereby claim:
To claim this, I am signing this object:
# Detele | |
couchbase-cli bucket-delete -c 127.0.0.1 -u Administrator -p mypassword --bucket=mybucket-to-delete | |
# Create | |
couchbase-cli bucket-create -c 127.0.0.1 -u Administrator -p mypassword --bucket=default --bucket-ram=300 | |
# Restore | |
cbrestore default http://127.0.0.1:8091 -B default |
Available packages (APT): | |
r-base | |
r-cran-ggplot2 | |
r-cran-lme4 | |
r-cran-reshape | |
r-cran-xml | |
CRAN only: |
ntpdate 0.br.pool.ntp.org |
body { | |
font-family: Sans-serif; | |
color: #333; | |
} | |
h1 { | |
text-align: center; | |
} | |
.erro { |
# prompt style and colors based on Steve Losh's Prose theme: | |
# http://github.com/sjl/oh-my-zsh/blob/master/themes/prose.zsh-theme | |
# | |
# vcs_info modifications from Bart Trojanowski's zsh prompt: | |
# http://www.jukie.net/bart/blog/pimping-out-zsh-prompt | |
# | |
# git untracked files modification from Brian Carper: | |
# http://briancarper.net/blog/570/git-info-in-your-zsh-prompt | |
PR_GIT_UPDATE=1 |
<?php | |
$idade = trim($_POST['idade']); | |
$erro = false; | |
if (empty($idade)) { | |
$erro = 'Idade não pode ser vazia'; | |
} elseif (! is_numeric($idade)) { | |
$erro = 'Idade deve ser numérica'; | |
} elseif ($idade < 18) { |
A list of amazingly awesome PHP libraries, resources and shiny things.
var MyClass = function () { | |
this.name = ""; | |
this.setName = function (name) { | |
this.name = name; // Este this é o MyClass, não a function atual | |
}; | |
this.getName = function () { | |
return this.name; | |
}; | |
this.keyPressSetter = function (k) { | |
this.name = this.name + String.fromCharCode(k.keyCode); |