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($){ | |
| $.fn.myName = function() { | |
| return this.each(function() { | |
| var t = $(this); | |
| }); |
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
| NSString *documents = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0]; |
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
| git config --global alias.ci commit | |
| git config --global alias.st status | |
| git config --global alias.p push | |
| git config --global alias.co checkout | |
| git config --global color.branch auto | |
| git config --global color.diff auto | |
| git config --global color.interactive auto | |
| git config --global color.status auto | |
| git config --global color.ui true |
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
| """ | |
| Author: Tudor Munteanu | |
| License: CC | |
| """ | |
| import os | |
| import urllib | |
| def my_func(): | |
| pass |
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
| Server - private key | |
| - can decrypt | |
| - can sign | |
| Client - public | |
| - can encrypt | |
| - can check signature | |
| Encryption with Stream ciphers - AES 256 |
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
| 0x002:/some/folder# find . -name 'thumb_*' | 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
| // FileManagerHelper.h | |
| #import <Foundation/Foundation.h> | |
| @interface FileManagerHelper : NSObject | |
| + (void) cleanDocumentsDir; | |
| + (void) changeCapitalJPGNames; | |
| // |
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
| UIAlertView *alert = [[[UIAlertView alloc] initWithTitle:@"Opened from URL" | |
| message:@"App opened trough URL" | |
| delegate:self | |
| cancelButtonTitle:@"Ok" | |
| otherButtonTitles:nil] autorelease]; | |
| // optional - add more buttons: | |
| [alert addButtonWithTitle:@"Yes"]; | |
| [alert show]; | |
| // |
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
| // | |
| // Non-thread safe | |
| // | |
| @interface MySingleton : NSObject | |
| { | |
| } | |
| + (MySingleton *)sharedSingleton; | |
| @end |
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
| [[UIApplication sharedApplication] setIdleTimerDisabled:YES]; |