Skip to content

Instantly share code, notes, and snippets.

View thexavismith's full-sized avatar
🖖
Live long and prosper

Xavi Smith thexavismith

🖖
Live long and prosper
View GitHub Profile
#!/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
@thexavismith
thexavismith / .zshrc
Last active August 29, 2015 14:10
My .zshrc file
# 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.
#!/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)
@thexavismith
thexavismith / jekyll-image-filer.rb
Last active December 12, 2016 20:03 — forked from ttscoff/Jekyll Filer.rb
OS X System Service script for filing Jekyll images and putting Markdown links on the clipboard
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/'
@thexavismith
thexavismith / _syntax.scss
Created January 10, 2016 08:58 — forked from LeBenLeBen/_syntax.scss
Pygments theme based on SublimeText theme "Spacegray" available here: https://github.com/kkga/spacegray
/**
* Syntax highlighting
* Colors from SublimeText theme "Spacegray"
* https://github.com/kkga/spacegray
*/
.highlight {
background-color: #343d46;
color: white;
@thexavismith
thexavismith / page.html
Last active January 23, 2019 20:12 — forked from iwittkau/page.html
Microgram Light
<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 {
<?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
*/
.wrapper {
margin-left: auto;
margin-right: auto;
max-width: var();
padding-left: var();
padding-right: var();
}
.wrapper--large {
max-width: var();
/*
* Grid
*
*/
.grid {
--grid-columns:;
--grid-gutter:;
align-items: start;