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
[helpers] | |
diff-cmd = /home/wangqingchun/tools/svndiff.sh |
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
{ | |
"config": {}, | |
"repositories": [ | |
{ | |
"type": "composer", | |
"url": "http://pkg.phpcomposer.com/repo/packagist/" | |
}, | |
{ | |
"packagist": false | |
} |
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
pcm.!default { | |
type hw | |
card 1 | |
device 2 | |
} | |
ctl.!default { | |
type hw | |
card 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
func imagePickerControllerDidCancel(picker: UIImagePickerController) { | |
dismissViewControllerAnimated(true, completion: nil) | |
} | |
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 | |
$path1 = 'a/b/c/d/e.png'; | |
$path2 = 'a/b/f/g.png'; | |
function pathfinder($path1, $path2) | |
{ | |
$exploded_path1 = explode(DIRECTORY_SEPARATOR, $path1); | |
$exploded_path2 = explode(DIRECTORY_SEPARATOR, $path2); |
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
Show hidden characters
{ | |
"cmd": ["/usr/local/bin/php", "$file"], | |
"file_regex": "php$", | |
"selector": "source.php" | |
} |
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 | |
class PseudoUserTest extends PHPUnit_Framework_TestCase | |
{ | |
public function invokeMethod(&$object, $methodName, $parameters = array()) | |
{ | |
$reflection = new ReflectionClass(get_class($object)); | |
$method = $reflection->getMethod($methodName); | |
$method->setAccessible(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
#!/bin/sh | |
DATETIME=$(date +%Y%m%d_%H%M) | |
COMMITOR=$(whoami) | |
MESSAGE=$1 | |
echo $DATETIME\_$COMMITOR_\$MESSAGE |
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 { | |
listen 80; | |
root /var/www/yaf.dev/public; | |
index index.php index.html index.htm; | |
server_name yaf.dev www.yaf.dev; | |
if (!-e $request_filename) { |
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
<profile> | |
<id>jdk-1.8</id> | |
<activation> | |
<activeByDefault>true</activeByDefault> | |
<jdk>1.8</jdk> | |
</activation> | |
<properties> | |
<maven.compiler.source>1.8</maven.compiler.source> |