This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################ | |
# The following keys can be used to configure defaults for project creation | |
# project_name: | |
company: Concrete Solutions | |
author: Thiago Holanda | |
# prefix: | |
company_identifier: br.com.concretesolutions | |
############################################################################ | |
test_target_name: UnitTests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: latin-1 -*- | |
# @Author: Thiago Holanda | |
# @Email: unnamedd@gmail.com | |
# @Date: 12/08/2009 | |
import re | |
import urllib2 | |
import sys | |
def getSourceCode(url): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// LoginViewController.m | |
// Videolog | |
// | |
// Created by Thiago Holanda on 1/20/12. | |
// Copyright (c) 2012 | |
// | |
#import "LoginViewController.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// LoginViewController.h | |
// Videolog | |
// | |
// Created by Thiago Holanda on 1/20/12. | |
// Copyright (c) 2012 | |
// | |
#import <UIKit/UIKit.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" References: | |
" https://sites.google.com/site/bemylifeeasy/Home/vimrc | |
" http://www.vivaolinux.com.br/etc/.vimrc-hackwiz | |
" http://amix.dk/vim/vimrc.html | |
" http://vi-improved.org/vimrc.html | |
call pathogen#infect() | |
syntax on | |
filetype plugin indent on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias mygrep="clear && grep -Rni $1 --exclude=*.{js,css,log,sql,pyc,swp} $2" | |
alias greppy="clear && grep -Rni $1 --exclude=*.* --include=*.py $2" | |
alias grephtml="clear && grep -Rni $1 --exclude=*.* --include=*.html $2" | |
alias grepcss="clear && grep -Rni $1 --exclude=*.* --include=*.css $2" | |
alias grepjs="clear && grep -Rni $1 --exclude=*.* --include=*.js $2" | |
# find and delete | |
find . -name "*.pyc" | xargs rm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getParameters(qs) { | |
qs = qs.split("+").join(" "); | |
var params = {}, tokens, | |
re = /[?&]?([^=]+)=([^&]*)/g; | |
while (tokens = re.exec(qs)) { | |
params[decodeURIComponent(tokens[1])] | |
= decodeURIComponent(tokens[2]); | |
} | |
return params; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Flux | |
var basicAuth = BasicAuthenticationMiddleware(username: "admin", password: "password") | |
let router = Router(middleware: logger, basicAuth) { route in | |
route.get("/") { request in | |
var content: [String: InterchangeData] = ["id": 2348, "title": "Blood Brother", "artist": "Iron Maiden"] | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in $(ls -d */); do | |
if [ ! $i = "Flux.xcodeproj/" ]; then | |
cd ${i%%/}; | |
printf "\n\n##### ${i%%/}\n" | |
for f in $(ls -d */); do | |
cd ${f%%/}; | |
printf "${f%%/}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Protocolo responsável por fazer o efeito de parallax nas imagens que, principalmente, são usadas como background. | |
É necessário chamar a função `setupParallaxInitialValues` no `awakeFromNib` da `UITableViewCell` para configurar os valores iniciais das variáveis. | |
Além disso, para total funcionamento do efeito, é necessário implementar algumas chamadas na `UIViewController` ou `UITableViewController` que a `tableView` está instanciada. | |
Chamar a função `setParallaxCellImageOffsetWithTableView` no `willDisplayCell` da `UITableViewDelegate` e para todas as células visíveis no método `scrollViewDidScroll`. | |
Implementação: |
OlderNewer