Getting started:
Related tutorials:
| # create table topics! | |
| create table topics ( | |
| id int primary key auto_increment, | |
| name varchar(256), | |
| parent_id int null, | |
| type smallint not null, | |
| foreign key (parent_id) references topics(id), | |
| index(type) | |
| ); | 
| #include "SDL2/SDL.h" | |
| #include "SDL2/SDL_mixer.h" | |
| static const char *MY_COOL_MP3 = "cool_tunes.mp3"; | |
| int main(int argc, char **argv) { | |
| int result = 0; | |
| int flags = MIX_INIT_MP3; | |
| if (SDL_Init(SDL_INIT_AUDIO) < 0) { | 
| use std::str; | |
| fn main() { | |
| // -- FROM: vec of chars -- | |
| let src1: Vec<char> = vec!['j','{','"','i','m','m','y','"','}']; | |
| // to String | |
| let string1: String = src1.iter().collect::<String>(); | |
| // to str | |
| let str1: &str = &src1.iter().collect::<String>(); | |
| // to vec of byte | 
Getting started:
Related tutorials:
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParentelem.clientLeft, elem.clientTop, elem.clientWidth, elem.clientHeightelem.getClientRects(), elem.getBoundingClientRect()| add_action('wp_loaded','webendev_register_nav_menu_class'); | |
| /** | |
| * New walker class to extend Walker_Nav_Menu | |
| * Dynamically adds child categories to menu | |
| * | |
| */ | |
| function webendev_register_nav_menu_class(){ | |
| class Submenu_Walker_Nav_Menu extends Walker_Nav_Menu { | 
| # ----------------------------------------------------------------- | |
| # .gitignore for WordPress @salcode | |
| # ver 20150227 | |
| # | |
| # From the root of your project run | |
| # curl -O https://gist.github.com/salcode/b515f520d3f8207ecd04/raw/.gitignore | |
| # to download this file | |
| # | |
| # By default all files are ignored. You'll need to whitelist | |
| # any mu-plugins, plugins, or themes you want to include in the repo. | 
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |