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
#!/usr/bin/env ruby | |
# ********************************************* | |
# Jekyll Post Generator Awesomeness | |
# by Cody Krieger (http://codykrieger.com) | |
# ********************************************* | |
# ********************************************* | |
# Modified by Tim Smith (http://ttimsmith.com) | |
# Originally created as a command line tool but |
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
# Path to your oh-my-zsh installation. | |
export ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="agnoster" | |
# Uncomment the following line to use case-sensitive completion. |
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
#!/usr/bin/env ruby | |
message_file = ARGV[0] | |
original_message = File.read(message_file) | |
current_branch = `git rev-parse --abbrev-ref HEAD` | |
story_number_regex = /[a-zA-Z]+-[0-9]+/ | |
regex_match = current_branch.match(story_number_regex) | |
message_match = original_message.match(story_number_regex) |
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
require 'fileutils' | |
# An OS X System Service for quickly filing image files to a Jekyll blog folder, | |
# putting Markdown links to the files on the clipboard. | |
# Copyright Brett Terpstra 2013 | |
# Config | |
# ====== | |
# Where to store the images | |
base_path = '~/Projects/theboldreport.net/uploads/' |
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
/** | |
* Syntax highlighting | |
* Colors from SublimeText theme "Spacegray" | |
* https://github.com/kkga/spacegray | |
*/ | |
.highlight { | |
background-color: #343d46; | |
color: white; |
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
<style type="text/css"> | |
.photos { | |
display: grid; | |
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); | |
grid-auto-rows: minmax(160px, 1fr); | |
grid-gap: 1rem; | |
margin-top: 2rem; | |
} | |
.photo { |
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
<?php | |
add_filter( 'allowed_block_types_all', $n( 'allowed_block_types_all' ) ); | |
/** | |
* Allowlist of blocks in the Gutenberg editor. | |
* | |
* @param array $allowed_blocks List of blocks that are allowed | |
* @return array Allowed list of blocks | |
*/ |
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
.wrapper { | |
margin-left: auto; | |
margin-right: auto; | |
max-width: var(); | |
padding-left: var(); | |
padding-right: var(); | |
} | |
.wrapper--large { | |
max-width: var(); |
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
/* | |
* Grid | |
* | |
*/ | |
.grid { | |
--grid-columns:; | |
--grid-gutter:; | |
align-items: start; |