<!-- ERROR -->
Jest encountered an unexpected token
Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.
Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.
By default "node_modules" folder is ignored by transformers.
This file contains 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
class Http | |
class << self | |
def send_request(url, options = {}, verb = :get) | |
headers = options[:headers] | |
headers = headers.present? ? default_headers.merge(headers) : default_headers | |
body = options[:body].presence | |
body = body.to_json if headers['Content-Type'] == 'application/json' | |
query = options[:query].presence | |
payload = verb == :get ? query : body |
- Change your database RDS instance security group to allow your machine to access it.
- Add your ip to the security group to acces the instance via Postgres.
- Make a copy of the database using pg_dump
$ pg_dump -h <public dns> -U <my username> -f <name of dump file .sql> <name of my database>
- you will be asked for postgressql password.
- a dump file(.sql) will be created
- Restore that dump file to your local database.
- but you might need to drop the database and create it first
$ psql -U <postgresql username> -d <database name> -f <dump file that you want to restore>
- the database is restored
This file contains 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
# https://soravjain.com/digital-marketing-agencies-india/ | |
data = [] | |
email= nil | |
address=nil | |
phone=nil | |
website=nil | |
services=nil | |
brands=nil | |
doc.css("p").each do |x| | |
if x.content.start_with?("Services") |
OlderNewer