Skip to content

Instantly share code, notes, and snippets.

View zenorocha's full-sized avatar

Zeno Rocha zenorocha

View GitHub Profile
@zenorocha
zenorocha / Foca no código
Created August 27, 2012 14:42
Foca no código
/* Véi, foca no código
.---.
/o o\
__(= " =)__
//\'-=-'/\\
) (_
/ `"=-._
/ \ ``"=.
// 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)
clone() {
git clone git@github.com:$1/$2.git
}
@zenorocha
zenorocha / html5-demos.md
Last active April 19, 2019 02:14
The HTML5 Amount of Awesomeness (work in progress)

The HTML5 Amount of Awesomeness

Rainbox Vomit

A collection of freaking awesome HTML5 demos (work in progress).

WebGL

@zenorocha
zenorocha / README.md
Last active February 25, 2019 14:13
Building NodeWebkit apps with Gulp

Tasks

To install the task-runner, run:

$ npm install -g gulp

To install local dependencies, run:

#!/usr/bin/env zsh
openssl genrsa -des3 -out self-signed.pass.key 2048
openssl rsa -in self-signed.pass.key -out self-signed.key
openssl req -new -key self-signed.key -out self-signed.csr
openssl x509 -req -days 365 -in self-signed.csr -signkey self-signed.key -out self-signed.crt
echo "SHA1 fingerprint:\n"
openssl x509 -in self-signed.crt -sha1 -noout -fingerprint
@zenorocha
zenorocha / gist:3826357
Created October 3, 2012 10:47 — forked from lucianosousa/gist:3825283
5 livros que mudaram minha cabeça, em ordem de leitura
1) O Ócio Criativo - Domenico De Masi
http://www.livrariasaraiva.com.br/produto/443457/o-ocio-criativo/
2) Você está Louco - Ricardo Semler
http://www.livrariasaraiva.com.br/produto/1461877/voce-esta-louco-!-uma-vida-administrada-de-outra-forma/
3) Virando a própria mesa - Ricardo Semler
http://www.livrariasaraiva.com.br/produto/100702/virando-a-propria-mesa-uma-historia-de-sucesso-empresarial-made-in-brazil/
4) The 4-Hour Workweek - Tim Ferriss
@zenorocha
zenorocha / gist:3924349
Created October 20, 2012 19:02
CSS3 Media Queries
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}
/* Smartphones (landscape) ----------- */
@media only screen
and (min-width : 321px) {
@zenorocha
zenorocha / entry.js
Last active July 20, 2018 06:56
Bundling Clipboard.js distribution with Webpack
var Clipboard = require('clipboard');
@zenorocha
zenorocha / Console Capture
Created August 15, 2011 16:28 — forked from taitems/Console Capture
Prevent console.log()s from causing JS errors
if (!window.console) {
window.console = {};
window.console.log = function() {
return false;
};
}