I hereby claim:
- I am gsampaio on github.
- I am gsampaio (https://keybase.io/gsampaio) on keybase.
- I have a public key whose fingerprint is AE5F 724E 291E 7CFA 90CF EA2D 2F3E 6CAB CC18 B3A3
To claim this, I am signing this object:
| extension UIViewController { | |
| @objc func injected() { | |
| for subview in self.view.subviews { | |
| subview.removeFromSuperview() | |
| } | |
| loadView() | |
| viewDidLoad() | |
| } | |
| } |
| #!/usr/bin/env ruby | |
| def check(folder) | |
| swift_files = Dir.glob("#{folder}/**/*").select { |file| file.end_with? "swift" } | |
| fileForPaths = {} | |
| for file in swift_files | |
| fileName = file.split('/').last | |
| # If we find a file with the same name we add the path |
I hereby claim:
To claim this, I am signing this object:
Aqui se encontra a lista de tools que citamos no painel do ultimo CocoaHeads de Campinas (Jul/16). Tentei organizar minamente o que por sessão e esta organização esta sujeita mudanças. Se você tiver alguma duvida ou sugestão deixe um comentario no gist ou me pingue no twitter @gsampaio
| NSInvocation *timerSelectorInvocation = [[NSInvocation alloc] init]; | |
| [timerSelectorInvocation setSelector:@selector(tapRecognizer:)]; | |
| [timerSelectorInvocation setArgument:NULL atIndex:0]; | |
| [NSTimer scheduledTimerWithTimeInterval:2 invocation:timerSelectorInvocation repeats:YES]; |
| tell application "System Events" | |
| set isRunning to (count of (every process whose bundle identifier is "com.Growl.GrowlHelperApp")) > 0 | |
| end tell | |
| if isRunning then | |
| tell application id "com.Growl.GrowlHelperApp" | |
| -- Create the crash notification | |
| set the allNotificationsList to ¬ | |
| {"Xcode Notification"} | |
| /** | |
| * A simple javascript script to get the lastest images from your instagram account. | |
| * Require an app to acess instagram api in order to get the access_token and user_id | |
| * Require jquery for the ajax and dom manipulation | |
| */ | |
| var settings = { | |
| user : 'ENTER_YOUR_USER_ID_HERE', | |
| access_token : 'ENTER_YOUR_USER_ACCESS_TOKEN_HERE' | |
| }; |
| /* | |
| Node filewatch to email module by Guilherme Martinez Sampaio | |
| require npm, daemon and mail | |
| Make sure to change the configuration object | |
| To install: | |
| npm: curl http://npmjs.org/install.sh | sh | |
| daemon: npm install daemon | |
| mail: npm install mail |
| #!/usr/bin/env bash | |
| curl "http://www.ic.unicamp.br/~fkm/disciplinas/mc548/old/2011s2/notas.txt" 2>|/dev/null | grep 73177 | sed s/\,/./ | awk '{OFMT="%.2f";print(((3*(($2)+($3)))+(4*(($4)+($5))))/14)}' |