Skip to content

Instantly share code, notes, and snippets.

@chrissimpkins
chrissimpkins / Dot-loading.markdown
Last active August 29, 2015 14:00
A Pen by Chris Simpkins.
@chrissimpkins
chrissimpkins / gist:2b467ba623cb8dc9170b
Created July 14, 2015 17:53
Tweetledee userrss.php - no author account in text
<?php
/***********************************************************************************************
* Tweetledee - Incredibly easy access to Twitter data
* userrss.php -- User timeline results formatted as a RSS feed
* Version: 0.4.1
* Copyright 2014 Christopher Simpkins
* MIT License
************************************************************************************************/
/*-----------------------------------------------------------------------------------------------
==> Instructions:
# design settings
gutter = 60
radius = 6
pageW = 1600
# draw filled outline or contours
contour = False
# draw nodes and bluezones and vertical metrics?
@chrissimpkins
chrissimpkins / glue-man.json
Created April 7, 2014 03:24
Glue Extension - Man Pages
{
"man": "man {{args}} | col -bx"
}

Editing

Command

Mac OSX

Windows

Linux

Delete Line ⌘ + X Ctrl + X Ctrl + X
Insert Line After ⌘ + ↩ Ctrl + ↩ Ctrl + ↩
Insert Line Before ⌘ + ⇧ + ↩ Ctrl + ⇧ + ↩ Ctrl + ⇧ + ↩
Move Line Up ⌘ + ⌃ + ↑ Ctrl + ⇧ + ↑ Ctrl + ⇧ + ↑
Move Line Down ⌘ + ⌃ + ↓ Ctrl + ⇧ + ↓ Ctrl + ⇧ + ↓
Select Line ⌘ + L Ctrl + L Ctrl + L
Select Word ⌘ + D Ctrl + D Ctrl + D
@chrissimpkins
chrissimpkins / FontPreview.swift
Created December 24, 2015 13:47 — forked from leonbreedt/FontPreview.swift
Render font from command line on OS X without requiring font to be installed.
//
// FontPreview
// Copyright © 2015 Leon Breedt
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
@chrissimpkins
chrissimpkins / gemify.sh
Created November 10, 2013 04:09
Automated Ruby gem build and distribution to rubygems.org
#!/bin/sh
# gemify.sh
# Create a Ruby gem and push it to rubygems.org
# Copyright 2013 Christopher Simpkins
# MIT License
# Enter your gem name below (do not enter version number or .gemspec suffix)
# or pass it as the first argument to the shell script
GEM_NAME=""
@chrissimpkins
chrissimpkins / octopress_pagination
Created December 6, 2013 15:48
Octopress pagination example
<footer>
<p class="meta">
{% include post/author.html %}
{% include post/date.html %}{% if updated %}{{ updated }}{% else %}{{ time }}{% endif %}
{% include post/categories.html %}
</p>
{% unless page.sharing == false %}
{% include post/sharing.html %}
{% endunless %}
<p class="meta">
@chrissimpkins
chrissimpkins / fontsmoothie.js
Created January 26, 2016 01:50 — forked from letorbi/fontsmoothie.js
This code enforces font-smothing for web fonts even if it's not enabled in the system settings. More info: http://pixelsvsbytes.com/blog/2013/02/nice-web-fonts-for-every-browser
// Font Smoothie copyright 2013,14,15 Torben Haase <http://pixelsvsbytes.com>
// Source-URL <https://gist.github.com/letorbi/5177771>
//
// Font Smoothie is free software: you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License as published by the Free
// Software Foundation, either version 3 of the License, or (at your option) any
// later version.
//
// Font Smoothie is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
#!/bin/bash
# icoconv.sh
# Copyright 2016 Christopher Simpkins
# Adapted from shell script by Denilson Sá at https://superuser.com/questions/40623/icons-command-line-generator#40629
# MIT License
# Dependencies:
# 1. imagemagick (http://www.imagemagick.org/)
# 2. icoutils (http://www.nongnu.org/icoutils/)