This file contains 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
console.time("filter"); | |
let cat = ([].concat.apply([], this.transits.map(item => item.categories))).filter((value, index, self) => self.indexOf(value) === index); | |
console.timeEnd("filter"); | |
console.time("set"); | |
let cat2 = [...new Set([].concat.apply([], this.transits.map(item => item.categories)))]; | |
console.timeEnd("set"); | |
console.time("flat") | |
let cat3 = [...new Set(this.transits.map(item => item.categories).flat())]; |
This file contains 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
// Replace bundled WP version of jQuery with the latest one | |
function replace_core_jquery_version() { | |
if (!is_admin()) { | |
wp_deregister_script( 'jquery-core' ); | |
wp_register_script( 'jquery-core', "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js", array(), '3.2.1' ); | |
wp_deregister_script( 'jquery-migrate' ); | |
wp_register_script( 'jquery-migrate', "https://cdnjs.cloudflare.com/ajax/libs/jquery-migrate/3.0.1/jquery-migrate.min.js", array(), '3.0.1' ); | |
} | |
} | |
add_action('init', 'replace_core_jquery_version' ); |
This file contains 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
<title>Keygen & ScriptDecryptor</title> | |
<form method="post"> | |
<input type="file" name="path"><br> | |
<input type="submit" name="decrypt" value="Decrypt"> | |
</form> | |
<form method="post"> | |
<input type="file" name="path"><br> | |
<input type="submit" name="encrypt" value="Encrypt"> | |
</form> | |
<form method="post"> |