Skip to content

Instantly share code, notes, and snippets.

@icandeveloper
icandeveloper / 0_reuse_code.js
Created May 11, 2016 14:44
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@icandeveloper
icandeveloper / gist:c6c54761ab92f5fa68226057d3c20dda
Last active May 10, 2016 08:55
Wordpress | Find/Replace database
UPDATE `wp_postmeta` SET `meta_value` = replace(`meta_value`,'[FIND]','[REPLACE]');
UPDATE `wp_posts` SET `post_content` = replace(`post_content`,'[FIND]','[REPLACE]');
UPDATE `wp_posts` SET `guid` = replace(`guid`,'[FIND]','[REPLACE]');
@icandeveloper
icandeveloper / gist:9ec13c2ddf673a41bfed
Last active October 29, 2015 16:06
Wordpress (Sage) Bootstrap (97% pure Less) Menu (inc Mega Menu)
<header>
<div class="container">
<nav class="navbar navbar-default">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#main-nav" aria-expanded="false" aria-controls="main-nav">