Skip to content

Instantly share code, notes, and snippets.

View Ryuske's full-sized avatar

Kenyon Ryuske

View GitHub Profile
@Ryuske
Ryuske / Yahoo.php
Created October 22, 2014 18:10
Laravel 4 Yahoo Contacts API Integration
<?php
/**
* Author: Kenyon Haliwell
* Date: 10/22/14
*
* Used to authenticate with Yahoo via oAuth2 and then use their Contacts API to return emails.
*
* Step 1: send user to Yahoo@getContactsLink
* Step 2: return user to a route that calls Yahoo@getContactsArray
* Step 3: Whatever you wanted to do with the contacts
@Ryuske
Ryuske / CompressAwsImages.php
Created May 9, 2016 19:31
Laravel 4.2 artisan command for compressing AWS images
<?php
/**
* Command for losslessly compressing Amazon AWS images
*/
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
/**
@Ryuske
Ryuske / Shared.php
Created May 10, 2016 18:37
Library of user functions
<?php
/**
* File for App\Models\User\Shared
*/
namespace App\Models\User;
/**
* Helper methods for getting information about users
*
@Ryuske
Ryuske / ImageHandling.php
Created May 10, 2016 18:41
Methods for uploading images
<?php
/**
* Methods for manipulating & storing images locally and on Amazon AWS.
*
*/
class ImagesHandler {
/**
* The name of the Amazon AWS bucket
*