This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 <Foundation/Foundation.h> | |
int main(int argc, char *argv[]) { | |
@autoreleasepool { | |
NSString *start = @"CéuÁbÊrtação"; | |
NSData *stringAsciiEncoded = [start dataUsingEncoding:NSASCIIStringEncoding allowLossyConversion:YES]; | |
NSString *simpleString = [[NSString alloc] initWithData:asciiEncoded encoding:NSASCIIStringEncoding]; | |
NSLog(@"Valor: %@", simpleString); | |
} |
This file contains hidden or 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
### Keybase proof | |
I hereby claim: | |
* I am unnamedd on github. | |
* I am unnamedd (https://keybase.io/unnamedd) on keybase. | |
* I have a public key ASAzyQzrzgp9bCWJHLBsH3B3jGIXeSX5ocqP4pBslLV3fQo | |
To claim this, I am signing this object: |
This file contains hidden or 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 | |
# Define colors | |
alias_color='\033[1;34m' # Bold blue | |
comment_color='\033[0;32m' # Green | |
no_color='\033[0m' # Reset color | |
printf "\nGit Aliases\n" | |
# Define the number of spaces for alignment |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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> |