Skip to content

Instantly share code, notes, and snippets.

View ToniWonKanobi's full-sized avatar

Anthony Craig ToniWonKanobi

View GitHub Profile
@ToniWonKanobi
ToniWonKanobi / tweetLatestPost.js
Created March 29, 2018 20:45
My Edited Version of Casey Liss's Auto Tweet Posting in the Camel Blogging Engine
// Automatic posting to Twitter
function tweetLatestPost() {
if (twitterClient !== null && typeof(process.env.TWITTER_CONSUMER_KEY) !== 'undefined') {
twitterClient.get('statuses/user_timeline', {screen_name: twitterUsername}, function (error, tweets) {
if (error) {
console.log(JSON.stringify(error, undefined, 2));
return;
}
var lastUrl = null, i = 0;
@ToniWonKanobi
ToniWonKanobi / custom.scss
Last active May 1, 2024 12:26
Custom Stylesheet for Desktop Safari
// Variables
// Color for <code> and <pre>
$lighterGray: lighten(black, 25%);
// Background color for <code>
$lightGray: lighten(lightgray, 10%);
// Border color for <pre> and <code>
$darkGray: darken(lightgray, 3%);
// Background color of YouTube
$darkerGray: darken(gray, 35%);

Keybase proof

I hereby claim:

  • I am toniwonkanobi on github.
  • I am toniwonkanobi (https://keybase.io/toniwonkanobi) on keybase.
  • I have a public key whose fingerprint is B374 18F5 DDDC AA75 3573 CA49 CA8A 96FE 3907 8AE0

To claim this, I am signing this object:

@ToniWonKanobi
ToniWonKanobi / Slugify.applescript
Last active February 15, 2018 14:04
Creates a URL-safe string of text from otherwise unsafe text. If you wanted to create a service from this, open an Automator project that grabs the clipboard content, then run this AppleScript on said clipboard content, then re-copy the output the clipboard again.
# What is this?
# This AppleScript takes as input the clipboard content [that is potentially unsafe-for-URLs string of text] (such as a blog post in Title Case)
# The script then creates a URL-safe version
# For example: `This Is a Title of a Post!` --> `this-is-a-title-of-a-post`
# Boomshakalaka
# This is from https://superuser.com/questions/635351/process-clipboard-content-on-mac-os
# You can create an Automater service as well: https://d.pr/i/xtX7kN+