This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Routes | |
Prefix Verb URI Pattern Controller#Action | |
sidekiq_web /sidekiq Sidekiq::Web | |
root GET / high_voltage/pages#show {:id=>"home"} | |
user_bank_accounts GET /users/:user_id/bank_accounts(.:format) bank_accounts#index | |
POST /users/:user_id/bank_accounts(.:format) bank_accounts#create | |
new_user_bank_account GET /users/:user_id/bank_accounts/new(.:format) bank_accounts#new | |
edit_user_bank_account GET /users/:user_id/bank_accounts/:id/edit(.:format) bank_accounts#edit | |
user_bank_account GET /users/:user_id/bank_accounts/:id(.:format) bank_accounts#show | |
PATCH /users/:user_id/bank_accounts/:id(.:format) bank_accounts#update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Cleaning up... | |
Removing temporary dir /home/brandon/Code/rhombik-env/build... | |
Exception: | |
Traceback (most recent call last): | |
File "/home/brandon/Code/rhombik-env/local/lib/python2.7/site-packages/pip/basecommand.py", line 122, in main | |
status = self.run(options, args) | |
File "/home/brandon/Code/rhombik-env/local/lib/python2.7/site-packages/pip/commands/install.py", line 302, in run | |
requirement_set.cleanup_files(bundle=self.bundle) | |
File "/home/brandon/Code/rhombik-env/local/lib/python2.7/site-packages/pip/req.py", line 1333, in cleanup_files | |
rmtree(dir) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Original line | |
%img.popup-menu-shadow-leftcap{:src=>"../assets/popup-menu-shadow-leftcap.gif", :alt=>''} | |
# Try this instead | |
= image_tag 'popup-menu-shadow-leftcap.gif', class: 'popup-menu-shadow-leftcap', alt: '' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/heres a simple div with an id | |
#my-div This is my cool div | |
results: <div id="my-div">This is my cool div</div> | |
/heres a simple div with a class | |
.my-div This is my cool div |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2016-06-08 10:28:07 Debug: Httpful\Response Object | |
( | |
[body] => stdClass Object | |
( | |
[code] => forbidden | |
[message] => permission denied | |
) | |
[raw_body] => {"code":"forbidden","message":"permission denied"} | |
[headers] => Httpful\Response\Headers Object |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST /filed_documents HTTP/1.1 | |
Content-Type: application/vnd.api+json | |
Accept: application/vnd.api+json | |
{ | |
"data": { | |
"type": "filed_documents", | |
"attributes": { | |
"admin_id": 1, | |
"cat_1": 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# API key | |
# Any API key will be required to access the API in production, use the request header | |
# X-API-KEY: <API Key> | |
# | |
# Your API key will be assigned to you from the ATLAS instance | |
# Filtering data | |
# You can filter on any field listed under each of the resources | |
GET /users?filter[lastname]=Smith HTTP/1.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://eslint.org/docs/user-guide/configuring | |
module.exports = { | |
root: true, | |
parser: 'babel-eslint', | |
parserOptions: { | |
sourceType: 'module' | |
}, | |
env: { | |
browser: true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Starprinter Test</title> | |
</head> | |
<body> | |
<h1>Welcome page</h1> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'json' | |
require 'nokogiri' | |
require 'open-uri' | |
require 'pry' | |
spells = {} | |
main_page = Nokogiri::HTML(open('https://www.dnd-spells.com/spells')) | |
spell_rows = main_page.css('#example tr') | |
spell_row_number = 0 |