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
<?php | |
/* | |
Background: My company post type needed a filter added via the 'restrict_manage_posts' action, and I needed to modify the wp_dropdown_categories to output the taxonomy slug into the <option value="..."> instead of the taxonomy ID. The taxonomy being 'industry'. | |
The SH_Walker_TaxonomyDropdown() can be found here: https://gist.github.com/2902509 | |
*/ | |
function restrict_listings_by_taxonomy() { | |
global $typenow; | |
global $wp_query; |
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
/* | |
Content Script | |
*/ | |
( | |
function (document, window) | |
{ | |
var __dataTree = []; |
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
import luxe.Input; | |
import luxe.Sprite; | |
import luxe.Color; | |
import luxe.Component; | |
import luxe.tween.Actuate; | |
import luxe.Vector; | |
class HoverAlpha extends Component { |
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
r = reversed(s) | |
for i in r: | |
print(i, end='') | |
for i in r: | |
print(i, end='') | |
# Second loop not printing? |