Skip to content

Instantly share code, notes, and snippets.

View gist:e2cfe43cf41f6d6e9769
"username": "therock",
"bio": "The official Instagram account for Dwayne 'The Rock' Johnson",
"website": "",
"profile_picture": "",
"full_name": "therock",
"id": "232192182"
View csv-to-json.php
class CsvToJson {
private $feed = '';
private $data = array();
public function __construct($feed) {
$this->feed = $feed;
shoxty / gist:3990315
Created Oct 31, 2012
Chat log with Oracle Technical Support for Taleo
View gist:3990315
I have a lot of questions regarding the Taleo Business Edition Web Services API. Can you please put me in
contact with somebody that can help me?
Here are a few of the questions:
1) Is there a way to retrieve a list of all the form fields that are required for a requisition including
any custom fields that may have been added?
2) In what order should I made the calls to your services to properly submit a candidate to a requisition?
3) I am currently able to submit generic details of a candidate and attach it to a requisition but how can
I submit employment history, education, references, certifications and upload a resume? Do you have separate
View As opposed to what docs show
require(['jquery', 'backbone'], function($, Backbone) {
Reddit = Backbone.Model.extend({
initialize: function(){
console.log("oh snap! my name is "+this.get('name'));
var test = new Reddit({name: "test"});
var test2 = new Reddit({name: "test 2"});
shoxty / Center a widthless element
Created Apr 6, 2011
Center a widthless element with CSS
View Center a widthless element
<style type="text/css">
.center-wrapper {overflow: hidden; width: 500px;} //SET THE WIDTH OF YOUR CONTAINER
.center-wrapper .center-wrapper-inner {position: relative; float: left; left: 50%;}
.center-wrapper .center-wrapper-inner .centered-item {float: left; position: relative; right: 50%;}
<div class="center-wrapper">
<div class="center-wrapper-inner">
<div class="centered-item">
shoxty / google weather condition
Created Apr 6, 2011
Get the weather condition from googles weather api
View google weather condition
$xml = simplexml_load_file('[LOCATION]');
$information = $xml->xpath("/xml_api_reply/weather/current_conditions/condition");
echo $information[0]->attributes();