Skip to content

Instantly share code, notes, and snippets.

Ben Aubin benaubin

Block or report user

Report or block benaubin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@benaubin
benaubin / PhoneNumberFormatter.swift
Created Jan 8, 2018
Using PhoneNumberKit to... format phone numbers
View PhoneNumberFormatter.swift
import Foundation
import Cocoa
import PhoneNumberKit
@objc
class PhoneNumberFormatter: Formatter {
static private let phoneNumberKit = PhoneNumberKit()
static private let partialPhoneNumberFormatter = PartialFormatter()
@benaubin
benaubin / README.MD
Last active Dec 12, 2017
Alphabetizing your Bibliography: Because it sucks and Scienteer doesn't do it for you.
View README.MD

Put this link in your browser's address bar on the Scienteer Bibliography page. It'll alphabetize everything for you. Fancy 😃

javascript:var%20alphabetizedBib=jQuery(".newQuestionText").map(function(){return%20$(this).text()}).sort();jQuery(".newQuestionText").each(function(i){$(this).text(alphabetizedBib[i])});

If it doesn't work, paste it in then make sure that the javascript: part is before the code. Chrome hates its life has some nice security features so sometimes it decides to be terrible remove that important part (it's what tells the browser that the code is actually code and not some place you want to go).

@benaubin
benaubin / setup.js
Created Nov 17, 2017
My hacky way to install ghost apps.
View setup.js
var APPS_TO_INSTALL = ["section-from-content"];
// install or remove
var action = "install";
// don't change the following
var _ = require('lodash');
var Promise = require('bluebird');
@benaubin
benaubin / __Skyline.md
Last active Oct 23, 2017
Some sample files from Skyline - my refreshingly beautiful modern Ghost Theme.
View __Skyline.md

Skyline is a refreshlingly-beautiful Ghost theme.

Defined by the images that cover the top of your home page, Skyline leaves a great impression on your vistors that starts the instance they open your site. Your posts are layed out as fabulous cards that tile down the page.

I paid an amazing amount of detail as I designed Skyline. Every option in Ghost's markdown processor supports looks amazing in Skyline. Beautiful fonts add to the artistry of the theme. Full-bleed images and videos take up the full width of the screen. Authors are recognized with their picture and bio after each of their posts. Skyline has great built in support for [Facebook][fb-comments], [Disqus][disqus] and [Carnival][carnival] and can be easily extended to support others. Even subscriptions and error pages are custom designed to match the atmosphere of your site. We love it so much, it's the theme we use for this very site!

To recap, Skyline has:

  • Beautiful cover images
  • Amazing index layouts
@benaubin
benaubin / theme-license.md
Last active Oct 3, 2017
A license for themes you purchase from me.
View theme-license.md

We grand you, the purchaser of the theme, a non-exclusive wordwide license to use of the item under the terms that follow:

You're allowed to use this item in as many sites as you'd like owned by yourself.

You may not sell or redistribute this theme or any derivatives created using it, although you may transfer this license.

If you transfer the license, you must immediatly cease using the theme on any sites and destroy any copies of the theme you may have made.

You may make modifications to the theme, but you'll still have to follow the terms of this license.

View index.html
<div id='product-component-46a813aa036'></div>
<script type="text/javascript">
/*<![CDATA[*/
(function () {
var scriptURL = 'https://sdks.shopifycdn.com/buy-button/latest/buy-button-storefront.min.js';
if (window.ShopifyBuy) {
if (window.ShopifyBuy.UI) {
ShopifyBuyInit();
} else {
View index.html
<div id='product-component-46a813aa036'></div>
<script type="text/javascript">
/*<![CDATA[*/
(function () {
var scriptURL = 'https://sdks.shopifycdn.com/buy-button/latest/buy-button-storefront.min.js';
if (window.ShopifyBuy) {
if (window.ShopifyBuy.UI) {
ShopifyBuyInit();
} else {
@benaubin
benaubin / keybase.md
Created Mar 4, 2017
Proof of my new username
View keybase.md

Keybase proof

I hereby claim:

  • I am benaubin on github.
  • I am penne (https://keybase.io/penne) on keybase.
  • I have a public key whose fingerprint is F388 F64C EDFB 1A4E 5858 EBDF B659 E9A8 F31B D679

To claim this, I am signing this object:

View I changed my username.md

Hey! I changed my username from @penne12 on GitHub to @benaubin.

This is just proof - I'm still the same person :D


If you've cloned an old repo of mine, make sure to change the remote to reflect this change. Instructions

@benaubin
benaubin / fix-a-bio-for-twitter.js
Last active Dec 6, 2016
Allows you to fix twitter bios.
View fix-a-bio-for-twitter.js
$(".ProfileHeaderCard-bio").attr('contentEditable', true)
You can’t perform that action at this time.