Skip to content

Instantly share code, notes, and snippets.

View JulianeAlbuquerque's full-sized avatar

Juliane Albuquerque JulianeAlbuquerque

View GitHub Profile
// https://blog.tompawlak.org/number-currency-formatting-javascript
function formatNumber (num) {
return num.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,")
}
console.info(formatNumber(2665)); // 2,665
console.info(formatNumber(102665)); // 102,665
console.info(formatNumber(111102665)); // 111,102,665
@JulianeAlbuquerque
JulianeAlbuquerque / git-status-multi-repository-shell-script
Created January 23, 2018 02:19
Shell script to check satus of git repository for multiple projects
repos=(
"/c/projects/project-1"
"/c/projects/project-2"
"/c/projects/project-3"
)
echo ""
echo "Checking" ${#repos[@]} "repositories for status"
for repo in "${repos[@]}"

Atalhos do VIM

  • Copy line yy
  • Delete line dd
  • Past line p

NerdTree

  • Toggle <esc>,nn
@JulianeAlbuquerque
JulianeAlbuquerque / git.md
Last active April 19, 2017 13:09
Command Git

Command Git

Tags

Show Tag's

git tag -l

git show <TAG>

Create Tag

git tag -a <NOME_DA_TAG> -m 'description'

Xcode

  • Download xcode
  • When download is finished, open Xcode.app in your /Applications folder and agree to the licence
  • Install the Xcode command line tools: xcode-select --install

Homebrew

  • Download Homebrew ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Check for any conflicts or problems brew doctor

Webpack Config

Basic webpack + es6

Install npm i -D webpack babel-core babel-loader babel-preset-es2015

@JulianeAlbuquerque
JulianeAlbuquerque / Engenharia de Software.md
Last active October 12, 2016 08:08
Anotações da aula de Engenharia de Software

Aula 1

Apresentação da Engenharia de Software

O que é?

  • Adquirir e aplicar conhecimento em software
  • Ciência, arte e profissão de adquirir e aplicar conhecimentos em software (instruções, abstrato, intangível, feito por pessoas)

Por quê?

  • Crise, complexidade, custo e prazo, qualidade, aderência
@JulianeAlbuquerque
JulianeAlbuquerque / .scsscomb.json
Last active October 6, 2016 17:58
config to csscomb installed on Atom and add in config of plugin atom-beautify
{
"remove-empty-rulesets": true,
"always-semicolon": true,
"color-case": "lower",
"block-indent": " ",
"color-shorthand": true,
"element-case": "lower",
"eof-newline": true,
"leading-zero": false,
"quotes": "single",