Plataforma para descentralização da Web - Andrei Sambra
github do projeto - https://github.com/solid
Gráficos Vetoriais na Web com SVG 1.1 - Helder da Rocha
slides e downloads - http://www.argonavis.com.br/download/w3c_2015_svg.html
{ | |
"env": { | |
"browser": true, | |
"es6": true | |
}, | |
"extends": [ | |
"eslint:recommended" | |
], | |
"parserOptions": { | |
"sourceType": "module", |
function gt | |
set mydir (pwd); | |
set www '/var/www/html'; | |
set untracked 'Untracked files'; | |
set notStaged 'Changes not staged'; | |
set toCommit 'Changes to be committed'; | |
set isAhead 'is ahead'; | |
set ok 'nothing to commit'; | |
cd $www; |
function gitstatus { | |
local www='/var/www/html'; | |
local mydir=($PWD); | |
local notStaged='Changes not staged'; | |
local toCommit='Changes to be committed'; | |
local isAhead='is ahead'; | |
local ok='nothing to commit'; | |
cd $www; | |
printf "\n# ------------------------------ gitstatus ------------------------------ #\n"; |
Plataforma para descentralização da Web - Andrei Sambra
github do projeto - https://github.com/solid
Gráficos Vetoriais na Web com SVG 1.1 - Helder da Rocha
slides e downloads - http://www.argonavis.com.br/download/w3c_2015_svg.html
html, body, div, span, object, iframe, | |
p, blockquote, pre, | |
abbr, address, cite, code, | |
del, dfn, em, img, ins, kbd, q, samp, | |
small, strong, sub, sup, var, | |
b, i, | |
dl, dt, dd, ol, ul, li, | |
fieldset, form, label, legend, | |
table, caption, tbody, tfoot, thead, tr, th, td, | |
article, aside, canvas, details, figcaption, figure, |
function now() { | |
var d = new Date().toLocaleString().match(/(\d{1,2})\/(\d{1,2})\/(\d{1,2}).*(\d{2}):(\d{2}):(\d{2})/); | |
return { | |
text: d[0], | |
day: parseInt(d[1]), | |
month: parseInt(d[2]), | |
year: parseInt(d[3]), | |
hour: parseInt(d[4]), | |
minute: parseInt(d[5]), | |
second: parseInt(d[6]) |
# Fish alias | |
function findg; find . -type f | grep $argv; end; | |
function gti; git $argv; end; | |
function gtt; git status $argv; end; | |
function gtag; git tag -l | sort -V $argv; end; | |
function ll; ls -thrAl $argv; end; | |
function mymod; sudo chmod -R ugo-rwx,u+wrX,go+rX $argv; end; | |
function www; cd /home/{$USER}/www/; end; |
function isEmail(email) { | |
if (typeof email !== 'string') { | |
return false; | |
} | |
return email.match(/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/) ? true : false; | |
} |
function textToSlug(text) { | |
var i; | |
var reg; | |
var from = 'àáâãäåæçèéêëìíîïðñòóôõöøùúûüýþßàáâãäåæçèéêëìíîïðñòóôõöøùúûýýþÿŕŕ'; | |
var to = 'aaaaaaaceeeeiiiidnoooooouuuuybsaaaaaaaceeeeiiiidnoooooouuuyybyrr'; | |
if (typeof text !== 'string') { | |
return new TypeError('The parameter must be string'); | |
} | |
text = text.toLowerCase().trim().replace(/\s+/g, '-').replace(/\-{2,}/g, '-'); |
function brazilianCurrency(money, decimalEmbeded) { | |
var decimalPart; | |
if (decimalEmbeded) { // example R$72,35 is 7235 | |
money = String(money); | |
money = 'R$ ' + Number(money.slice(0, -2)).toLocaleString().replace(/,/g, '.') + ',' + money.slice(-2); | |
} else { | |
money = 'R$ ' + Number(money).toLocaleString().replace(/,/g, ';').replace(/\./g, ',').replace(/;/g, '.'); | |
if (money.search(',') >= 0) { |