Skip to content

Instantly share code, notes, and snippets.

View eyedol's full-sized avatar
💾
WWWorking...

Henry Addo eyedol

💾
WWWorking...
View GitHub Profile

Keybase proof

I hereby claim:

  • I am eyedol on github.
  • I am eyedol (https://keybase.io/eyedol) on keybase.
  • I have a public key whose fingerprint is DC11 04FB B302 B126 997B 0C61 19B0 B16E BC28 9F6B

To claim this, I am signing this object:

sudo npm install -g grunt-cli
npm http GET https://registry.npmjs.org/grunt-cli
npm http 304 https://registry.npmjs.org/grunt-cli
npm http GET https://registry.npmjs.org/nopt
npm http GET https://registry.npmjs.org/findup-sync
npm http GET https://registry.npmjs.org/resolve
npm http 304 https://registry.npmjs.org/nopt
npm http 304 https://registry.npmjs.org/findup-sync
npm http 304 https://registry.npmjs.org/resolve
npm http GET https://registry.npmjs.org/abbrev
<?php
/*
Plugin Name: Find Agents
Plugin URI :http://www.olamshs.com
Description: Available agents
Author: Gideon Makui
Version: 1.0
Author URI:http://gidmakus.wordpress.com
*/
require_once('inc/wp-config.php');
/**
* Retrieve a post
*
* GET /api/sets/:set_id/posts/:id
*
* @return void
*/
public function action_get_index()
{
// Respond with set
{
"count": 1,
"results": [
{
"id": "1",
"url": "http://localhost/Lamu/httpdocs/api/v2/posts/1",
"parent": null,
"user": null,
"form": {
"id": "1",
{
"count": 3,
"results": [
{
"id": "4",
"url": "http://localhost/Lamu/httpdocs/api/v2/media/4",
"caption": "ihub",
"mime": "image/jpeg",
"original_file_url": "http://localhost/Lamu/httpdocs/Lamu/httpdocs/media/kohana/media/uploads/h7r_1382082949_o.jpg",
"original_width": "420",
{
"count": 3,
"results": [
{
"id": "4",
"url": "http://localhost/Lamu/httpdocs/api/v2/media/4",
"caption": "ihub",
"mime": "image/jpeg",
"original_file_url": "http://localhost/Lamu/httpdocs/Lamu/httpdocs/media/kohana/home/eyedol/Devel/Workspace/Lamu/application/uploads/h7r_1382082949_o.jpg",
"original_width": "420",
* About to connect() to localhost port 80 (#0)
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 80 (#0)
> POST /Lamu/httpdocs/api/v2/media HTTP/1.1
> User-Agent: CMD User Agent
> Host: localhost
> Accept: */*
> Content-Length: 25364
> Expect: 100-continue
> Content-Type: multipart/form-data; boundary=----------------------------17927af4cfcd
@eyedol
eyedol / default.php
Created October 8, 2013 22:17
media route
Route::set('media','api/v2/media/<media_id>/<controller>(/<id>)',
array(
'media_id' => '\d+',
'id' => '\d+'
))
->defaults(array(
'action' => 'index',
'controller' => 'Media',
'directory' => 'Api'
));
com.crowdmap.java.sdk.CrowdmapException: com.crowdmap.java.sdk.CrowdmapException: {"title":"Slim Application Error","code":8,"message":"Undefined variable: avatar","file":"\/root\/cm3\/api\/resources\/users.php","line":238,"trace":[{"file":"\/root\/cm3\/api\/resources\/users.php","line":238,"function":"handleErrors","class":"Slim","type":"::","args":[8,"Undefined variable: avatar","\/root\/cm3\/api\/resources\/users.php",238,{"user_id":"23","return":true,"cached":false,"user":{"user_index":"33","user_id":"ffd94997f1ecf27189271ca82951161c77c44240704433beb51660e75414f974afd1c731d40cf8f352d8b4067b0b9b0d3287645d4fbb8c2c9d1720d5969822fa","registered":"2012-10-29 10:14:44","avatar":"http:\/\/www.gravatar.com\/avatar\/1ff60c455589ab5059123f05eb309240?r=PG&s=200&d=404","badges":[]}}]},{"file":"\/root\/cm3\/api\/resources\/maps.php","line":60,"function":"avatar","class":"users","type":"::","args":["23",true]},{"file":"\/root\/cm3\/api\/resources\/users.php","line":159,"function":"getMaps","class":"Maps","type":"::","a