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 | |
| header('Content-Encoding: deflate' ); | |
| echo gzdeflate( 'this is just a test!' ); | |
| ?> |
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
| <table class="table table-striped table-bordered table-condensed"> | |
| <thead> | |
| <tr> | |
| <th>Service</th> | |
| <th>Account Number</th> | |
| <th>Invoice Number</th> | |
| <th>Report Date</th> | |
| <th>Customer Name</th> | |
| <th>Invoice Amount</th> | |
| <th>Deduct</th> |
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 { | |
| include listen_80; | |
| server_name vhost.com; | |
| include /etc/nginx/fastcgi_params; | |
| access_log /home/chris/public_html/vhost.com/logs/access.log; | |
| error_log /home/chris/public_html/vhost.com/logs/error.log; | |
| root /home/chris/public_html/vhost.com/public; |
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 | |
| /** | |
| * @package Habari | |
| * | |
| */ | |
| /** | |
| * Habari Theme Class | |
| * | |
| * The Theme class is the behind-the-scenes representation of |
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 Github_Packager { | |
| private static $api_endpoint = 'http://github.com/api/v2/json/'; | |
| private static $temp_path = './temp/'; | |
| public static function list_branches ( $addon_name, $with_commits = false ) { | |
| $url = self::$api_endpoint . 'repos/show/habari-extras/' . $addon_name . '/branches'; |
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 Model_Browser extends Model { | |
| public function list_schemas ( $like = null ) { | |
| $query = \DB::select( array( 'table_schem', 'schema' ) )->from( 'sysibm.sqltables' ); | |
| if ( $like != null ) { | |
| $query->where( 'table_schem', 'like', $like ); |
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 | |
| foreach ( $posts as $post ) { | |
| // save the post for the area to use | |
| $theme->post = $post; | |
| echo $theme->area( 'foo' ); | |
| } |
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 Foo extends Theme { | |
| public function act_display_home ( $user_filters = array() ) { | |
| $user_filters['content_type'] = Post::type( 'foo' ); | |
| parent::act_display_home( $user_filters ); | |
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 | |
| private function add_external_assets ( ) { | |
| $url = 'http://twitter.github.com/bootstrap/1.3.0/bootstrap.min.css'; | |
| try { | |
| $content = Cache::get( md5( $url ) ); | |
| } | |
| catch ( CacheNotFoundException $e ) { |
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"?> | |
| <configuration> | |
| <system.webServer> | |
| <rewrite> | |
| <rules> | |
| <rule name="Match Valid Files" stopProcessing="true"> | |
| <match url="^.*$" /> | |
| <conditions logicalGrouping="MatchAny"> | |
| <add input="{REQUEST_FILENAME}" matchType="IsFile" pattern="" ignoreCase="false" /> | |
| <add input="{REQUEST_FILENAME}" matchType="IsDirectory" pattern="" ignoreCase="false" /> |