Skip to content

Instantly share code, notes, and snippets.

View unnamedd's full-sized avatar
🇺🇦
#StandWithUkraine

Thiago Holanda unnamedd

🇺🇦
#StandWithUkraine
View GitHub Profile
@unnamedd
unnamedd / gist:166849
Created August 12, 2009 23:29
Get Source Code Through Proxy
# -*- coding: latin-1 -*-
# @Author: Thiago Holanda
# @Email: unnamedd@gmail.com
# @Date: 12/08/2009
import re
import urllib2
import sys
def getSourceCode(url):
@unnamedd
unnamedd / LoginViewController.m
Created January 27, 2012 16:04
View de login montada através do código
//
// LoginViewController.m
// Videolog
//
// Created by Thiago Holanda on 1/20/12.
// Copyright (c) 2012
//
#import "LoginViewController.h"
@unnamedd
unnamedd / LoginViewController.h
Created January 27, 2012 16:05
View de Login
//
// LoginViewController.h
// Videolog
//
// Created by Thiago Holanda on 1/20/12.
// Copyright (c) 2012
//
#import <UIKit/UIKit.h>
@unnamedd
unnamedd / .vimrc
Created April 13, 2012 05:37
Example .vimrc
" 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
@unnamedd
unnamedd / gist:2380471
Created April 13, 2012 22:13
My Aliases
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
@unnamedd
unnamedd / functions.js
Created April 25, 2012 17:49
Get Parameters from QueryString
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;
@unnamedd
unnamedd / .gitconfig
Last active March 14, 2024 13:19
Personal Git Configurations / Git Config
[core]
excludesfile = /Users/unnamedd/.gitignore
editor = code
autocrlf = false
pager = delta
[user]
name = Thiago Holanda
email = unnamedd@gmail.com
signingkey = CD1B6C70016B3BD91C38BC49F94B6756E6B6D57A
[alias]
### 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:
@unnamedd
unnamedd / RemoveAccents.m
Last active January 18, 2021 23:51
Remove accents from words using Objective-C
#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);
}
@unnamedd
unnamedd / .liftoffrc
Created May 18, 2015 14:49
my personal liftoffrc to create new xcode projects
############################################################################
# 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