I hereby claim:
- I am giolvani on github.
- I am giolvani (https://keybase.io/giolvani) on keybase.
- I have a public key ASBCofCOoiBgza8Zr40qTeHSfL86vtRy_wYfvDNzm1nhVgo
To claim this, I am signing this object:
APPLICATION_URL=http://localhost |
getters: { | |
foo(state) { | |
return (bar) => { | |
return bar; | |
} | |
} | |
} | |
export default { | |
name: 'MyComponent', |
// order by asc | |
itens.sort((a, b) => a.property - b.property); | |
// order by desc | |
itens.sort((a, b) => b.property - a.property); |
const escape = input => input.replace(/[-[\]{}()*+!<=:?.\/\\^$|#\s,]/g, '\\$&'); | |
// how to use | |
escape('.'); |
function getNumberSeparators (locale) { | |
// defaults | |
var res = { "decimal": ".", "thousand": "" }; | |
// convert a number formatted according to locale | |
var str = parseFloat(1234.56).toLocaleString(locale); | |
// if the resulting number does not contain previous number | |
// (i.e. in some Arabic formats), return defaults | |
if (!str.match("1")) |
function encrypt(input){ | |
var alphabet = "abcdefghijklmnopqrstuvwxyz"; | |
var fullAlphabet = alphabet + alphabet + alphabet; | |
var offset = 3; | |
offset = (offset % alphabet.length); | |
var result = ''; | |
for(i=0; i < input.length; i++){ | |
var letter = input[i]; | |
var upper = (letter == letter.toUpperCase()); |
I hereby claim:
To claim this, I am signing this object:
/* | |
import { LitElement, html } from 'https://unpkg.com/@polymer/lit-element/lit-element.js?module'; | |
export default class ActionGroup extends LitElement { | |
static get properties() { | |
return { | |
} | |
} |
#!/bin/bash | |
echo -e "\e[1;32mInit ssh agent\e[0m" | |
eval $(ssh-agent -s) | |
ssh-add ~/.ssh/rsa | |
echo -e "\e[1;32mGit pull\e[0m" | |
git pull | |
echo -e "\e[1;32mNpm update\e[0m" | |
npm update --production |