Skip to content

Instantly share code, notes, and snippets.

@tagroup
tagroup / tradeking_streaming_quotes.php
Created November 3, 2012 07:00
TradeKing PHP Streaming Quote API Example
<?php
/*
Very quick and dirty expansion on the TradeKing PHP example to allow you to handle and process streaming quotes
see more at http://thomasloughlin.com
enjoy at your own risk
*/
date_default_timezone_set('America/Chicago');
// Your keys/secrets for access
$consumer_key = 'uqM2342345234523452345234520NT';
@JCBarry
JCBarry / TKPHPPostScript.php
Created June 1, 2012 15:41
Tradeking API POST Example using different OAuth library on Google Code
<?php
require_once 'oauth.php';
$consumer_key = '';
$consumer_secret = '';
$access_token = '';
$access_secret = '';
$consumer = new OAuthConsumer($consumer_key,$consumer_secret);
$access = new OAuthToken($access_token,$access_secret);
@nrrrdcore
nrrrdcore / border.css
Created May 2, 2012 20:44
Faded/Gradient Borders in Pure CSS
.border-container {
width: 28%; /* border will be on the left on this container */
float: right;
overflow: hidden; /* only needed if floating container */
min-height: 600px; /* static height if you want your container to be taller than its content */
-moz-box-shadow: inset 15px 0 5px -16px rgba(0,0,0,.1), -1px 0 0 #FFF;
-webkit-box-shadow: inset 15px 0 5px -16px rgba(0,0,0,.1), -1px 0 0 #FFF;
box-shadow: inset 15px 0 5px -16px rgba(0,0,0,.1), -1px 0 0 #FFF;
border-width: 0 0 0 1px;
-webkit-border-image:
@JCBarry
JCBarry / tkapi.php
Created July 28, 2011 17:43
TradeKing API PHP OAuth Example
<?php
// This is using the PHP OAuth extenstion.
// http://www.php.net/manual/en/book.oauth.php
$consumer_key = '0cc175b9c0f1b6a831c399e269772661';
$consumer_secret = 'ff2513194e75315625628304c9eb66e8';
$access_token = '150a96573adf12b21dab621e85497e6e';
$access_secret = '5c7b57d450a71d378a5eda991f809e56';
try {