This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# giftube – Generates an animated gif from a YouTube url. | |
# | |
# Usage: | |
# | |
# giftube [youtube url] [minute:second] [duration] | |
# | |
# ex. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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)); |