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 <UIKit/UIKit.h> | |
| @interface GestureImageView : UIImageView <UIGestureRecognizerDelegate> { | |
| } | |
| @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
| <?php | |
| require_once 'IO/SWF/Editor.php'; | |
| require_once 'IO/SWF/JPEG.php'; | |
| class File_SWF | |
| { | |
| const SWF_TAG_End = 0; | |
| const SWF_TAG_ShowFrame = 1; |
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 | |
| /* | |
| URLによってコントローラを切り替える | |
| */ | |
| require_once 'Net/URL/Mapper.php'; | |
| $router = Net_URL_Mapper::getInstance(); | |
| $router->connect('/:controller*params', array('controller' => 'default'), array('controller' => '[a-zA-Z_]+')); |
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
| #!/bin/sh | |
| # create project | |
| mkdir $1 | |
| ethna add-project -b $1 site | |
| # move directory | |
| mv $1/site $1/project | |
| mv $1/project/www/* $1/ | |
| rm -r $1/project/www |
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 | |
| require_once 'Diggin/Scraper.php'; | |
| function getDevice($value) | |
| { | |
| preg_match('/([^(]+)(((.*)))?/iu', $value, $match); | |
| $device = $match[1]; | |
| return $device; | |
| } |
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 | |
| require_once 'Diggin/Scraper.php'; | |
| function docomo_device($value) | |
| { | |
| $value = mb_ereg_replace('\n', '', (string)$value); | |
| $value = str_replace(' ', '', $value); | |
| preg_match('/([^(]+)(((.*)))?/iu', $value, $match); |
NewerOlder