Skip to content

Instantly share code, notes, and snippets.

View mweslander's full-sized avatar

Michael Weslander mweslander

View GitHub Profile
// Use in console
(async function () {
let fileNamePrefix = 'fraction';
let images = [].slice.call(document.querySelectorAll('img'));
console.log(`TOTAL # OF IMAGES => ${images.length}`);
for (let i = 0; i < images.length; i++) {
try {
/* ==========================================================================
* Reset
* ========================================================================== */
* {
appearance: none;
background-color: transparent;
background-repeat: no-repeat;
border: 0;
border-radius: 0;
font-family: inherit;
/* ==========================================================================
* Global
* ========================================================================== */
@import "_fonts";
@import "_mixins";
@import "_wordpress-wysiwyg";
* {
border: 0;
/* ==========================================================================
* Reset
* ========================================================================== */
html {
box-sizing: border-box;
position: relative;
}
* {
/* ==========================================================================
* Reset
* ========================================================================== */
* {
border: 0;
margin: 0;
padding: 0;
-webkit-tap-highlight-color: transparent;
}
@mweslander
mweslander / settings.json
Created September 20, 2019 15:44
Override theme comment colors in vs code
{
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": [
"comment",
"comment storage.type",
"comment variable",
"comment support.variable",
"comment support.class",
@mweslander
mweslander / script.js
Created April 8, 2019 18:13 — forked from jmolivas/script.js
Trigger Netlify build from a Google Spreadsheet
# From your Google Spreadsheet, select the menu item Tools > Script editor.
# Copy and paste this code.
# Replace uuid with the build_hooks uuid from your Netlify project.
function onOpen() {
SpreadsheetApp.getUi()
.createMenu('Scripts')
.addItem('Build', 'build')
.addToUi();
}