Skip to content

Instantly share code, notes, and snippets.

View sskylar's full-sized avatar
lgtm

Skylar SC sskylar

lgtm
View GitHub Profile
var worldmap = 'M92.92,87.75C92.76,87.79,92.7,87.81,92.92,87.75L92.92,87.75z M171.32,86.32C171.38,86.46,171.38,86.45,171.32,86.32 L171.32,86.32z M170.99,86.48c0.56,0.3,0.79,1.22,0.48,1.9c-0.08-0.17-0.18-0.39-0.25-0.56c-0.05,0.34-0.19,0.63-0.19,1 c-0.87-0.2-0.7-1.65-1.45-0.99c0.05-0.03-0.1-0.2-0.14-0.21c-0.13,0.14-0.29,0.35-0.37,0.44c0.05-0.56,0.8-1.37,0.98-0.61 C170.55,87.03,170.89,87.06,170.99,86.48L170.99,86.48z M168.96,88.24C169.26,88.3,169.22,88.29,168.96,88.24L168.96,88.24z M168.46,88.67C168.65,88.61,168.81,88.57,168.46,88.67L168.46,88.67z M171,89.88C171.12,90.07,171.14,90.1,171,89.88L171,89.88z M171.75,89.42C171.8,89.62,171.85,89.82,171.75,89.42L171.75,89.42z M172.76,90.48c-0.04,0.16,0.18,0.27-0.12,0.34 C172.54,90.59,172.72,90.62,172.76,90.48L172.76,90.48z M158.84,91.2C158.57,91.15,158.78,91.19,158.84,91.2L158.84,91.2z M157.54,90.99C157.4,90.73,157.46,90.84,157.54,90.99L157.54,90.99z M157.74,91.05C157.99,91.2,158.06,91.23,157.74,91.05 L157.74,91.05z M159.15,91.34C159.05,91.47,159.08,91.43,159.15,91.34L1
@sskylar
sskylar / _config.yml
Created November 1, 2018 16:25
Config Siteleaf to preview/publish to a subdirectory
---
baseurl: ""
permalink: "/skoolbag/posts/:slug/"
collections:
posts:
title: Posts
output: true
uploads:
title: Uploads
output: true
@sskylar
sskylar / alt_tag_example.markdown
Last active June 8, 2018 16:44
Image alt tags with Siteleaf metadata
title assets
Metadata alt tag example
image caption
/uploads/coffee-dof.jpg
4 bottles of coffee.
@sskylar
sskylar / netscape-bookmark-file.html
Created May 15, 2018 20:12
Dropmark-friendly import file in the Netscape Bookmark File format https://tools.dropmark.com/import
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Dropmark Import</TITLE>
<H1>Your Bookmarks</H1>
<!-- Minimum requirements (edit below) -->
<H3>Collection One</H1>
<DL>
<DT><A HREF="https://www.google.com">Google</A>

Keybase proof

I hereby claim:

  • I am sskylar on github.
  • I am sskylar (https://keybase.io/sskylar) on keybase.
  • I have a public key ASDBOjBd1pq7lf3rladybOLySqiuDhbkLTL4icoScH-mgAo

To claim this, I am signing this object:

@sskylar
sskylar / Gemfile
Created January 31, 2018 23:28
Use Redcarpet instead of Kramdown (default) for Markdown processing in Jekyll
source 'http://rubygems.org'
gem 'jekyll'
group :jekyll_plugins do
gem 'redcarpet'
end
@sskylar
sskylar / commit_activity_stats.rb
Created December 20, 2017 20:59
Count commits to all repos in GitHub over the past year
require 'octokit'
access_token = '<your token here>'
whitelist_owners = %w(dropmark siteleaf oakstudios)
Octokit.auto_paginate = true
client = Octokit::Client.new access_token: access_token
total = client.repos.map do |repo|
@sskylar
sskylar / lentil-nut-loaf.md
Last active November 22, 2021 19:51
Holiday Recipes

Festive Lentil and Nut Loaf

image

Serves 6-8

Ingredients

@sskylar
sskylar / uploads.html
Last active November 24, 2017 17:26
Loop through Uploads in Siteleaf (or any files in a Jekyll collection)
---
---
{% assign collection = site.collections | where: 'label', 'uploads' | first %}
{% for file in collection.files %}
<li><img src="/uploads/{{ file.name }}">
{% endfor %}
@sskylar
sskylar / _config.yml
Created October 19, 2017 19:34
Add helper/description text next to a custom Jekyll field in Siteleaf
---
defaults:
- scope:
path: ''
type: posts # change scope type here
values:
header_image: "Should be 800x200 (JPG)"