Skip to content

Instantly share code, notes, and snippets.

View panoply's full-sized avatar
🥛
Rich in the hood

ΝΙΚΟΛΑΣ panoply

🥛
Rich in the hood
View GitHub Profile
@panoply
panoply / gulpfile.babel.js
Created April 2, 2019 12:47
Gulp 4 + Jekyll + Rollup + BrowserSync
import spawn from 'cross-spawn'
import browserSync from 'browser-sync'
import del from 'del'
import gulp from 'gulp'
import sass from 'gulp-sass'
import cssnano from 'gulp-cssnano'
import { rollup } from 'rollup'
import buble from 'rollup-plugin-buble'
import nodeResolve from 'rollup-plugin-node-resolve'
import config from './build.config'
@panoply
panoply / overview.md
Created April 8, 2019 15:32
JAM workflow

Brief Overview for Rod

A small rundown of how I develop these sites, hopefully give you a little more insight into the process.

Source Code (Development)

Source code is used to create site code (production). The source code will never be visible to the public and is used in development.

We upload source code to Github.

Site Code (Production)

@panoply
panoply / extensions.yml
Last active April 17, 2019 00:09
VS Code Extensions and Settings
- AdamCaviness.theme-monokai-dark-soda
- alefragnani.project-manager
- attilabuti.vscode-mjml
- be5invis.toml
- bierner.emojisense
- bierner.markdown-preview-github-styles
- christian-kohler.path-intellisense
- cjhowe7.laravel-blade
- CoenraadS.bracket-pair-colorizer
- dbaeumer.vscode-eslint
# Navigation
create_data_file("data/navigation.yml", :yaml,
dato.navigations.each_with_object({}) do |nav, navigation|
navigation[nav[:name].parameterize] = nav[:menu].map do |item| {
title: item.title,
url: item.permalink
}
end
end
)
@panoply
panoply / dato-icons.js
Created April 28, 2019 08:05
DatoCMS Icons SVG Select values
require('dotenv').config() // read the `.env` file for API token
const fs = require('fs')
const path = require('path')
const { SiteClient } = require('datocms-client')
const field = '296844'
const client = new SiteClient(process.env.DATO_API_TOKEN)
const icons = fs
.readdirSync('./source/icons')
@panoply
panoply / settings.json
Created May 7, 2019 15:12
EXTENSIONS BACKUP
{
/* -------------------------------------------- */
/* EDITOR */
/* -------------------------------------------- */
"editor.matchBrackets": false,
"editor.renderWhitespace": "all",
"editor.fontFamily": "Courier New",
"editor.fontSize": 17.60,
"editor.codeLens": true,
"editor.tabSize": 2,
const { src, dest, watch, series, parallel, lastRun } = require('gulp')
const pipeline = require('stream').pipeline
const fs = require('fs')
const sass = require('gulp-sass')
const changed = require('gulp-changed')
const imagemin = require('gulp-imagemin')
const flatten = require('gulp-flatten')
const gulpif = require('gulp-if')
const cssnano = require('gulp-cssnano')
const rename = require('gulp-rename')
module Jekyll
module Filters
def summarize(str, splitstr = /\s*<div id="extended">/)
str.split(splitstr)[0]
end
end
end
/*
PARSE SHOPIFY SECTION
*/
const regex = /(?<=application\/json">\n?)({|\[)([\s\S]+?)(?=<\/)/g
m.request({
url: '/?section_id=1564432230347',
extract: function (xhr) {
@panoply
panoply / equal-width.md
Last active May 9, 2025 17:26
2 column full width table for github markdown

Equal widths

Github markdown full-width 2 column table.