Skip to content

Instantly share code, notes, and snippets.

Working from home

Glauber Ramos glauberramos

Working from home
Block or report user

Report or block glauberramos

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

10 weird tricks that React developers near you are using to create reusable components

  • reusable components
    • props over state
      • prop === state => problem!
    • stateless components
    • easy to unit test
  • PropTypes are serious
bastman /
Created Mar 31, 2016
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see:

$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
LeaVerou / RAINBOWlog.js
Created Mar 12, 2014
AWESOMEify your console.log()ing! Because life is too short to be black & white!!!!!!1111one
View RAINBOWlog.js
var log = console.log;
console.log = function(str) {
var css = 'background: linear-gradient(to right, red, yellow, lime, aqua, blue, fuchsia, red); color: white; font-weight: bold;';
var args =;
args[0] = '%c' + args[0];
return log.apply(console, args);
asafge / ng-really.js
Created Nov 12, 2013
ng-really? An AngularJS directive that creates a confirmation dialog for an action.
View ng-really.js
* A generic confirmation for risky actions.
* Usage: Add attributes: ng-really-message="Are you sure"? ng-really-click="takeAction()" function
angular.module('app').directive('ngReallyClick', [function() {
return {
restrict: 'A',
link: function(scope, element, attrs) {
element.bind('click', function() {
var message = attrs.ngReallyMessage;
dypsilon /
Last active Jan 12, 2020
A badass list of frontend development resources I collected over time.
willurd /
Last active Jan 19, 2020
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
andrew / leaderboard.rb
Last active Dec 10, 2015
Get a leaderboard of contributions in your GitHub organization
View leaderboard.rb
## Contribution leaderboard
# Get a leaderboard of contributions in your org
# usage: $ USERNAME=yourusername PASSWORD=yourpassword ORG=yourorgname ruby leaderboard.rb
# n.b requires the octokit and mechanize gems
require 'rubygems'
require 'octokit'


Na falta de um site decente e realmente atualizado com os eventos de front-end que vão rolar, dê um pulo aqui ;)

Finalmente temos um site decente para listar os eventos, por isso a partir de agora essa lista não será mais atualizada e todos os esforços estarão concentrados na página de Eventos do BrazilJS.

LeaVerou / vunits.js
Created Nov 8, 2011
Static polyfill for vw, vh, vm units
View vunits.js
* Polyfill for the vw, vh, vm units
* Requires StyleFix from -prefix-free
* @author Lea Verou
(function() {
if(!window.StyleFix) {
You can’t perform that action at this time.