View Officers.yml
## Mandatory code block that determines interview order | |
officer.gather() | |
if officer[i].other_employers == True: | |
officer[i].employers | |
owner_names | |
## Question section |
View model.cto
namespace org.accordproject.offertopurchase | |
import org.accordproject.cicero.contract.* from https://models.accordproject.org/cicero/contract.cto | |
import org.accordproject.cicero.runtime.* from https://models.accordproject.org/cicero/runtime.cto | |
import org.accordproject.time.* from https://models.accordproject.org/v2.0/time.cto | |
import org.accordproject.money.MonetaryAmount from https://models.accordproject.org/money.cto | |
import com.docusign.connect.DocuSignEnvelopeInformation from https://models.accordproject.org/docusign/connect.cto | |
import org.accordproject.payment.PaymentReceived from https://models.accordproject.org/payment/payment.cto | |
View congressEducation.py
import requests | |
import bs4 | |
import re | |
import json | |
listOfCongress = [] | |
url = 'https://www.govtrack.us/congress/members/current?sort=sortname&page=1&faceting=false&allow_redirect=false&do_search=1' | |
congressCount = requests.get(url).json()['total'] | |
information = {} |
View gist:7be6133edc996e3799edd3bdbe40af17
## Cocoon Docs: https://github.com/nathanvda/cocoon | |
Callbacks (upon insert and remove of items) | |
On insertion or removal the following events are triggered: | |
cocoon:before-insert: called before inserting a new nested child, can be canceled | |
cocoon:after-insert: called after inserting | |
cocoon:before-remove: called before removing the nested child, can be canceled |
View deploy.rb
require "rvm/capistrano" | |
require "bundler/capistrano" | |
load "config/recipes/unicorn" | |
load "config/recipes/monit" | |
#load "config/recipes/nginx" | |
set :application, "pantry" | |
set :repository, "git@github.com:MainStMission/food-pantry-manager.git" | |
set :user, 'msmuser' | |
set :ssh_options, {:forward_agent => true} | |
set :use_sudo, false |
View cap Log
food-pantry-manager git:(azure-deployment) bundle exec cap deploy | |
triggering load callbacks | |
* 2018-06-27 07:55:13 executing `deploy' | |
triggering before callbacks for `deploy' | |
* 2018-06-27 07:55:13 executing `deploy:check_revision' | |
* 2018-06-27 07:55:13 executing `deploy:update' | |
** transaction: start | |
* 2018-06-27 07:55:13 executing `deploy:update_code' | |
updating the cached checkout on all servers | |
executing locally: "git ls-remote git@github.com:MainStMission/food-pantry-manager.git azure-deployment" |
View Harvest.html.haml
%section.panel | |
%header | |
%h1 | |
%i.icon-home.icon-large | |
   Households | |
.content | |
.span12 | |
.span-one-third | |
= image_tag('second_logo.jpg') | |
#harvest_report |
View Query Overview
Queries for Harvest Report | |
1 Shrink the amount of data with a scope in class Visit < ActiveRecord::Base | |
scope :harvest_visits, -> { where('visited_on >= ?', 3.months.ago )} | |
All Records (Rails Console): | |
Visit.all.count | |
Visit Load (408.3ms) SELECT "visits".* FROM "visits" ORDER BY visited_on DESC |
View Harvest View
%section.panel | |
%header | |
%h1 | |
%i.icon-home.icon-large | |
   Households | |
.content | |
.span12 | |
.span-one-third | |
= image_tag('second_logo.jpg') | |
#harvest_report |
View gist:92c68d49325b5564868214d7689a6e5c
;;; AOM installed | |
aom git:(master) boot develop | |
Starting file watcher (CTRL-C to quit)... | |
Writing pom.xml and pom.properties... | |
Writing aom-0.1.0-SNAPSHOT.jar... | |
Installing aom-0.1.0-SNAPSHOT.jar... |
NewerOlder