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
| class custom_sub_walker extends Walker_Nav_Menu { | |
| public function start_lvl( &$output, $depth = 0, $args = array() ) { | |
| $indent = str_repeat( "\t", $depth ); | |
| $output .= "\n$indent<ul role=\"menu\" class=\" dropdown-menu\">\n"; | |
| } | |
| public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) { | |
| $indent = ( $depth ) ? str_repeat( "\t", $depth ) : ''; |
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
| # 2048 in Python 3 for Beginners (Alpha Version) | |
| # By @TokyoEdTech | |
| import turtle | |
| import random | |
| # Set up the screen | |
| wn = turtle.Screen() | |
| wn.title("2048 by @TokyoEdTech") | |
| wn.bgcolor("black") |
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
| # Want to show hidden files and folders in your TextMate project drawer? Simple, just modify the file and folder patterns in TextMate's preferences. | |
| # Instructions: | |
| # Go to TextMate > Preferences... | |
| # Click Advanced | |
| # Select Folder References | |
| # Replace the following: | |
| # File Pattern |