Skip to content

Instantly share code, notes, and snippets.

View Ticolyle's full-sized avatar

Lyle Ticolyle

View GitHub Profile
@Ticolyle
Ticolyle / scrape_entire_website_with_wget.sh
Created December 10, 2024 16:29 — forked from pe3/scrape_entire_website_with_wget.sh
Scrape An Entire Website with wget
this worked very nice for a single page site
```
wget \
--recursive \
--page-requisites \
--convert-links \
[website]
```
wget options
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';
@Ticolyle
Ticolyle / craft_state_region.txt
Created December 11, 2018 18:52 — forked from bransinanderson/craft_state_region.txt
Craft CMS Field Dropdown State/Region
{"options":[{"label":"Alabama","value":"AL","default":""},{"label":"Alaska","value":"AK","default":""},{"label":"Arizona","value":"AZ","default":""},{"label":"Arkansas","value":"AR","default":""},{"label":"California","value":"CA","default":""},{"label":"Colorado","value":"CO","default":""},{"label":"Connecticut","value":"CT","default":""},{"label":"Delaware","value":"DE","default":""},{"label":"District of Columbia","value":"DC","default":""},{"label":"Florida","value":"FL","default":""},{"label":"Georgia","value":"GA","default":""},{"label":"Hawaii","value":"HI","default":""},{"label":"Idaho","value":"ID","default":""},{"label":"Illinois","value":"IL","default":""},{"label":"Indiana","value":"IN","default":""},{"label":"Iowa","value":"IA","default":""},{"label":"Kansas","value":"KS","default":""},{"label":"Kentucky","value":"KY","default":""},{"label":"Louisiana","value":"LA","default":""},{"label":"Maine","value":"ME","default":""},{"label":"Maryland","value":"MD","default":""},{"label":"Massachusetts","va
@Ticolyle
Ticolyle / SCSS.md
Created June 18, 2018 17:10 — forked from jareware/SCSS.md
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do

⇐ back to the gist-blog at jrw.fi

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso

@Ticolyle
Ticolyle / reclaimWindows10.ps1
Created January 11, 2017 20:48 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Fork via https://github.com/Disassembler0 (different defaults)
##########
# Win10 Initial Setup Script
# Author: Disassembler <[email protected]>
# Version: 1.7, 2016-08-15
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/
# THIS IS A PERSONALIZED VERSION
# This script leaves more MS defaults on, including MS security features.
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1
@Ticolyle
Ticolyle / Caddis-Lewis
Last active December 21, 2016 20:00
Slack Themes
Caddis:
#353942,#F56E4F,#63c9e4,#FFFFFF,#63C9E4,#f5f5f5,#93ca5b,#f56e4f
@Ticolyle
Ticolyle / img.html
Created December 15, 2016 22:33 — forked from brettburwell/img.html
Craft macro to centralize the markup and config for responsive images
{# ================================================================== #}
{# ================================================================== #}
{# Responsive Images
{# ================================================================== #}
{# ================================================================== #}
{#
{% import '_macros/img' as macroImg %}
Macro to centralize the markup and config for responsive images.
@Ticolyle
Ticolyle / notes.md
Last active December 15, 2016 22:30
Craft CMS macros as php files

I’ve taken to moving my macro configuration into a php config file, and then {% set config = craft.config.get('configValue', 'configFile') %} Makes for a more reusable macro, and more commentable config.

the twig macro loads the php config file instead of {% set config = {…super complicated thing…} %} You put the super complicated thing in php where it is easier to express

craft.config.get('configValue', 'configFile') doesn’t need configFile to be an actual plugin

in /craft/config/configFile.php - and it looks like all the other ones - multiple environments, etc.

@Ticolyle
Ticolyle / module.json
Created August 30, 2016 21:23
Wee sticky module
{
"name": "wee-sticky",
"version": "0.2.0",
"description": "Make elements sticky based on a certain scroll point.",
"homepage": "https://caddis.co",
"author": "Ryan Payne - Caddis",
"autoload": true,
"extension": true,
"data": {},
"style": {
@Ticolyle
Ticolyle / gist:7720459099371f7ddd96ab0e91d106a3
Created August 30, 2016 17:49 — forked from aral/gist:273110ea2965219dce97
A quick hack with a div overlay to stop Mapbox iframe map from breaking the scroll of the page
/*
<iframe id='map' width='100%' height='500px' frameBorder='0' src='https://a.tiles.mapbox.com/v3/laurakalbag.ie85aj18/attribution,zoompan,geocoder,share.html'></iframe>
<!-- This overlay is used to prevent Mapbox from breaking the scroll of the page on touch-enabled devices. -->
<div id="overlay" class="overlay" style="position: relative; width: 100%; height: 511px; margin-top:-511px;">
<img src="" width: 100% height: 500px>
</div>
*/
//