Skip to content

Instantly share code, notes, and snippets.

View joshuaebowling's full-sized avatar

Josh Bowling joshuaebowling

View GitHub Profile
@joshuaebowling
joshuaebowling / id.js
Last active September 7, 2015 02:33
Response to _Opportunity
// I'm going to leave my debugging code in so you can see how I prove to myself that I've resolved issues
/* I added the NAMESPACE declaration to troubleshoot.
* I understand this was only part of a larger
* codeblock that may or may not have declared NAMESPACE
*/
var NAMESPACE;
if (!NAMESPACE || typeof NAMESPACE == 'undefined') {
NAMESPACE = {
_all_ids: new Object()
};
@joshuaebowling
joshuaebowling / Veritaseum.md
Last active September 1, 2015 01:10
This is all the information requested from your proposal form on Upwork. Please let me know if there's anything else I can get you.

Response to Opportunity at Veritaseum

COVER LETTER:

When I first read your job posting, I was surprised at the rigor of your submittal process. Nevertheless, it stuck out at me. The next day, I realized how much I appreciated it. So I began reading about your technology and Mr. Middleton's goal in its inception: to liberate mankind from banks and lawyers... wow. This is truly a goal worthy of knowledge, skill, passion, grit. Thus, I offer what I possess of these virtues to this goal.

Links

  1. Gist Response to _Opportunity

  2. Personal Github Project I Recently Started

  3. The above github project is running live here

/*======================================================================*\
ICBIaW50OiBtYWtlIHRoaXMgYXMgY2xvc2UgdG8gcHJvZHVjdGlvbi1yZWFkeSBzb3VyY2
UgY29kZSBhcyB5b3UgY2FuIQoKICBCb251cyBwb2ludHMgZm9yIHRlbGxpbmcgdXMgd2hh
dCB0aGlzIGRvZXMgaW4gcGxhaW4gdGVybXM6CgogICAgJycuam9pbihpdGVydG9vbHMuY2
hhaW4oKnppcChzWy0yOjotMl0sIHNbOjotMl0pKSk=
\*======================================================================*/
// I'm going to leave my debugging code in so you can see how I prove to myself that I've resolved issues
/* I added the NAMESPACE declaration to troubleshoot.
* I understand this was only part of a larger
* codeblock that may or may not have declared NAMESPACE
// Assuming Jasmine
// Assuming NAMESPACE is defined and is as id.js defines it.
describe('Test validity of my changes to id.js', function() {
beforeAll(function() {
// add some "id"s to the Array prototype
var self;
self = this;
self.testData = [
'joshuaebowling', 'posita'
];
var indexof, indexofSub;
indexof = function(haystack, needle) {
// Implementation?
var hayLen, isCompleteMatch, needleLen, result, match;
result = -1;
match = '';
hayLen = haystack['length'];
needleLen = needle['length'];

Total : 15.5-23.5 Hours

High-Level Breakdown

Please Note This Isn't a Structural Outline; Rather it's a Conceptual Grouping of Main Components. Nor are the items listed in any particular order.

Component Description Low High
Datagrid Container for trade data 4 6
Grid Filter Changes what items are displayed via checkbox for each status a trade can have, perhaps adding all/none buttons also 2 3
Trade-specific Interactions Includes Track Transaction, Cancel Selected, Cancel Pending 1 2
Balance Display Shows Current Balance 1 1
##################### ElasticSearch Configuration Example #####################
# This file contains an overview of various configuration settings,
# targeted at operations staff. Application developers should
# consult the guide at <http://elasticsearch.org/guide>.
#
# The installation procedure is covered at
# <http://elasticsearch.org/guide/en/elasticsearch/reference/current/setup.html>.
#
# ElasticSearch comes with reasonable defaults for most settings,
@joshuaebowling
joshuaebowling / each-series-ajax.js
Last active March 11, 2016 16:28
Using Async.js for Ajax Flow Control
var records = [{data:'data1'}, {data:'data2'}];
async.eachSeries(records, function (record, cb) {
// this was inside an angular project, but use whatever ajax call you want here
$http.post('http://myurltopost', record).
success(function (data, status, headers, config) {
cb(null, data);
})
.error(function (data, status, headers, config) {
// called asynchronously if an error occurs
// or server returns response with an error status.
@joshuaebowling
joshuaebowling / Vagrantfile
Created March 18, 2016 21:55
Install Vagrant and the Vagrant Digital Ocean Provider, then 'vagrant up --provider=digital_ocean'
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@joshuaebowling
joshuaebowling / ubuntu-install-orient-db.sh
Last active June 6, 2017 02:01
Install latest orientdb on Ubuntu 14.04.4
# install java 1.6 because it's faster... per https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-orientdb-on-ubuntu-14-04
sudo add-apt-repository ppa:webupd8team/java -y
# update packages
sudo apt-get update
# install java 8
sudo apt-get install oracle-java8-set-default -y
# get latest orientdb as of scripting date