Skip to content

Instantly share code, notes, and snippets.

View zenorocha's full-sized avatar

Zeno Rocha zenorocha

View GitHub Profile
View sample.ics

Would it be possible to include an iCal file attachment to the Access-A-Ride advance notification emails with a 30 minute window from the specified pickup time (that is the window in which Access-A-Ride drivers need to arrive)?

For example: if my Access-A-Ride is supposed to pick me up at 10:34 am from 1000 Broadway Ave and then again at 8:00 pm from 900 Jay St., include a calendar event (a .ics file) that would look similar to the following, attached to the advance trip notification:

SUMMARY:Access-A-Ride Pickup
View showFirstCellInGoogleSheetAsiOSWidget.js
// Modified from @mutsuda's
// by @levelsio
// 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 = ""
// 4) Install Scriptable @
// 5) Copy this entire script in to Scriptable (tip: you can send it to your iPhone via Whatsapp/Messenger/Telegram etc)
zenorocha / .hyper.js
Last active November 12, 2023 15:13 — forked from millermedeiros/
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 for all currently supported options.
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 14,
// font family with optional fallbacks
View .zshrc
gifify() {
if [[ -n "$1" ]]; then
if [[ $2 == '--good' ]]; then
ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png
time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif
rm out-static*.png
ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif
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
View gist:3826357
1) O Ócio Criativo - Domenico De Masi
2) Você está Louco - Ricardo Semler!-uma-vida-administrada-de-outra-forma/
3) Virando a própria mesa - Ricardo Semler
4) The 4-Hour Workweek - Tim Ferriss
zenorocha / Console Capture
Created August 15, 2011 16:28 — forked from taitems/Console Capture
Prevent console.log()s from causing JS errors
View Console Capture
if (!window.console) {
window.console = {};
window.console.log = function() {
return false;