One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| # app/controllers/home_controller.rb | |
| class HomeController < ApplicationController | |
| end | |
| # app/views/home/index.html.erb | |
| <h1>Hello World</h1> | |
| <button type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="top" title="Tooltip on top"> | |
| Tooltip on top | |
| </button> |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Helloworld</title> | |
| <%= csrf_meta_tags %> | |
| <%= csp_meta_tag %> | |
| <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> | |
| <%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %> | |
| </head> |
| client = Tops::Client.new("TOPS community api key","TOPS community key") | |
| tops_owner = client.owner("TOPS owner key") | |
| tops_owner.Metadata.HoldCollection | |
| tops_owner.Metadata.HoldPayment |
| { | |
| "name": "Test Community - CaliberSandbox Windwalker Ranch", | |
| "accountingPlatform": "Caliber", | |
| "platformConnection": null, | |
| "companyKey": "https://asp.calibersoftware.com/capi2_APISandbox/api/v2/", | |
| "communityKey": "2", | |
| "lastSync": "0001-01-01T00:00:00", | |
| "apiCode": "capiDocs", | |
| "apiLoginName": "csapi", | |
| "apiLoginPassword": "cspwd$!", |
First, Create a folder inside of lib called seeds
Put your CSV file example.csv into the lib/seeds folder. In the example below, the file is called real_estate_transactions.csv
Make sure you've created a resource with the appropriate columns to match your seed data. The names don't have to match up.
| #! /usr/bin/env bash | |
| cd '../source/' | |
| for PHOTO in *.jpg | |
| do | |
| filename="$(echo $PHOTO | cut -d'.' -f 1 | sed 's/ /_/g')" | |
| filename=`basename $filename` | |
| convert "$PHOTO" -resize "600x600^" -gravity center -crop 600x600+0+0 +repage "../processed/$filename.jpg" | |
| done |
| @font-face { | |
| font-family: 'EntypoRegular'; | |
| src: url('font/entypo.eot'); | |
| src: url('font/entypo.eot?#iefix') format('embedded-opentype'), | |
| url('font/entypo.woff') format('woff'), | |
| url('font/entypo.ttf') format('truetype'), | |
| url('font/entypo.svg#EntypoRegular') format('svg'); | |
| font-weight: normal; | |
| font-style: normal; | |
| } |
| # Rails 4 Application Template | |
| # Usage: rails new [app_name] -m [boost_template.rb] -d postgresql | |
| # Remove normal files we don't want | |
| remove_file "README.rdoc" | |
| remove_file "public/index.html" | |
| remove_file "app/assets/images/rails.png" | |
| # Copy database.yml to sample | |
| inside "config" do |
| # SSL self signed localhost for rails start to finish, no red warnings. | |
| # 1) Create your private key (any password will do, we remove it below) | |
| $ openssl genrsa -des3 -out server.orig.key 2048 | |
| # 2) Remove the password | |
| $ openssl rsa -in server.orig.key -out server.key |