Skip to content

Instantly share code, notes, and snippets.

View interaminense's full-sized avatar
🖐️
Hi there!

Adriano Interaminense interaminense

🖐️
Hi there!
View GitHub Profile
@interaminense
interaminense / git-upstream
Last active July 2, 2017 04:01
Baixar branch do Fork original via git
Precisamos baixar mais uma branch do Fork original. Como fazemos?
1. Utilizamos da seguite linha de comando:
git remote add upstream htttps://github.com/USERNAME/PROJECT_NAME.git
2. O comando "--all" baixa tudo que tem no projeto e "--prune" faz uma limpeza
local em alguma referência e algum arquivo que existia e que hoje não existe mais
git fetch --all --prune
3. lista todas as branchs remotas
@interaminense
interaminense / batman-css.html
Last active November 17, 2017 17:57
Batman css pixel made with Pixeleasier.js
<div style="width: 85px; height: 170px; position: relative;">
<div style="width: 5px; height: 5px; position: absolute; top: 0px; left: 0px; box-shadow: transparent 0px 0px 0px 0px, transparent 5px 0px 0px 0px, transparent 10px 0px 0px 0px, transparent 15px 0px 0px 0px, transparent 20px 0px 0px 0px, rgb(20, 33, 50) 25px 0px 0px 0px, transparent 30px 0px 0px 0px, transparent 35px 0px 0px 0px, transparent 40px 0px 0px 0px, transparent 45px 0px 0px 0px, transparent 50px 0px 0px 0px, rgb(20, 33, 50) 55px 0px 0px 0px, transparent 60px 0px 0px 0px, transparent 65px 0px 0px 0px, transparent 70px 0px 0px 0px, transparent 75px 0px 0px 0px, transparent 80px 0px 0px 0px, transparent 0px 5px 0px 0px, transparent 5px 5px 0px 0px, transparent 10px 5px 0px 0px, transparent 15px 5px 0px 0px, transparent 20px 5px 0px 0px, rgb(20, 33, 50) 25px 5px 0px 0px, transparent 30px 5px 0px 0px, transparent 35px 5px 0px 0px, transparent 40px 5px 0px 0px, transparent 45px 5px 0px 0px, transparent 50px 5px 0px 0px, rgb(20, 33, 50) 55px 5p
@interaminense
interaminense / batman-html.html
Last active November 17, 2017 17:59
Batman html pixel made with Pixeleasier.js
<div style="width: 85px; height: 170px; position: relative;">
<div style="display: block; width: 85px; height: 5px; position: absolute; left: 0px; top: 0px;">
<div style="display: block; width: 5px; height: 5px; background-color: transparent; position: absolute; left: 0px; top: 0px;"></div>
<div style="display: block; width: 5px; height: 5px; background-color: transparent; position: absolute; left: 5px; top: 0px;"></div>
<div style="display: block; width: 5px; height: 5px; background-color: transparent; position: absolute; left: 10px; top: 0px;"></div>
<div style="display: block; width: 5px; height: 5px; background-color: transparent; position: absolute; left: 15px; top: 0px;"></div>
<div style="display: block; width: 5px; height: 5px; background-color: transparent; position: absolute; left: 20px; top: 0px;"></div>
<div style="display: block; width: 5px; height: 5px; background-color: rgb(20, 33, 50); position: absolute; left: 25px; top: 0px;"></div>
<div style="display: block; width: 5px; heig
@interaminense
interaminense / batman-svg.html
Last active November 17, 2017 17:54
Batman css pixel made with Pixeleasier.js
<svg width="85" height="170">
<rect style="fill:transparent" width="5" height="5" x="0" y="0"></rect>
<rect style="fill:transparent" width="5" height="5" x="5" y="0"></rect>
<rect style="fill:transparent" width="5" height="5" x="10" y="0"></rect>
<rect style="fill:transparent" width="5" height="5" x="15" y="0"></rect>
<rect style="fill:transparent" width="5" height="5" x="20" y="0"></rect>
<rect style="fill:#142132" width="5" height="5" x="25" y="0"></rect>
<rect style="fill:transparent" width="5" height="5" x="30" y="0"></rect>
<rect style="fill:transparent" width="5" height="5" x="35" y="0"></rect>
<rect style="fill:transparent" width="5" height="5" x="40" y="0"></rect>
@interaminense
interaminense / api-lvl.js
Created February 11, 2018 04:04
API Level Metal Math
[
{
internalLabel: 'easy',
label: '😸 easy',
maxNumber: 3,
operators: [
{ label: '+', },
{ label: '-', }
]
},
@interaminense
interaminense / mathematics-api-table.csv
Last active February 26, 2018 01:30
Mathematics API
name description type
levelDefautl define o nível padrão do game string
lvls lista de níveis que o game irá suportar array
lvls -> internalLabel nome do nível que não pode conter espaços e caracter especial string
lvls -> label nome do nível que irá ser exibida na UI string
lvls -> maxNumber número máximo aleatório que irá ser utilizado nas operações number
lvls -> operators lista de operadores para o nível selecionado array
showResult exibe ou não o resultado da operação durante o game boolean
time tempo para finalizar o game number
@interaminense
interaminense / mathematics-api.js
Last active February 26, 2018 02:15
Mathematics API
App.STATE = {
countdown: {
value: 20
},
lvlDefault: {
value: 'easy'
},
lvls: {
value: [
{
@interaminense
interaminense / mathematics-props-state.js
Created February 26, 2018 02:06
Mathematics Props and States
Mathematics.PROPS = {
/**
* @type {number}
* @default 30
*/
countdown: Config.number().value(30),
/**
* @type {string}
* @default undefined
@interaminense
interaminense / mathematics-lifecycle-render.js
Created February 26, 2018 02:33
Mathematics Lifecycle Render
render() {
const {start, finish, init, lvl} = this.state;
return (
<div class={`mathematics mathematics--lvl-${lvl.internalLabel}`}>
<div class={'mathematics__body'}>
{init && (
<div class={'mathematics__init'}>
{this.renderInitGame()}
@interaminense
interaminense / mathematics-render-init-game.js
Created February 26, 2018 02:58
Mathematics RenderInitGame
/**
* Render UI init game
*/
renderInitGame() {
return (
<Layout>
<Layout.Header>{LANGUAGE.initGame}</Layout.Header>
<Layout.Body>
{this.renderUIButtons()}