Skip to content

Instantly share code, notes, and snippets.

View ssx's full-sized avatar

Scott ssx

View GitHub Profile
<?php
$code = \Input::get('go');
$twitterService = OAuth::consumer('twitter');
if (\Input::get('oauth_token')) {
$token = $twitterService->getStorage()->retrieveAccessToken('twitter');
$twitterService->requestAccessToken(
\Input::get('oauth_token'),
\Input::get('oauth_verifier'),
$token->getRequestTokenSecret()

Keybase proof

I hereby claim:

  • I am ssx on github.
  • I am ssx (https://keybase.io/ssx) on keybase.
  • I have a public key whose fingerprint is F09E ADA7 71CD 1D46 9AB2 53A0 7C74 DD9C 936C 050C

To claim this, I am signing this object:

Test String:
< echo "Hello O'Test"; ?>
FILTER_SANITIZE_STRING:
string(0) ""
FILTER_UNSAFE_RAW with flags: FILTER_FLAG_STRIP_LOW,
FILTER_FLAG_STRIP_HIGH,
FILTER_FLAG_ENCODE_LOW,
FILTER_FLAG_ENCODE_HIGH,
Answers Needed:
1. What Name generally has the most spaces
2. What time of day is 'name' likely to have spaces
3. What name generally has the least spaces
Date Time Name Spaces
2014-10-01 10:00:00 Item 1 753
2014-10-01 10:00:00 Item 2 436
@ssx
ssx / gist:e1b617045741b43fd00c
Last active August 29, 2015 14:07
Sample Structure
about
-- subject 1
-- subject 2
news
-- n number of posts/articles
projects
-- area 1
-- project name 1
-- project name 2
-- project name 3
--------------------------------------------------
--------------------------------------------------
-- Import tasks from Things to OmniFocus
--------------------------------------------------
--------------------------------------------------
--
-- Script taken from: http://forums.omnigroup.com/showthread.php?t=14846&page=2
-- Added: creation date, due date, start date functionality
-- Empty your Things Trash first.
-- Note that this won't move over scheduled recurring tasks.
<html>
<head>
<title>Coffee Generator</title>
<style type="text/css">
body {
background: #f3r3e3;
font-size: 40px;
text-align: center;
color: #000;
}
@ssx
ssx / gist:590085
Created September 21, 2010 17:25
Twitter API Example Call
<?php
// Require all the files we need
require "../lib/EpiCurl.php";
require "../lib/EpiOAuth.php";
require "../lib/EpiTwitter.php";
// Your user tokens, these won't work as they are invalid, for more information
// on getting your own user tokens or how to register an application yourself,
// please watch http://www.youtube.com/watch?v=bg_wQEmAgaM which shows the
// whole process in detail
@ssx
ssx / gist:590104
Created September 21, 2010 17:35
Twitter API Example Response
array(33) {
["verified"]=>
bool(false)
["profile_use_background_image"]=>
bool(true)
["description"]=>
string(140) "Web,  Apple and data geek with a passion for cross source data manipulation and a love of anything open source.
I also run tweekly.fm."
["follow_request_sent"]=>