Skip to content

Instantly share code, notes, and snippets.

View luanmuniz's full-sized avatar
:octocat:
Always Building

Luan Muniz luanmuniz

:octocat:
Always Building
View GitHub Profile

Github Two-Factor Authentication (2FA) for Brazil via SMS

The Github doesn't provide country code for Brazil (+55). To add this option, just run the code below in your console. The option Brazil +55 will be the first on the list, already selected:


🇧🇷 [pt-BR]

Autenticação em dois fatores (2FA) do GitHub para o Brasil via SMS

@matheuslc
matheuslc / análisedeframeworks.md
Last active November 18, 2015 10:13
Análise de frameworks CSS [BETA]

Análise de Frameworks CSS

Tabela Comparativa

Framework Arquitetura de CSS Pré-processador Componentes Suporte (browsers) Suporte (comunidade) Curva de aprendizado Velocidade de desenvolvimento Qualidade de código Documentação Dependências Tamanho
Twitter Bootstrap OOCSS LESS/Sass Muitos IE8+ Excelente Média Excelente Ótima 8/10 jQuery 255kb
Zurb Foundation OOCSS Sass Muitos+ IE9+ Ótima Média Excelente Excelente 9/10 jQuery 174kb
Yahoo Purecss SMACSS - Poucos IE8+ Ótima Baixa Boa Execelente 9/10 - 74kb
@danielfilho
danielfilho / braziljs-2014-talks.md
Last active November 27, 2022 21:04
Talks, slides and links from BrazilJS 2014

#BrazilJS 2014

Talks: slides & Links

Day Talk Speaker Links
1 Why ServiceWorker may be the next big thing Renato Mangini interview · slides · video
1 Frontend at Scale - The Tumblr Story Chris Miller interview · slides · video
1 Intro to GFX: Raw WebGL Nick Desaulniers interview · slides · video
@fdaciuk
fdaciuk / exceptions.js
Created August 23, 2014 03:37
Tumblr Exceptions
/* jslint browser: true, jquery: true, devel: true*/
/*
Dependencies: Tumblr.Flags
Tumblr.Utils.exceptions will automatically log window.onerror.
DO NOT write code like this. This is written to handle weird cases
where normal code should probably just fail.
*/
@ruyadorno
ruyadorno / gist:9f1ecb0aa48f1e1ec404
Last active August 29, 2015 14:05
Get yeoman option from command-line
var yeoman = require('yeoman-generator');
var argv = require('minimist')(process.argv.slice(2));
module.exports = yeoman.generators.Base.extend({
constructor: function (args, options) {
if (options['module-name']) {
// don't really remember why getting from argv with an options fallback
this.moduleName = argv['module-name'] || options['module-name'];
} else {
@fdaciuk
fdaciuk / Esconder_console_log.md
Last active September 3, 2021 15:00
Esconder console.log() quando o site for para produção

Esconder console.log() para o site em produção

  • Trocar o www.mywebsite.com pelo endereço do site em produção;
  • Incluir isso no início do seu script.

Se passar o parâmetro ?development na URL, ele ignora e mostra os console.log().

@ricardodantas
ricardodantas / fullscreenapi.helper.js
Last active January 29, 2025 05:24
Javascript fullscreen API helper
var requestFullscreen = function (ele) {
if (ele.requestFullscreen) {
ele.requestFullscreen();
} else if (ele.webkitRequestFullscreen) {
ele.webkitRequestFullscreen();
} else if (ele.mozRequestFullScreen) {
ele.mozRequestFullScreen();
} else if (ele.msRequestFullscreen) {
ele.msRequestFullscreen();
} else {
@luanmuniz
luanmuniz / gist:da0b8d2152c4877f93c4
Last active August 27, 2018 12:32
Fork Workflow

Development workflow with Git: Fork, Branching, Commits, and Pull Request

1 - Fork a repo

2 - Clone the sevntu.checkstyle project to your local machine (username – your Github user account name.):

$ git clone [email protected]:USERNAME/REPOSITORY.git

3 - Configure remotes:

@zenorocha
zenorocha / .hyper.js
Last active April 11, 2025 07:01 — forked from millermedeiros/osx_setup.md
Setup macOS Sierra (10.12)
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 14,
// font family with optional fallbacks
@alexdunae
alexdunae / smushit.sh
Created October 15, 2009 16:45
Image optimization with a home-rolled Smush.it
#!/bin/bash
#
# Home-rolled Smush.it, by Alex Dunae (http://dialect.ca).
#
# N.B. This script works for me; it may not work for you.
# Since it overwrites your images with the optimized version, you should
# backup your files before running this script and do a trial run before
# getting too excited. This is your disclaimer.
#
# Uses jpegtran (http://jpegclub.org/jpegtran/), part of libjpeg,