Skip to content

Instantly share code, notes, and snippets.

27c8.36b8: Log file opened: 6.1.30r148432 g_hStartupLog=000000000000008c g_uNtVerCombined=0xa04a6400
27c8.36b8: \SystemRoot\System32\ntdll.dll:
27c8.36b8: CreationTime: 2021-10-06T13:39:54.967473200Z
27c8.36b8: LastWriteTime: 2021-10-06T13:39:55.014335100Z
27c8.36b8: ChangeTime: 2021-12-17T09:52:47.850888900Z
27c8.36b8: FileAttributes: 0x20
27c8.36b8: Size: 0x1ee520
27c8.36b8: NT Headers: 0xe8
27c8.36b8: Timestamp: 0xa280d1d6
27c8.36b8: Machine: 0x8664 - amd64
import requests
from flight_data import FlightData
TEQUILA_ENDPOINT = "https://tequila-api.kiwi.com"
TEQUILA_API_KEY = YOUR FLIGHT SEARCH API KEY
class FlightSearch:
def get_destination_code(self, city_name):
class FlightData:
def __init__(self, price, origin_city, origin_airport, destination_city, destination_airport, out_date, return_date):
self.price = price
self.origin_city = origin_city
self.origin_airport = origin_airport
self.destination_city = destination_city
self.destination_airport = destination_airport
self.out_date = out_date
self.return_date = return_date
version: "3"
services:
db:
build: db
read_only: true
restart: unless-stopped
volumes:
- ./volumes/db/var/lib/postgresql/data:/var/lib/postgresql/data
Debugger entered--Lisp error: (void-function projectile-project-name)
projectile-project-name()
activity-watch--create-heartbeat((23747 16680 10024 644000))
activity-watch--call()
activity-watch--save()
apply(activity-watch--save nil)
timer-event-handler([t 23747 16682 0 2 activity-watch--save nil nil 0])
# routes
get 'contact-me', to: 'messages#new', as: 'new_message'
post 'contact-me', to: 'messages#create', as: 'create_message'
# model
class Message
include ActiveModel::Model
attr_accessor :name, :email, :body
ben@whatnow:~/eventpuddle/eventpuddle(develop)$ git branch -a
* develop
devise
master
viewtest
remotes/origin/HEAD -> origin/master
remotes/origin/develop
remotes/origin/master
remotes/origin/viewtest
ben@whatnow:~/eventpuddle/eventpuddle$ git merge develop
Removing rails/eventpuddle/db/migrate/20170902234833_create_report_upcoming_events.rb
Auto-merging rails/eventpuddle/config/routes.rb
CONFLICT (content): Merge conflict in rails/eventpuddle/config/routes.rb
Auto-merging batch/scrape_web_olddukebri.rb
Auto-merging batch/scrape_web_fhousebri.rb
Auto-merging batch/lib/scrape/event.rb
CONFLICT (content): Merge conflict in batch/lib/scrape/event.rb
Automatic merge failed; fix conflicts and then commit the result.
ben@whatnow:~/eventpuddle/eventpuddle$ vi batch/lib/scrape/event.rb
1802 git branch -d viewtests
1803 git bransk -a
1804 git branch -a
1805 git checkout develop
1806 git branch -a
1807 git checkout -b viewtest
1808 git branch -a
1872 git rm scrape_all.bash
1875 git rm run_scrape_all.bash
1959 git status
@dbase = PG.connect(
:user => 'scrape',
:password => 'test2bob23',
:dbname => 'ep_development'
# :server => "#{db_host}",
# :user => "#{db_user}",
# :password => "#{db_pass}",
# :dbname => "#{db_db}"
# :encoding => "#{db_charset}"
)