A Hello World API. Always returns “Hello World”.
Return “Hello World.” Always.
Make a GET request.
- Response 200 (text/plain)
on alfred_script(q) | |
tell application "Reminders" | |
set nr to make new reminder | |
set name of nr to q | |
end tell | |
end alfred_script |
on run {input, parameters} | |
with timeout of (30 * 60) seconds | |
tell application "Finder" | |
repeat with anItem in the input | |
set parentFolder to container of anItem | |
set otherFiles to name of files in parentFolder | |
repeat with otherFile in the otherFiles | |
if otherFile ends with ".eyetvp" then | |
set xmlFile to (parentFolder as string) & ":" & otherFile |
<?php | |
function is_anagram($a, $b) { | |
return(count_chars($a, 1)==count_chars($b, 1)); | |
} |
unless Vagrant.has_plugin?("<PluginName>") | |
system('vagrant plugin install <PluginName>') | |
raise("Plugin installed. Run command again."); | |
end |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class MY_Input extends CI_Input { | |
protected $raw; | |
protected $delete; | |
protected $patch; | |
public function __construct() { | |
parent::__construct(); | |
{ | |
"element": "category", | |
"meta": { | |
"classes": [ | |
"api" | |
], | |
"title": "Hello World API" | |
}, | |
"content": [ | |
{ |
<?php | |
class MY_Model extends CI_Model{ | |
/** | |
* The table name | |
* | |
* @var string | |
* @access protected | |
*/ | |
protected $table = ''; |
<?php defined('BASEPATH') OR exit('No direct script access allowed'); | |
/* | |
|-------------------------------------------------------------------------- | |
| Enable/Disable Migrations | |
|-------------------------------------------------------------------------- | |
| | |
| Migrations are disabled by default but should be enabled | |
| whenever you intend to do a schema migration. | |
| | |
*/ |
<?php | |
class Migration_Users extends CI_Migration { | |
public function up(){ | |
$this->dbforge->add_field("id int(11) unsigned NOT NULL AUTO_INCREMENT"); | |
$this->dbforge->add_field("email varchar(255) NOT NULL DEFAULT ''"); | |
$this->dbforge->add_field("password varchar(255) NOT NULL DEFAULT ''"); | |
$this->dbforge->add_key('id', TRUE); | |
$this->dbforge->add_key('email'); |