Skip to content

Instantly share code, notes, and snippets.

View ivanmendoza's full-sized avatar

Iván ivanmendoza

View GitHub Profile
@ivanmendoza
ivanmendoza / open-comments.sql
Created July 5, 2013 05:56
Wordpress - Open comments and pings
UPDATE wp_posts SET comment_status = 'open' WHERE comment_status != 'open';
UPDATE wp_posts SET ping_status = 'open' WHERE ping_status != 'open';
@ivanmendoza
ivanmendoza / style-test.php
Created September 17, 2013 05:22
Demo page to test styles. Gets dummy content from loripsum.net API.
<!DOCTYPE html>
<head>
<title>Demo</title>
<meta charset="utf-8" />
</head>
<body>
<h1>Heading H1</h1>
<h2>Heading H2</h2>
<h3>Heading H3</h3>
<h4>Heading H4</h4>
@ivanmendoza
ivanmendoza / 0_reuse_code.js
Last active August 29, 2015 14:17
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