Skip to content

Instantly share code, notes, and snippets.

View digitalbocca's full-sized avatar
🚀
Working from home

Gabriel Bertola Bocca digitalbocca

🚀
Working from home
View GitHub Profile
@digitalbocca
digitalbocca / morse.js
Created January 4, 2019 03:45 — forked from eholk/morse.js
A Morse Code generator in Java Script
// Copyright 2014–2017, Eric Holk
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
@digitalbocca
digitalbocca / parcel-bundler-config.json
Created November 27, 2018 18:18
Scripts npm para desenvolvimento e produção com parcel bundler.
{
"scripts": {
"dev": "parcel -p 8080 --no-cache ./src/index.html",
"build": "parcel build src/index.html --public-url ./ --no-source-maps --no-cache"
}
}
@digitalbocca
digitalbocca / BADGES.md
Created November 27, 2018 10:54
Coleção de selos usados nos arquivos README

Maintainability

forthebadge forthebadge forthebadge forthebadge

JavaScript Style Guide JavaScript Style Guide JavaScript Style Guide

@digitalbocca
digitalbocca / auto-git.json
Created November 26, 2018 01:35
Configuração para o controle de versão automatizado - npm git
{
"version": "0.1.0",
"config": {
"commitMessage": "Automatizado o controle de versão"
},
"scripts": {
"git": "npm run gst && npm run gad && npm run gco && npm run gta && npm run gpo",
"gst": "git status",
"gad": "git add .",
"gco": "cross-var git commit -m \"$npm_package_config_commitMessage\"",
@digitalbocca
digitalbocca / netlify-deploy.json
Created November 26, 2018 01:25
Automatização de deploy utilizando npm e netlify
{
"scripts": {
"deploy": "cross-var netlify deploy -m \"$npm_package_config_commitMessage\" --prod --open -d ./dist"
}
}
@digitalbocca
digitalbocca / curl.md
Created November 13, 2018 05:38 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@digitalbocca
digitalbocca / vscode.css
Last active June 2, 2018 01:41
Custom CSS - vscode
.mtk7,
.mtk3,
.mtk13,
.mtk16 {
margin-left: 1px;
font-family: "Pacifico";
font-size: 1.7em;
}
.mtk7,
@digitalbocca
digitalbocca / updateNpm.bat
Created May 24, 2018 04:59 — forked from johnmcase/updateNpm.bat
Update npm on windows
rem see https://github.com/coreybutler/nvm-windows/issues/300
@echo off
SETLOCAL EnableDelayedExpansion
if [%1] == [] (
echo Pass in the version you would like to install, or "latest" to install the latest npm version.
) else (
set wanted_version=%1
@digitalbocca
digitalbocca / https-to-http.js
Created April 16, 2018 23:10
https to http - express
req.headers['x-forwarded-proto'] === 'http' ? next() : res.redirect('http://' + req.hostname + req.originalUrl)
@digitalbocca
digitalbocca / vscode-custom.css
Created March 30, 2018 13:03
vscode custom css - firacode flottflott
.type.storage, .type.storage.declaration, .storage.class.modifier {
font-family: 'flottflott';
font-size: 1.7em;
}
.type.storage.arrow.function {
font-family: 'Fira Code'
}
.decorator.name, .decorator.punctuation:not(.block), .import.keyword {