Skip to content

Instantly share code, notes, and snippets.

View dezmathio's full-sized avatar

Josiah Anjos dezmathio

View GitHub Profile
@dezmathio
dezmathio / tickers.js
Created November 14, 2017 03:40
script for andre
const request = require('request');
// request('https://api.coinmarketcap.com/v1/ticker/ethereum/', function (error, response, body) {
//   if (!error && response.statusCode == 200) {
// var info = JSON.parse(body);
// console.log(info[0]['price_usd']);
//   }
// });
request('https://api.coinmarketcap.com/v1/ticker/?limit=10', function(error, response, body) {
@dezmathio
dezmathio / resume.md
Created November 6, 2017 13:51
Josiah Anjos ~ Resume'

Josiah Anjos, Senior Software Engineer

Experienced Sr. Software Engineer with a demonstrated history of working in the internet industry. Notable expertise: Test Automation, Ruby on Rails, Ruby, Elixir, front end flavor of the month & many other areas.

Experience

Senior Software Engineer @ Weddingwire Inc. | December 2013 - current

  • Full stack development, worked on any feature regardless of front end or back end or even CI implementations.
  • Historically specialized in automation testing & also became my team's scrum master
@dezmathio
dezmathio / .bash_profile
Last active April 28, 2017 17:31
viewing diff on committed files (gdc / gitprep), and less typing when adding branch name to commit message (gcmit)
function bname { eval 'git rev-parse --abbrev-ref HEAD'; }
export -f bname
function bname_string { eval bname; }
export -f bname_string
function commit_string { echo "git commit -m '`bname_string` " | tr -d '\n' | pbcopy ; }
export -f commit_string
alias gdc='git diff --cached'
alias gitprep='git status;echo "Committed Files Diff"; gdc; echo "Current Branch Name:";`echo bname`'
alias gcmit='echo Copied commit string to clipboard, Press CMD+V; commit_string;'
Then /^the database value for "([^"]+)"(?: with (?:(.+)_)?id: (\d+))? in the table "([^"]+)" is (?:(not) )?"([^"]+)"$/ do |attribute, id_type, id, model, presence, value|
step 'I wait'
if presence.nil?
presence_check = 'to'.to_sym
else
presence_check = 'not_to'.to_sym
end
if id.nil?
expect(model.constantize.last.reload.send(attribute.delete(' ').underscore.to_sym).to_s).send(presence_check, eq(value))
elsif id_type.present?
Then /^the database value for "([^"]+)"(?: with (?:(.+)_)?id: (\d+))? in the table "([^"]+)" is (?:(not) )?"([^"]+)"$/ do |attribute, id_type, id, model, presence, value|
step 'I wait'
if presence.nil?
presence_check = 'to'.to_sym
else
presence_check = 'not_to'.to_sym
end
Before('@billy') do
case Capybara.current_driver
when :selenium
#Capybara.current_driver = :selenium_billy
#Capybara.javascript_driver = :selenium_billy
# Can't just change it to another driver unfortunately
# eventmachine not initialized: evma_get_sockname (RuntimeError)
when :poltergeist
Capybara.current_driver = :poltergeist_billy
Capybara.javascript_driver = :poltergeist_billy