Skip to content

Instantly share code, notes, and snippets.

View budparr's full-sized avatar
🎯
Focusing

Bud Parr budparr

🎯
Focusing
View GitHub Profile
@budparr
budparr / gitignore
Created March 8, 2015 22:48
Basic gitignore for Webhook
lib-cov
*.seed
*.log
*.csv
*.dat
*.out
*.pid
*.gz
.DS_Store
.sass-cache
@budparr
budparr / Isotope Issues with Combination Filters and Hash State (solved).markdown
Last active August 29, 2015 14:21
Isotope Issues with Combination Filters and Hash State (solved)
{% comment %}
*
* http://stackoverflow.com/questions/9612235/what-are-some-good-ways-to-implement-breadcrumbs-on-a-jekyll-site
*
{% endcomment %}
<nav class="breadcrumbs" role="menubar" aria-label="breadcrumbs">
<a href="{{ site.url }}">{{ site.data.language.breadcrumb_start }}</a>
{% assign crumbs = page.url | split: '/' %}
{% for crumb in crumbs offset: 1 %}
@budparr
budparr / 0_reuse_code.js
Created October 9, 2013 22:47
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
{{ if raven:success }}
<h1>Thank You!</h1>
{{ first-name }}
{{ last-name }}
{{ from }}
{{ phone }}
{{ book-title }}
{{ book-publisher }}
{{ author-name }}
# Location (from root) to save form submissions
submission_save_path: _content/_forms/
# Prefix your files with a string which are saved in the format:
# YYYY-MM-DD-HH-MM-SS.yaml
file_prefix: book-awards
# Prefix your files with a string which are saved in the format:
# YYYY-MM-DD-HH-MM-SS.yaml
# file_suffix: - {{ name }}
@budparr
budparr / jekyll-liquid-series-list
Created November 27, 2013 03:30
copy of realjenius bit of non-plugin liquid code to generate a series of posts https://github.com/realjenius/site-samples/blob/master/2012-11-03-jekyll-series-list/series.html
{% assign count = '0' %}
{% assign idx = '0' %}
{% for post in site.posts reversed %}
{% if post.series == page.series %}
{% capture count %}{{ count | plus: '1' }}{% endcapture %}
{% if post.url == page.url %}
{% capture idx %}{{count}}{% endcapture %}
{% endif %}
{% endif %}
{% endfor %}
@budparr
budparr / jekyll-collections-config-value.liquid
Last active January 25, 2016 03:26
get a config defined variable for a collectionhttps://github.com/jekyll/jekyll/issues/4392#issuecomment-174369983
If I have a _config.yml with:
collections:
my_collection:
foo: bar
And a template with
```
{% assign collectionName = 'my_collection' %}
@budparr
budparr / index.html
Last active March 24, 2016 01:28
Test block
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>D3 </title>
<style media="screen">
svg {
border: 1px solid #f0f;
}
{% for link_hash in page.links %}
{% for link in link_hash %}
<a href="{{ link[1] }}">{{ link[0] }}</a>
{% endfor %}
{% endfor %}