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 | |
public function get($collection = "") | |
{ | |
if (empty($collection)) | |
{ | |
show_error("In order to retreive documents from MongoDB, a collection name must be passed", 500); | |
} | |
if (isset($this->wheres['_id']) and ! ($this->wheres['_id'] instanceof MongoId)) |
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
{ | |
"services":{ | |
"twitter":{ | |
"name":"Twitter", | |
"character_limit":140, | |
"schedule_limit":288, | |
"icons":{ | |
"16":"http:\/\/static.bufferapp.com\/images\/services\/twitter-16x16.png", | |
"32":"http:\/\/static.bufferapp.com\/images\/services\/twitter-32x32.png", | |
"64":"http:\/\/static.bufferapp.com\/images\/services\/twitter-64x64.png" |
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 | |
try { | |
$hs = ApiClient::getInstance(); | |
$hs->setKey('REMOVED'); | |
$customers = $hs->getCustomers(1, null, null, null, 'user@domain.com'); | |
// found a single customer for this email address | |
if ($customers->getCount() == 1) | |
{ |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> | |
<CORSRule> | |
<AllowedOrigin>*</AllowedOrigin> | |
<AllowedMethod>GET</AllowedMethod> | |
<MaxAgeSeconds>3000</MaxAgeSeconds> | |
<AllowedHeader>*</AllowedHeader> | |
</CORSRule> | |
</CORSConfiguration> |
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
for k in `git branch|perl -pe s/^..//`;do echo -e `git show --pretty=format:"%Cgreen%ci %Cblue%cr%Creset" $k|head -n 1`\\t$k;done|sort -r |
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 | |
try { | |
$connection = new Mongo("mongodb://localhost:27017", array('persist' => 'foo')); | |
} catch (MongoConnectionException $e) { | |
print_r($e->getMessage()); | |
} |
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 | |
protected function cached($key, $callback, $life) | |
{ | |
$this->load->driver('cache', array('adapter' => 'memcached')); | |
if (!$response = $this->cache->get($key)) { | |
$response = $callback($this); | |
if ($response) { |
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
{ | |
"url": "http:\/\/www.zvents.com\/palmetto_fl\/events\/show\/306476425-nuovo-brides-bridal-expo", | |
"type": "Event", | |
"schema": "http:\/\/schema.org\/Event", | |
"name": "Nuovo Bride's Bridal EXPO at Bradenton Area Convention Center in Palmetto, FL", | |
"description": "\n\nNuovo Bride's Bridal EXPO\n\n\n\nSunday, Mar 24 12:00p\nto\n4:00p\n\n\n\nBradenton Area Convention Center\nPalmetto,\nFL\n\n\nVisit with 100+ exhibitors, Stroll through cake galleries, Wedding flower galleries, Photography galleries and more! Sample cakes & menus and find your Dream dress. \n\nEnjoy a Runway Fashion Show with all the top local salons. \n\nRegister for giveaways and prizes! Every bride receives a Free Swag Bag. \n\nFree for Brides & Grooms when you register now!\n\n\n", | |
"image": "http:\/\/www.zvents.com\/dynamic_images\/5\/4\/2\/7\/28237245_184-50x184-50_5.jpg", | |
"startDate": "2013-03-24T16:00:00Z", | |
"location": { | |
"addressLocality": "Palmetto", |
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
{ | |
"videoQuality": "HD", | |
"embedUrl": "http:\/\/vimeo.com\/moogaloop.swf?clip_id=58893010", | |
"duration": "PT00H04M45S", | |
"width": 720, | |
"height": 1280, | |
"playerType": "HTML5 Flash", | |
"encodingFormat": "MP4", | |
"uploadDate": "2013-02-04T15:08:24+00:00", | |
"author": { |
OlderNewer