Skip to content

Instantly share code, notes, and snippets.

View fczuardi's full-sized avatar

Fabricio C Zuardi fczuardi

View GitHub Profile
@fczuardi
fczuardi / Ex_01_abstract_types.re
Last active June 9, 2019 13:33
Caipyra Code Snippets
type product;
type payment;
type sale;
{
"presets": [
"env",
"react"
]
}
@fczuardi
fczuardi / .eslintrcA
Last active September 29, 2017 20:43
what rules are turned would be turned off if using the eslint-config-prettier on a eslint-config-standard-react config
{
"extends": [
"standard",
"standard-react"
]
}
{
"globals": {
"Array": false,
"ArrayBuffer": false,
"Boolean": false,
"constructor": false,
"DataView": false,
"Date": false,
"decodeURI": false,
"decodeURIComponent": false,

Nota do tradutor: traduzir não significa endossar cada idéia ou palavra, o texto abaixo reflete (na medida da minha habilidade limitada) o pensamento do autor original, que diverge do meu próprio em alguns pontos. Ainda assim acho um texto importante pro debate e que deve estar acessível em Português.


(Tradução do original [Encouraging individual sovereignty and a healthy commons][originalarticle] de Aral Balkan por Fabricio Campos Zuardi, revisado por Juliana Zanatta de Antoni e Marcia Campos Zuardi)

O manifesto de Mark Zuckerberg exibe sua visão de uma colônia global centralizada, e governada por uma oligarquia do Vale do Silício. Eu proponho que façamos exatamente o oposto disso, e que criemos um mundo propício aos recursos comuns e com indivíduos soberanos.

![](/content/images/2017/05/cyborg-rights.png) Somos seres compartilhados.Vamos construir um futuro onde a propriedade e o controle sobre todos os aspectos de nós mesmos sejam
@fczuardi
fczuardi / gameing-history.html
Created April 20, 2017 04:40
What I could get browsing the hashtag scroll with a browser on mastodon.social April 20, 2017
This file has been truncated, but you can view the full file.
<div role="section" aria-label="gameing" class="column">
<div role="button" tabindex="0" aria-label="gameing" class="column-header "><i class="fa fa-fw fa-hashtag" style="display: inline-block; margin-right: 5px;"></i>
<!--
react-text: 220736 -->gameing
<!-- /react-text -->
</div>
<div style="position: relative;">
<div role="button" tabindex="0" class="column-back-button" style="position: absolute; right: 0px; top: -48px; padding: 15px; font-size: 16px; flex: 0 0 auto; cursor: pointer;"><i class="fa fa-fw fa-chevron-left" style="display: inline-block; margin-right: 5px;"></i><span>Back</span>
</div>
</div>
const Regl = require('regl');
const example = (root) => () => {
const regl = Regl(root);
regl({
framebuffer: regl.framebuffer(2),
attributes: {
position: [
[-1, -1, 0],
[-1, 1, 0],
const MiniRunner = require('mini-runner')
const argsLength = 1;
var onComplete = new MiniRunner('onComplete', argsLength);
const listenerObject = {
onComplete: function(foo){console.log('aa', foo)}
}
const data = 'Hello runner'
@fczuardi
fczuardi / flatten.js
Created December 8, 2016 17:00
interview question: implement array flatten
// unwraps one level by accumulating the
// array concatenation of one item with the next item
const unwrap = arr => arr.reduce((acc, item) => acc.concat(item), []);
// flattens an array with nested array items
const flatten = arr => {
const needsUnwrapping = arr.filter( i => Array.isArray(i)).length > 0;
if (!needsUnwrapping) {
return arr;
}
diff --git a/src/components/dashboard.js b/src/components/dashboard.js
index dae02bb..70a88fa 100644
--- a/src/components/dashboard.js
+++ b/src/components/dashboard.js
@@ -41,9 +41,9 @@ class Dashboard {
p.secondTableRowHeight = this.props.ui.screenHeight < 640 ?
smallerSecondTableRowHeight : secondTableRowHeight;
p.tableWidth = p.ui.screenWidth;
- p.tableContentWidth = p.columns.enabled.length * columnWidth;
+ p.tableContentWidth = (p.columns.enabled.length + 1) * columnWidth;