Skip to content

Instantly share code, notes, and snippets.

View devnix's full-sized avatar
🐢

Pablo Largo Mohedano devnix

🐢
View GitHub Profile
@devnix
devnix / README.md
Last active August 29, 2015 14:20
Wordpress 4.2.1 hotfix (put this file inside wp-includes)

Wordpress 4.2.1 hotfix

Overwrite your bad ol' wp-includes/formatting.php with this file to avoid that annoying PHP warning. If you prefer to fix it yourself instead downloading a 4.3k php file (which is pretty logical), go to the line 4144 of your local Wordpress installation, and replace this:

if ( SCRIPT_DEBUG ) {

with this:

@devnix
devnix / media-queries.css
Last active August 29, 2015 14:19
Bootstrap 3 CSS media queries
/* Reference: http://goo.gl/6ise9j */
/* col-xs */
@media(max-width:767px) {
}
/* col-sm */
@media(min-width:768px) {
@devnix
devnix / batman.js
Created October 2, 2014 18:39
Gotham needs a hero...
var string = "abc";
var number = string++;
number = number.toString();
var output = '';
var i = 0;
while (i <= 16) {
output = output + number;
i++;
}