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
# ------------------------------------------------------------------- | |
# edit zsh configs | |
# ------------------------------------------------------------------- | |
alias aliases="code ~/.zsh/aliases.zsh" | |
alias config="code ~/.zsh/aliases.zsh" | |
alias zshconfig="code ~/.zshrc && reload" | |
alias reload=". ~/.zshrc && echo 'ZSH config reloaded from ~/.zshrc'" | |
#alias httpd="code /usr/local/etc/httpd/httpd.conf" | |
#alias vhosts="code /usr/local/etc/httpd/extra/httpd-vhosts.conf" | |
#alias vhosts="subl /Users/bronze/Sites/httpd-vhosts.conf" |
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://laurakalbag.com/processing-responsive-images-with-hugo/ */}} | |
{{/* https://dev.to/stereobooster/responsive-images-for-hugo-dn9 */}} | |
{{/* get file that matches the filename as specified as src="" in shortcode */}} | |
{{ $src := .Page.Resources.GetMatch (printf "*%s*" (.Get "src")) }} | |
{{/* set image sizes, these are hardcoded for now, x dictates that images are resized to this width */}} | |
{{ $lqipw := default "20x" }} | |
{{ $tinyw := default "640x" }} | |
{{ $smallw := default "960x" }} |
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
// dont really know if it makes such a difference but strict kept giving me warnings on Atom | |
/* jshint strict: false */ | |
// 'use strict'; | |
var gulp = require('gulp'), | |
fs = require('fs'), | |
hash = require('gulp-hash'), | |
critical = require('critical'); | |
// load plugins |
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
// GeoChart from https://google-developers.appspot.com/chart/interactive/docs/gallery/geochart | |
// Try out by pasting code into: https://code.google.com/apis/ajax/playground/?type=visualization#geo_chart | |
function drawVisualization() { | |
var data = google.visualization.arrayToDataTable([ | |
['State', 'Foo Factor'], | |
['BR-RJ', 1.2], | |
['BR-SP', 1], | |
['BR-MG', 1], |
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
Options +FollowSymlinks | |
RewriteEngine on | |
# No intersticial for direct reference and self-reference | |
RewriteCond %{HTTP_REFERER} !^$ | |
RewriteCond %{HTTP_REFERER} !^http(s)?://box.leebyron.com/.*$ [NC] | |
# Add a line item for every website you don't need an intersticial for | |
# I've added my own website, gmail and facebook | |
RewriteCond %{HTTP_REFERER} !^http(s)?://([^\.]*.)?leebyron.com/.*$ [NC] | |
RewriteCond %{HTTP_REFERER} !^http(s)?://mail.google.com/.*$ [NC] |
NewerOlder