Skip to content

Instantly share code, notes, and snippets.

Verifying that "alvesjtiago.id" is my Blockstack ID. https://explorer.blockstack.org/name/alvesjtiago.id
Verifying my Blockstack ID is secured with the address 13MYwghyBdig4yYCWm6bmq7F57SD4BWAYr

Keybase proof

I hereby claim:

  • I am alvesjtiago on github.
  • I am alvesjtiago (https://keybase.io/alvesjtiago) on keybase.
  • I have a public key ASCFy7pHq-KDb7C167I6XaAqT0Q4pMP5VAUS_IrJxzBOYwo

To claim this, I am signing this object:

@alvesjtiago
alvesjtiago / jquery.fancybox-1.3.4_patch.js
Created September 1, 2016 11:57
Fancybox 1.3.4 patched
/*
* FancyBox - jQuery Plugin
* Simple and fancy lightbox alternative
*
* Examples and documentation at: http://fancybox.net
*
* Copyright (c) 2008 - 2010 Janis Skarnelis
* That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
*
* Version: 1.3.4 (11/11/2010)
@alvesjtiago
alvesjtiago / opinionated_basic_rails_setup.md
Last active December 10, 2016 22:59
Opinionated Basic Rails Setup

Opinionated Basic Rails Setup

This is a basic Rails project setup on a Mac that helps me get up to speed when building a new app.
It is by no means a guide, reference or best practice.

Up and Run

  1. rails new project_name -d postgresql
  2. cd project_name
  3. cp config/database.yml config/example.database.yml
@alvesjtiago
alvesjtiago / gist:e2c61eb288c9d488a8cc
Last active August 29, 2015 14:18
Remove alpha channel and transparencies from images for AppStore screenshots.
# Run the following code on a folder that contains all your images
for f in *.png; do convert "$f" -background white -alpha remove -flatten -alpha off "$f"; done
@alvesjtiago
alvesjtiago / 0_reuse_code.js
Last active August 29, 2015 14:15
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#!/usr/bin/env Rscript
print(1)
@alvesjtiago
alvesjtiago / NSInvocation+SimpleCreation.h
Created December 25, 2013 12:54
Create invocations the simple way. Extracted from ITActionManager.
//
// NSInvocation+SimpleCreation.h
// MAPI
//
// Created by Tiago Alves on 08/12/13.
// Copyright (c) 2013 Iterar. All rights reserved.
//
#import <Foundation/Foundation.h>
@alvesjtiago
alvesjtiago / List of iOS calendar components
Created September 5, 2013 21:40
List of iOS calendar components
- Vurig Calendar: https://github.com/TjeerdVurig/Vurig-Calendar
- Tapku: https://github.com/devinross/tapkulibrary
- Kal: https://github.com/klazuka/Kal
- iOS-Calendar: https://github.com/vgrichina/ios-calendar
- ABCalendarPicker: https://github.com/k06a/ABCalendarPicker
- CKCalendar: https://github.com/jaykz52/CKCalendar