Skip to content

Instantly share code, notes, and snippets.

@stugoo
stugoo / console.js
Created February 16, 2015 11:04
prevent console errors in old IE
// Avoid `console` errors in browsers that lack a console.
(function() {
var method;
var noop = function noop() {};
var methods = [
'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd',
'timeStamp', 'trace', 'warn'
];
update wp_options set option_value = replace(option_value,'string_to_find','string_to_replace');
update wp_posts set guid = replace(guid,'string_to_find','string_to_replace');
@stugoo
stugoo / media-queries.scss
Created January 8, 2019 12:50
Media Queries scss
$base-font-size: 16;
// Major Breakpoints
$breakpoint__small: 480;
$breakpoint__medium: 960;
$breakpoint__large: 1280;
$breakpoint__sitemax: 1440;
/* ==========================================================================
= Media Queries
@stugoo
stugoo / typography.scss
Created January 9, 2019 12:24
SCSS heading declarations
@import './src/library/core/variables';
@import './src/library/mixins/media-queries';
@import './src/library/mixins/rems';
@mixin text-light() {
font-family: $font__base;
font-weight: lighter;
font-style: normal;
}
@mixin text-regular() {
@stugoo
stugoo / editPage.js
Created June 5, 2019 10:03 — forked from pmarquees/editPage.js
Edit page (bookmarklet)
javascript:document.body.contentEditable = 'true'; document.designMode='on'; void 0