Skip to content

Instantly share code, notes, and snippets.

View portothree's full-sized avatar
♟️

Gus Porto portothree

♟️
View GitHub Profile

Keybase proof

I hereby claim:

  • I am portothree on github.
  • I am portothree (https://keybase.io/portothree) on keybase.
  • I have a public key ASAHDxpNiq2v679OBPuXROL2JUHn3FTvSkEowfyFNWoHIwo

To claim this, I am signing this object:

const SteamUser = require('steam-user');
const SteamTotp = require('steam-totp');
const client = new SteamUser();
const logOnOptions = {
accountName: '', // nome de usuario
password: '', // senha
twoFactorCode: SteamTotp.generateAuthCode('') // steam shared secret
};
class Upload extends React.Component {
constructor(props){
super(props)
this.state = {
file: null
}
this.handleChange = this.handleChange.bind(this)
}
handleChange(event) {
this.setState({
@portothree
portothree / quick-start.pt-br.md
Last active September 23, 2019 18:42
Tradução em Português do BEM "Quick start" https://en.bem.info/methodology/quick-start/

Introdução

BEM (Bloco, Elemento, Modificador) é um método baseado em componente para o desenvolvimento web. A ideia por trás é de dividir a interface do usuário em blocos independentes. Isso faz a interface de desenvolvimento fácil e rápida até com UI complexas, e permite o reutilizar código sem precisar copiar e colar.

Conteúdos

var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
var fileinclude = require('gulp-file-include');
var open = require('open');
// var px2rem = require('postcss-px2rem');
var app = {
srcPath: 'src/',
devPath: 'build/',
prdPath: 'dist/'
.screen-reader-only {
clip-path: polygon(0px 0px, 0px 0px, 0px 0px);
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
white-space: nowrap;
}
.checkbox {
position: relative;
input {
opacity: 0;
width: 20px;
height: 20px;
+ label {
&::before {
@portothree
portothree / package.json
Created October 18, 2019 18:20
deploy gh pages script
{
"scripts": {
"deploy": "git push origin :gh-pages && git subtree push --prefix dist origin gh-pages"
}
}
var docWidth = document.documentElement.offsetWidth;
[].forEach.call(
document.querySelectorAll('*'),
function(el) {
if (el.offsetWidth > docWidth) {
console.log(el);
}
}
);
sudo wpa_supplicant -B -c /etc/wpa_supplicant.conf -i wlp1s0
sudo dhclient wlp1s0
ip addr show wlp1s0
sudo dhclient wlp1s0 -r