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
package main | |
import ( | |
"encoding/json" | |
"errors" | |
"log" | |
"net/http" | |
"github.com/go-kit/kit/endpoint" | |
"golang.org/x/net/context" |
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 | |
# .git/hooks/pre-commit | |
php ./.git/hooks/rejection_pattern_check.php | |
if test $? -ne 0 | |
then | |
echo "COMMIT REJECTED. Please remove them before commiting OR use --no-verify" | |
exit 1 | |
fi |
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
;;VisualStudio2012 ENCODE Change TO UTF-8 without BOM | |
F12:: | |
send {F7} | |
send {Alt}f | |
send v | |
Sleep 500 | |
send {TAB 2} | |
send {Alt}e | |
send {Down} | |
;; SELECT ENCODE |
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 | |
/** | |
* EMultiSelectWidget | |
* | |
* <a href="http://www.erichynds.com/jquery/jquery-ui-multiselect-widget/">jquery-ui-multiselect-widget</a>を YiiFramework Widget にします。 | |
* | |
* ファイルは次のように配置します。 | |
* <pre> | |
* protected/extensions/emultiselectwidget/EMultiSelectWidget.php | |
* /assets/jquery.multiselect.js |
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 phptal_tales_if( $src, $nothrow ) | |
{ | |
list($if_part, $right) = explode('?', $src, 3); | |
if (strpos($right,'|')) { | |
list($then_part, $else_part) = explode('|', $right, 2); | |
} else { | |
$then_part = $right; | |
$else_part = 'null'; | |
} | |
return '('.phptal_tales($if_part, $nothrow).') ? '.phptal_tales($then_part, $nothrow).' : '.phptal_tales($else_part, $nothrow).''; |
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 PHPTALViewRenderer extends CApplicationComponent implements IViewRenderer | |
{ | |
/** | |
* @var string Path alias to PHPTAL.php | |
*/ | |
public $PHPTALPathAlias = 'application.vendors.PHPTAL'; | |
/** | |
* @var string Template files extension |