This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# default commands for osx to make it nicer to work with | |
########################## | |
# General UI?UX settings # | |
########################## | |
# Set hostname (hex of MVB9APPS) | |
sudo scutil --set ComputerName "0x4d56423941505053" | |
sudo scutil --set HostName "0x4d56423941505053" |
Notes:
- Adding a link does not equal an endorsement of any kind.
- Ordered by year and discovery date.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ExtractTextPlugin = require("extract-text-webpack-plugin"); | |
const path = require("path"); | |
const glob = require("glob-all"); | |
const PurgecssPlugin = require("purgecss-webpack-plugin"); | |
/** | |
* Custom PurgeCSS Extractor | |
* https://github.com/FullHuman/purgecss | |
* https://github.com/FullHuman/purgecss-webpack-plugin | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Standard Smooth scroll JS - I know kinda verbose D.S. | |
(function() { | |
'use strict'; | |
// Feature Test | |
if ('querySelector' in document && 'addEventListener' in window && Array.prototype.forEach) { | |
// Function to animate the scroll | |
var smoothScroll = function(anchor, duration) { | |
// Calculate how far and how fast to scroll | |
var startLocation = window.pageYOffset; | |
var endLocation = anchor.offsetTop; |
I use a Mac with hugo
, and have some zsh
functions in my .zshrc
file, to make my life easier.
I have a bunch of functions for running hugo server
with different ports to keep the sites out of each other's hair. Then I have some functions for generating the sites and pushing to production.
Once you have the functions written up, you can just execute hugoserver-1
to start the local server on port 1377, in the case below, and ctrl-c to stop it. And hugodeploy-1
to generate and push to your web server via rsync
.
The sample below is to make it easy to understand the gist (get it?). The ugly truth is here:
https://github.com/RickCogley/dotfiles/blob/master/zsh/zshrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Highlight a recommended option, | |
2. Allow users to switch currency (€/$/£) | |
3. Allow users to switch pricing monthly/yearly | |
4. Keep the entire pricing plan area clickable | |
5. Use slider to calculate how much a user would save | |
6. Provide free first month for good engagement | |
7. Prominently highlight testimonials prominently | |
8. Repeating call to action on top and bottom | |
9. Sell benefits instead of features | |
10. Indicate that users can cancel any time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* breakpoints */ | |
:root { /* px size at 16px base font size */ | |
@custom-media --xs (width < 20em); /* 320px */ | |
@custom-media --s (width < 28em); /* 448px */ | |
@custom-media --m (width < 48em); /* 768px */ | |
@custom-media --l (width < 64em); /* 1024px */ | |
@custom-media --xl (width < 80em); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://codepen.io/cmykw/pen/gemxJm | |
// layout | |
<nav/> | |
// style | |
<style> | |
body { min-height: 200vh; } | |
nav { |
- Copy-paste to split book into separate chapter files (also see split.sh)
- Add non-breaking space in range of numbers
- Fix inline spans broken by a space after a word before the closing
*
- Remove image width and height inherited from images in docx
- Wrap all images in an Electric Book figure blockquote
- Simplify indentation in lists by reducing space after list marker to one space
- [Remove non-kramdown markdown
^
around superscripts after numbers](#remove-non-kramdown-markdown--around-superscripts-a