| ⌘T | go to file |
| ⌘⌃P | go to project |
| ⌘R | go to methods |
| ⌃G | go to line |
| ⌘KB | toggle side bar |
| ⌘⇧P | command prompt |
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
| <?php | |
| /** | |
| * This code is intended to be added to your wp-config.php file just below the top comment block. | |
| * It should replace the existing define('DB_*') statements. You can add or remove sections | |
| * depending on the number of environments you intend to setup. You should change all values of | |
| * DB_NAME, DB_USER, DB_PASSWORD, and DB_HOST for each environment, making them all distinct | |
| * for security purposes. | |
| */ | |
| // determine the current environment |
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
| from os.path import splitext | |
| from django.core.exceptions import ValidationError | |
| from django.utils.translation import ugettext_lazy as _ | |
| from django.template.defaultfilters import filesizeformat | |
| class FileValidator(object): | |
| """ | |
| Validator for files, checking the size, extension and mimetype. |
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
| #!/usr/bin/awk -f | |
| # Convert the "svn log" output into a one liner format, which is easier to grep | |
| # or use in scripts. Pipe "svn log" into this script | |
| # When we get a line that starts with a revision number, put the data in variables | |
| /^r[0-9]+/ { | |
| rev=$1 | |
| user=$3 | |
| date=$5 |
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 urllib2 | |
| def urlencode(s): | |
| return urllib2.quote(s) | |
| def urldecode(s): | |
| return urllib2.unquote(s).decode('utf8') |
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
| Navigation: | |
| cmd-p Goto Anything ('@' for functions, ':' for line number) | |
| cmd-r Function finder | |
| ctl-g Goto line number | |
| cmd-sft-p Command palette | |
| cmd-sft-f Find in Files | |
| cmd-opt-r Toggle regex when finding | |
| cmd-opt-# Columns | |
| ctr-# Switch columns |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 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
| mr Marathi | |
| bs Bosnian | |
| ee_TG Ewe (Togo) | |
| ms Malay | |
| kam_KE Kamba (Kenya) | |
| mt Maltese | |
| ha Hausa | |
| es_HN Spanish (Honduras) | |
| ml_IN Malayalam (India) | |
| ro_MD Romanian (Moldova) |
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 <objc/runtime.h> | |
| #import <UIKit/UIKit.h> | |
| @interface UIWebView (HackishAccessoryHiding) | |
| @property (nonatomic, assign) BOOL hackishlyHidesInputAccessoryView; | |
| @end | |
| @implementation UIWebView (HackishAccessoryHiding) | |
| static const char * const hackishFixClassName = "UIWebBrowserViewMinusAccessoryView"; |
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
| sudo apt-get install rabbitmq-server |