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 | |
/* remove avada required plugin activation notice */ | |
add_action( 'init', 'op_avada_child_init', 11 ); | |
function op_avada_child_init() { | |
remove_action( 'admin_notices', array( Avada_TGM_Plugin_Activation::$instance, 'notices' ) ); | |
} |
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
var defaultSides = 10; | |
var stats = Array.apply(null, { length: defaultSides }).map( | |
function() { | |
return 100; | |
} | |
); |
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 points = {a: -1, b: -1, c: -1, d: -1, e: -1, f: 3, z:4} | |
Object.keys(points).filter(key => ~'abcde'.indexOf(key)) |