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
/* | |
|-------------------------------------------------------------------------- | |
| LogEntries Error Logger | |
|-------------------------------------------------------------------------- | |
| | |
| This adds a handler to Monolog which will send logging data to the cloud service | |
| log entries. Make sure there is a logentries.php in your config folder with | |
| an array key defined as 'token'. The format of the messages will be the same | |
| minus the time and date as the service itself will record that. | |
| |
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
var gulp = require('gulp'), | |
awspublish = require('gulp-awspublish'), | |
rename = require('gulp-rename'); | |
var publisher = awspublish.create({ key: '...', secret: '...', bucket: '...' }); | |
gulp.task('publish', function() { | |
gulp.src('public/assets/**') | |
.pipe(rename(function (path) { | |
path.dirname = 'assets/' + path.dirname; |
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
### Keybase proof | |
I hereby claim: | |
* I am peterfox on github. | |
* I am peterfox (https://keybase.io/peterfox) on keybase. | |
* I have a public key whose fingerprint is B0F7 1B02 236A B65E C5F2 B732 750F 23D9 60D3 8FA6 | |
To claim this, I am signing this object: |
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 | |
$URL = "mailto:?subject=Is this a test message!"; | |
$url_var = $URL; | |
//explode it and if it has a '?' it means it must have URL Parameters | |
if(count($mail_split = explode('?', $URL))>1) | |
{ | |
//if for some reason there's more than one '?' then we'll just add the exploded parts to the second part | |
$mail_params = $mail_split[1]; | |
for($i=2; $i<count($mail_split); $i++) |
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
if ( ! function_exists('element')) | |
{ | |
function element($item, $array, $default = FALSE) | |
{ | |
if ( ! isset($array[$item]) OR $array[$item] == "") | |
{ | |
return $default; | |
} | |
return $array[$item]; |
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 | |
if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
//Load this class with $this->load->library('CI_Something', $data, 'something'); | |
require_once dir(__FILE__).'/Something/Something.php'; | |
class CI_Something extends Something | |
{ | |
public function __construct($config) |
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 | |
if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
//Load this class with $this->load->library('CI_Something', $data, 'something'); | |
require_once dir(__FILE__).'/Something/Something.php'; | |
class CI_Something | |
{ | |
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
/** | |
* __get | |
* | |
* Allows models to access CI's loaded classes using the same | |
* syntax as controllers. | |
* | |
* @param string | |
* @access private | |
*/ | |
function __get($key) |
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 | |
if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/* | |
*defining a config with groups should look like | |
* | |
* $config['default']['hostname'] = '127.0.0.1' | |
* $config['default']['port'] = '1234' | |
* | |
*the constructor should then be able to load it by either taking a group name 'default' always being the option without |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# config.vm.define "database" do |database| | |
# database.vm.box = "ubuntu-trusty-server-amd64" |
OlderNewer