Skip to content

Instantly share code, notes, and snippets.

View episod's full-sized avatar

Taylor Singletary episod

View GitHub Profile
@DavidBiesack
DavidBiesack / sway.sh
Last active November 7, 2017 18:15
Command line shell script for running sway on an OpenAPI document from a console
#!/usr/bin/env node
// Validate an OpenAPI document using sway library, https://www.npmjs.com/package/sway
//
// Install node (npm) and then install sway to use this:
//
// npm install sway --save # (This is only needed once, to install sway)
//
// From original source by Taylor Singletary (@episod), as shared on APIEvangelists slack #openapi Oct 31 2017
//
// Usage if saved as `sway` in your PATH:
@marcel
marcel / gist:2100703
Created March 19, 2012 07:24
giftube – Generates an animated gif from a YouTube url.
#!/usr/bin/env ruby
# giftube – Generates an animated gif from a YouTube url.
#
# Usage:
#
# giftube [youtube url] [minute:second] [duration]
#
# ex.
#
@abraham
abraham / update.php
Created September 22, 2010 17:18
Simple script to post a Tweet using XML and OAuth
<?php
// Download the latest version of http://github.com/abraham/twitteroauth/downloads
// Move twitteroauth.php and OAuth.php into this directory.
// Register an application at http://dev.twitter.com/apps.
// Get a user access token as described in http://dev.twitter.com/pages/oauth_single_token.
require_once('twitteroauth.php');
$connection = new TwitterOAuth('app consumer key', 'app consumer secret', 'my access token', 'my access token secret');
$connection->format = 'xml';
$status = $connection->post('statuses/update', array('status' => $message));