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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>name</key> | |
| <string>Blackboard</string> | |
| <key>author</key> | |
| <string>Domenico Carbotta</string> | |
| <key>settings</key> | |
| <array> |
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 (factory) { | |
| if (typeof define === 'function' && define.amd) { | |
| define(['jquery'], factory); | |
| } else if (typeof exports === 'object') { | |
| factory(require('jquery')); | |
| } else { | |
| factory(jQuery); | |
| } | |
| }(function ($) { |
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 | |
| namespace Base\Paginator; | |
| class QueryBuilder extends \Phalcon\Paginator\Adapter\QueryBuilder | |
| { | |
| public function getPaginate() | |
| { | |
| // 解决 php5.3 在空记录集时,调用 getPaginate() 方法出错的 bug |
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 | |
| ExtensionsPath="/Applications/Parallels Desktop.app/Contents/Library/Extensions/10.6/" | |
| cd "$ExtensionsPath" | |
| sudo chown -R root:wheel "$ExtensionsPath" | |
| sudo kextload -r . prl_hypervisor.kext | |
| sudo kextload -r . prl_hid_hook.kext | |
| sudo kextload -r . prl_usb_connect.kext |
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 defined('SYSPATH') or die('No direct script access.'); | |
| /** | |
| * 数据库迭代器 | |
| */ | |
| class Database_Iterator implements SeekableIterator, Countable | |
| { | |
| /** | |
| * select 查询语句 | |
| * |
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 | |
| /** | |
| * 支持对多维数组,对象,... 进行编码转换 | |
| * 在不指定来源编码时,由系统自动检测编码类型 | |
| * | |
| * @link http://cn2.php.net/manual/zh/function.mb-detect-encoding.php | |
| * @link http://cn2.php.net/manual/zh/function.mb-detect-order.php | |
| * @param mixed $data 需要转换的数据 | |
| * @param string $to_encoding 目标编码类型 |
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/bash | |
| ################################################ | |
| # | |
| # phpDocumentor install: | |
| # | |
| # pear channel-discover pear.phpdoc.org | |
| # pear install phpdoc/phpDocumentor | |
| # | |
| ################################################ |
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/bash | |
| ### Automatic fixed php coding style ### | |
| bin=/usr/local/bin/php-cs-fixer | |
| # install php-cs-fixer | |
| if [ ! -f $bin ]; then | |
| echo "Preparing to install php-cs-fixer ..." | |
| wget http://cs.sensiolabs.org/get/php-cs-fixer.phar -O $bin |
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 | |
| /** | |
| * 密码 HASH 处理 | |
| */ | |
| class Password | |
| { | |
| /** | |
| * 密码哈希盐模 | |
| * |
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 | |
| use | |
| Phalcon\Mvc\Model, | |
| Phalcon\Mvc\Model\Message, | |
| Phalcon\Db\RawValue; | |
| /** | |
| * 基础 Model 实现 | |
| * |