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
| Received this error: | |
| uninitialized constant MysqlCompat::MysqlRes | |
| Used this command on snow leopard: | |
| export ARCHFLAGS="-arch i386 -arch x86_64" ; sudo gem install --no-rdoc --no-ri mysql -- --with-mysql-dir=/usr/local --with-mysql-config=/usr/local/mysql/bin/mysql_config |
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> | |
| #import "QuartzCore/QuartzCore.h" | |
| @interface RoundedCorners : NSObject { | |
| } | |
| + (void) setView:(UIView *) view cornerRadius:(float) radius; | |
| @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
| sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config |
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
| set ai | |
| set ts=2 | |
| set bs=1 | |
| syntax enable | |
| set shiftwidth=2 | |
| set shiftround | |
| set expandtab | |
| set smarttab | |
| set pastetoggle=<F2> | |
| set showmatch |
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
| Regex longFormat = new Regex(@"^15-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}$"); | |
| Regex shortFormat = new Regex(@"^5-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}$"); | |
| return (longFormat.IsMatch(str) || shortFormat.IsMatch(str)); |
NewerOlder