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 | |
if( !function_exists( 'wp_get_available_translations') ) | |
require_once ABSPATH . 'wp-admin/includes/translation-install.php'; | |
$deepl = [ | |
"BG", "CS", "DA", "DE", "EL", "ES", "ET", "FI", "FR", "HU", | |
"IT", "JA", "LT", "LV", "NL", "PL", "RO", "RU", "SK", "SL", "SV", "ZH", | |
"EN-GB", "EN-US", | |
"PT-PT", "PT-BR" |
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
<html> | |
<head> | |
<title>Element to Zen</title> | |
<meta charset="UTF-8"> | |
<script> | |
function element_to_zen( element ) { | |
let response_map = [], | |
_default_mapping = { | |
priority : 5, | |
parse : function( nodeName, nodeValue ) { |
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
let words = ' yes\n' + | |
' no\n' + | |
' maybe\n' + | |
' false\n' + | |
' true\n'; | |
words = words.split( "\n" ); | |
let c = {}; |
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
### Keybase proof | |
I hereby claim: | |
* I am rusuandreirobert on github. | |
* I am rusuandreirobert (https://keybase.io/rusuandreirobert) on keybase. | |
* I have a public key ASB0B8oUc5Wo7IxP73klokMNwXWLHZVYFq109NMFhu9Mrgo | |
To claim this, I am signing this object: |
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
{ | |
"Pacific/Midway" : "Midway Island, Samoa", | |
"Pacific/Pago_Pago" : "Pago Pago", | |
"Pacific/Honolulu" : "Hawaii", | |
"America/Anchorage" : "Alaska", | |
"America/Vancouver" : "Vancouver", | |
"America/Los_Angeles" : "Pacific Time (US and Canada)", | |
"America/Tijuana" : "Tijuana", | |
"America/Edmonton" : "Edmonton", | |
"America/Denver" : "Mountain Time (US and Canada)", |
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 | |
add_action( 'init', function() { | |
if( is_admin() ) | |
return; | |
if( is_user_logged_in() ) | |
return; | |
$trimmed_url = trim( get_site_url(), '/' ); |
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
// Code from article here : https://qntm.org/clean | |
package literatePrimes; | |
import java.util.ArrayList; | |
public class PrimeGenerator { | |
private static int[] primes; | |
private static ArrayList<Integer> multiplesOfPrimeFactors; | |
protected static int[] generate(int n) { |
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 | |
add_filter( 'pre_user_login', function( $user_login ) { | |
if( strpos( trim( $user_login ), ' ' ) !== false ) { | |
add_filter( 'gettext', function( $translation, $text ) { | |
if( $text === 'Cannot create a user with an empty login name.' ) | |
return __( "You're not allowed to have spaces in your username" ); | |
return $translation; | |
}, 20, 2 ); |
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 | |
add_action('init', function () { | |
add_shortcode('ec_center', function ( $atts, $content ) { | |
$response = '<div class="wpep-center-section">'; | |
$response .= do_shortcode($content); | |
$response .= '</div>'; | |
return $response; | |
}); |
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 WPEP_Integration_Email_Marketing_Coordinator_Administration { | |
/** | |
* @var $controller WPEP_Integration_Email_Marketing | |
*/ | |
protected $_controller; | |
/** |