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 getSheetDataAsJSON() { | |
| var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(); | |
| var range = sheet.getDataRange(); | |
| var values = range.getValues(); | |
| var headers = values[0]; | |
| var jsonData = []; | |
| for (var i = 1; i < values.length; i++) { | |
| var row = values[i]; | |
| var rowObj = {}; |
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 | |
| function commitsnippet_admin_bar_button($wp_admin_bar){ | |
| $args = [ | |
| "id" => "custom-button-commitsnippet", | |
| "title" => "Commit Active Snippet", | |
| "href" => "#", | |
| "meta" => [ | |
| "class" => "custom-button-class", | |
| "onclick" => "commitSnippet()" |
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 | |
| /* | |
| Plugin Name: Creame Optimize | |
| Plugin URI: https://crea.me/ | |
| Description: Optimizaciones de Creame para mejorar tu <em>site</em>. | |
| Version: 2.1.5 | |
| Author: Creame | |
| Author URI: https://crea.me/ | |
| License: MIT License | |
| */ |
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 | |
| /** | |
| * Plugin disabler for specific URLs | |
| * | |
| * @package Timeular | |
| * @author Julià Mestieri | |
| * @version 0.1.0 | |
| * @license https://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License version 2 (GPLv2) | |
| */ |
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 | |
| function genhash ($url) { | |
| $hash = "Mining PageRank is AGAINST GOOGLE'S TERMS OF SERVICE. Yes, I'm talking to you, scammer."; | |
| $c = 16909125; | |
| $length = strlen($url); | |
| $hashpieces = str_split($hash); | |
| $urlpieces = str_split($url); | |
| for ($d = 0; $d < $length; $d++) { | |
| $c = $c ^ (ord($hashpieces[$d]) ^ ord($urlpieces[$d])); |
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
| upstream php-fpm { | |
| server unix:/var/run/php5-fpm.sock; | |
| } | |
| server { | |
| listen 80; | |
| server_name www.example.com; | |
| rewrite ^ http://example.com$request_uri?; | |
| } |