Skip to content

Instantly share code, notes, and snippets.

Probably working

Rodrigo Alves Vieira rodrigoalvesvieira

Probably working
Block or report user

Report or block rodrigoalvesvieira

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
Rule ID Description Tags
accesskeys Ensures every accesskey attribute value is unique wcag2a, wcag211
area-alt Ensures <area> elements of image maps have an alternate text wcag2a, wcag111, section508, section508a
aria-allowed-attr Ensures all attributes that start with 'aria-' are valid for an element's role wcag2a, wcag411
aria-required-attr Ensures all elements that contain WAI-ARIA roles to ensure that all required ARIA attributes are present wcag2a, wcag411
aria-required-children Checks all elements that contain a WAI-ARIA role to ensure that all required children roles are present wcag2a, wcag411

Rich Hickey on becoming a better developer

Rich Hickey • 3 years ago

Sorry, I have to disagree with the entire premise here.

A wide variety of experiences might lead to well-roundedness, but not to greatness, nor even goodness. By constantly switching from one thing to another you are always reaching above your comfort zone, yes, but doing so by resetting your skill and knowledge level to zero.

Mastery comes from a combination of at least several of the following:

rodrigoalvesvieira / .gitignore
Created Mar 20, 2018 — forked from maaku/.gitignore
BIP specifying fast merkle trees, as used in the Merkle branch verification opcodes

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

View gist:6e66ff00b7a6cddae12bedd95338f447
* Changes value to past tense.
* Simple filter does not support irregular verbs such as eat-ate, fly-flew, etc.
* @param {String} value The value string.
Vue.filter('past-tense', function(value) {
// Slightly follows
var vowels = ['a', 'e', 'i', 'o', 'u'];
View W10D4.js
//Write an O(n) algorithm to sort an array of integers, where you know in
//advance what the lowest and highest values are.
function bucket_sort(arr, min, max) {
var buckets = Array(max - min + 1);
for (var i = 0; i < arr.length; ++i)
buckets[arr[i] - min] = (buckets[arr[i] - min]|0) + 1;
var ret = [];
for (var i = min; i <= max; ++i)
for (var j = 0; j < buckets[i - min]; ++j)
rodrigoalvesvieira / index.js
Created Dec 20, 2016
Redux Thunk with Fetch - standalone demo
View index.js
import React from 'react';
import ReactDOM from 'react-dom';
import {createStore, applyMiddleware, compose} from 'redux';
import thunk from 'redux-thunk'
import {Provider, connect} from 'react-redux';
/************ ACTION CONSTANTS AND ACTION CREATORS ************/
const addRepository = repository => ({type: ADD_REPOSITORY, repository});
rodrigoalvesvieira / draw_barcode.js
Created Mar 23, 2016 — forked from chsh/draw_barcode.js
Draw barcode using d3.
View draw_barcode.js
//= require d3
var height = 500;
var width = 800;
var margin_left = 20;
var xdim = 2;
var svgContianer ="body")
.attr("width", width)
View gist:67525c0965d48af2e180
You can’t perform that action at this time.