Skip to content

Instantly share code, notes, and snippets.

View jonBarcus's full-sized avatar

Jonathan Barcus jonBarcus

View GitHub Profile
@jonBarcus
jonBarcus / gist:c24e584a60180065db19c2831e0064c1
Created December 10, 2021 16:55
Commodity_Updates table
CREATE TABLE "COMMODITY_UPDATES"
( "ID" NUMBER GENERATED ALWAYS AS IDENTITY MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE NOKEEP NOSCALE NOT NULL ENABLE,
"COMMODITY_ID" NUMBER NOT NULL ENABLE,
"PRICE" NUMBER NOT NULL ENABLE,
"LOCATION_ID" NUMBER NOT NULL ENABLE,
"TRANSACTION_TYPE_ID" NUMBER NOT NULL ENABLE,
"OVER_UNDER_STOCK_TYPE_ID" NUMBER,
"SC_VERSION_ID" NUMBER NOT NULL ENABLE,
CONSTRAINT "COMMODITY_UPDATES_PK" PRIMARY KEY ("ID")
@jonBarcus
jonBarcus / gist:6ca2accb35a1ad1b7486d568e19727a9
Created September 11, 2019 18:25
enable oci-included repo
sudo yum install -y --enablerepo=ol7_ociyum_config oci-included-release-el7
@jonBarcus
jonBarcus / postgres-brew.md
Created January 4, 2018 14:55 — forked from sgnl/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@jonBarcus
jonBarcus / movies_api2.rb
Created April 30, 2014 15:33
Crazy Stuff
require 'nokogiri'
require 'open-uri'
# this class will do a search for Movies in/around
# a specified location. The location can be given as
# a STRING: "Staten Island", a ZIP: 10017, or LATTITUDE/
# LONGITUDE: 40.741061, -73.989699
# It makes use of Nokogiri and open-uri
class Movies
@jonBarcus
jonBarcus / Gemfile
Created April 8, 2014 15:31 — forked from phlco/Gemfile
# What about including `pry`, `rspec` or `guard`?
# They're loaded automatically as dependencies
group :development, :test do
# Annotates ActiveRecord Models, routes and others based on the database schema
gem "annotate"
# generates entity relationship diagrams based on Active Record models
# Postscript bugs may be fixed with:

InstallFest!

This is an automated version of our installfest.

Please paste the following into your terminal prompt

bash <(curl -sL http://j.mp/NplF2o)

CONTEXT

WHAT USER STORY YOU ARE WORKING ON:

I am working on the user story "User wants to log in."

WHAT YOU ARE TRYING TO DO:

I am trying to have the user update their profile.