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 | |
| $current = get_query_var('cat'); | |
| ?> |
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 | |
| #http://60s.com.vn/image/truyentranh/comic/1zdsssdfxfdyhxjtgiu87xaxz65tx0dfgtthyux761xx/daubeptrudanh/tap9/img/Untitled-24.jpg | |
| hashKey='1zdsssdfxfdyhxjtgiu87xaxz65tx0dfgtthyux761xx' | |
| comicName='daubeptrudanh' | |
| episode=1 | |
| maxEpisode=37 | |
| startPage=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
| function fixHTML5(content) { | |
| var html5element = ['nav','section', 'header','article','footer']; | |
| var attributes = ['id', 'class']; | |
| $.each(html5element, function (index, tag) { | |
| var re = new RegExp('<(\/?)'+tag+'([^>]*)>', 'g'); | |
| content = content.replace(re, '<$1span tag="'+tag+'"$2>'); | |
| }) | |
| $('#context-panel').html(content); |
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 | |
| Route::set('profile', '<username>', array('username' => '([a-zA-Z0-9\-_\.]+)') ) | |
| ->defaults(array( | |
| 'controller' => 'profile', | |
| 'action' => 'index' | |
| )); | |
| Route::set('default', '(<controller>(/<action>))') | |
| ->defaults(array( | |
| 'controller' => 'welcome', |
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 | |
| $username = 'kureikain'; | |
| $apikey = 'xxx'; | |
| class Axcoto_Envato_Api { | |
| public function __construct($attb) { | |
| $this->_attb = $attb; | |
| } | |
| public function fetch($method, $param = 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
| add_filter ('media_row_actions','add_direct_link', 10, 3 ); | |
| function add_direct_link( $actions, $post, $detached ) { | |
| $actions['file_url'] = '<a href="' . wp_get_attachment_url($post->ID) . '">Link</a>'; | |
| return $actions; | |
| } |
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 | |
| include '../secretpaypal/paypal.php'; | |
| $paypal = new SecretPaypal(); | |
| $checkoutLink1 = $paypal->getLink('book1.pdf', | |
| array( | |
| 'amount' => 29.99, | |
| 'item_name' => 'My Book', | |
| 'return' => 'http://house.axcoto.com/example/return.html', | |
| 'cancel_return' => 'http://house.axcoto.com/example/cancel.html', | |
| ) |
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
| 2011/06/19 11:32:58 [emerg] 7210#0: bind() to 0.0.0.0:80 failed (98: Address already in use) | |
| 2011/06/19 11:32:58 [emerg] 7210#0: bind() to 0.0.0.0:80 failed (98: Address already in use) | |
| 2011/06/19 11:32:58 [emerg] 7210#0: bind() to 0.0.0.0:80 failed (98: Address already in use) | |
| 2011/06/19 11:32:58 [emerg] 7210#0: bind() to 0.0.0.0:80 failed (98: Address already in use) | |
| 2011/06/19 11:32:58 [emerg] 7210#0: bind() to 0.0.0.0:80 failed (98: Address already in use) | |
| 2011/06/19 11:32:58 [emerg] 7210#0: still could not bind() | |
| ~ |
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
| [kureikain@axcoto ~]$ /usr/local/apache2/bin/ab -n 10000 -c 20 http://live.axcoto.com/ | |
| This is ApacheBench, Version 2.3 <$Revision: 655654 $> | |
| Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
| Licensed to The Apache Software Foundation, http://www.apache.org/ | |
| Benchmarking live.axcoto.com (be patient) | |
| Completed 1000 requests | |
| Completed 2000 requests | |
| Completed 3000 requests | |
| Completed 4000 requests |
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
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |