Skip to content

Instantly share code, notes, and snippets.

Avatar

Zeno Rocha zenorocha

View GitHub Profile
@zenorocha
zenorocha / etc-hosts-on-win.md
Last active September 19, 2023 06:55
/etc/hosts on Windows
View etc-hosts-on-win.md
@zenorocha
zenorocha / README.md
Last active July 29, 2023 22:45
A template for Github READMEs (Markdown) + Sublime Snippet
View README.md
@zenorocha
zenorocha / basic.md
Last active March 26, 2023 09:00
New Firebase Auth vs Old Firebase Auth
@zenorocha
zenorocha / multiple-3rd-party-widgets.js
Last active November 14, 2022 12:18
Loading multiple 3rd party widgets asynchronously
View multiple-3rd-party-widgets.js
(function() {
var script,
scripts = document.getElementsByTagName('script')[0];
function load(url) {
script = document.createElement('script');
script.async = true;
script.src = url;
scripts.parentNode.insertBefore(script, scripts);
@zenorocha
zenorocha / .hyper.js
Last active April 17, 2022 20:21 — forked from millermedeiros/osx_setup.md
Setup macOS Sierra (10.12)
View .hyper.js
// 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
@zenorocha
zenorocha / aui-pagination+datatable.html
Created February 25, 2013 19:11
AlloyUI: Pagination + Datatable
View aui-pagination+datatable.html
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Pagination + Datatable</title>
<!-- AlloyUI -->
<link rel="stylesheet" href="http://cdn.alloyui.com/2.0.0pr2/aui-css/css/bootstrap.min.css">
<script src="http://cdn.alloyui.com/2.0.0pr2/aui/aui-min.js"></script>
View FrontCalendar.md

FrontCalendar

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.

@zenorocha
zenorocha / Foca no código
Created August 27, 2012 14:42
Foca no código
View Foca no código
/* Véi, foca no código
.---.
/o o\
__(= " =)__
//\'-=-'/\\
) (_
/ `"=-._
/ \ ``"=.
View showFirstCellInGoogleSheetAsiOSWidget.js
// Modified from @mutsuda's https://medium.com/@mutsuda/create-an-ios-widget-showing-google-spreadsheets-data-856767a9447e
// by @levelsio
// HOW TO
// 1) Make a Google Sheet, we'll pull the first cell e.g. A1
// 2) Publish your Google Sheet, File -> Publish To Web
// 3) Copy the SHEET_ID in the URL, put it in here below:
const endpoint = "https://spreadsheets.google.com/feeds/cells/1RKJ65dTptKlXQ4E6JbGEVLrK6lC9pZnEvkzn68twckA/1/public/full?alt=json"
// 4) Install Scriptable @ https://apps.apple.com/us/app/scriptable/id1405459188
// 5) Copy this entire script in to Scriptable (tip: you can send it to your iPhone via Whatsapp/Messenger/Telegram etc)