Skip to content

Instantly share code, notes, and snippets.

View iamjonbradley's full-sized avatar

Jonathan Bradley iamjonbradley

View GitHub Profile
@iamjonbradley
iamjonbradley / dbo-mysql.php
Created April 13, 2010 19:18
Database Abstraction Class
<?php
class Database {
var $hostname = '';
var $username = '';
var $password = '';
var $database = '';
var $link = '';
var $i = 0;
@iamjonbradley
iamjonbradley / upload.php
Created November 26, 2010 22:58
Amazon S3 Upload Component
<?php
App::import('Vendor', 'Upload.S3');
Configure::load('Upload.config');
class UploadComponent extends Object {
// set name of the component
public $name = 'Upload';
@iamjonbradley
iamjonbradley / attachCard.php
Created May 18, 2011 14:54
Attach VCARD with Zend_MAIL
<?php
include ('Zend/Mime.php');
include ('Zend/Mail/Transport/Abstract.php');
include ('Zend/Mail.php');
$mail = new Zend_Mail();
// create the vcard
$vcardText="BEGIN:VCARD\n VERSION:2.1\nFN:[name]\TEL;HOME;VOICE:[phone]\nEMAIL;PREF;INTERNET:[email]\nEND:VCARD";
@iamjonbradley
iamjonbradley / cinepaint-csv-ubuntu.sh
Created June 30, 2011 17:39
CinePaint install script for Ubuntu
echo ubuntu-cvs.sh - install from CVS source on ubuntu
echo Copyright 10.19.2008 [email protected]
echo License BSD
echo INSTRUCTIONS: This script downloads and builds CinePaint from CVS.
echo If you are a member of the CinePaint dev team, you want cvs-dev.sh
echo Expect it to take hours to download and build cinepaint from scratch.
echo Fetching cinepaint from SourceForge CVS...
mkdir cvs
cd cvs
echo Press [Enter] when prompted for CVS password...
2014-10-20 02:45:35 -0400
./configure
--prefix=/usr/local/Cellar/php56/5.6.2
--localstatedir=/usr/local/var
--sysconfdir=/usr/local/etc/php/5.6
--with-config-file-path=/usr/local/etc/php/5.6
--with-config-file-scan-dir=/usr/local/etc/php/5.6/conf.d
--with-iconv-dir=/usr
--enable-dba

Jonathan R. Bradley

Work Experience

Telit Iot Platforms

Senior Developer for IoT Platforms Portal Currently working on integration for Leaflet Map system utilized by Mapbox, Open Street Maps, Mapquest and others. Configured the portal to utilize Leaflet for all widgets in the dashboard system, thing and connection views for mapping. Build a sycronys utility to load all things with a location to load on a map; up to 150k things based upon browser limitation; utilizing a GO backend and ElasticSearch. Built numerious widgets and utilities utilizing the CakePHP framework to allow for Unit Testing utilizing Code Ception and PHPUnit.

Adelpo

Senior Developer for MDS

Keybase proof

I hereby claim:

  • I am iamjonbradley on github.
  • I am jonbradley (https://keybase.io/jonbradley) on keybase.
  • I have a public key whose fingerprint is F266 D7AA 92B5 DF02 2C0A DF27 1017 0BE2 F8B4 72E3

To claim this, I am signing this object:

clone the repo to opt/juniper
git clone https://github.com/iamjonbradley/juniper-ncui.git
---------------------------------------
--- command line ---
---------------------------------------
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 zlib1g:i386
@iamjonbradley
iamjonbradley / view.php
Created September 12, 2016 17:46
example controller view action
<?php
public function view($id = null)
{
$article = $this->Articles->find('all', [
'conditions' => ['Articles.id' => $id],
'contain' => ['Categories', 'Users']
])->first();
if (empty($article)) {
$article = $this->Articles->find('all', [
@iamjonbradley
iamjonbradley / Question.txt
Created November 15, 2016 06:57
Question
So people are mad cause Hillary has the popular vote and I get that, but do you know why the founding fathers created it? They did so a select few states couldn't decide an election. Which makes since, because if you think about it; if NY, TX and CA all voted the same that could control an election and how would that would be fair? That's why they created the electoral college and why we vote as a state for a rep to vote for us.