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
id | name | slogan | |
---|---|---|---|
1 | KFC | Finger lickin good | |
2 | Mcdonalds | I’m lovin it | |
3 | Domino’s Pizza | 30 minutes guaranteed | |
4 | Taco bell | taco time |
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
name | price | restaurant_id | |
---|---|---|---|
Zinger Burger | 7 | 1 | |
Colonel Bucket | 19 | 1 | |
McChicken Burger | 5 | 2 | |
Cheeseburger | 4 | 2 | |
Chicken Pepperoni Pizza | 8 | 3 | |
Spicy Tuna Pizza | 9 | 3 | |
Grilled Burrito | 6 | 4 | |
Nachos Bowl | 3 | 4 |
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
//: [Previous](@previous) | |
import Foundation | |
//: [Next](@next) | |
class URLSessionOperation : Operation { | |
var task : URLSessionDownloadTask? | |
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
FROM ruby:2.5.0 | |
ENV CHROMIUM_DRIVER_VERSION 75.0.3770.90 | |
ENV CHROME_VERSION 75.0.3770.90-1 | |
RUN apt-get update && apt-get install -y --no-install-recommends wget xvfb xauth unzip \ | |
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ | |
&& echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list \ | |
&& apt-get update -y \ | |
&& wget http://dl.google.com/linux/deb/pool/main/g/google-chrome-unstable/google-chrome-unstable_${CHROME_VERSION}_amd64.deb \ |
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
FROM ruby:2.5.0 | |
RUN apt-get update && apt-get install -y --no-install-recommends wget xvfb xauth unzip \ | |
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ | |
&& echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list \ | |
&& apt-get update -y \ | |
&& apt-get install -y google-chrome-stable \ | |
&& wget -q --continue -P /usr/local/bin "https://chromedriver.storage.googleapis.com/73.0.3683.68/chromedriver_linux64.zip" \ | |
&& unzip /usr/local/bin/chromedriver* -d /usr/local/bin \ | |
&& rm /usr/local/bin/chromedriver*.zip \ |
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
FROM ruby:2.5.0 | |
RUN apt-get update && apt-get install -y --no-install-recommends wget xvfb unzip \ | |
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ | |
&& echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list \ | |
&& apt-get update -y \ | |
&& apt-get install -y google-chrome-stable \ | |
&& wget -q --continue -P /usr/local/bin "http://chromedriver.storage.googleapis.com/2.40/chromedriver_linux64.zip" \ | |
&& unzip /usr/local/bin/chromedriver* -d /usr/local/bin \ | |
&& rm /usr/local/bin/chromedriver*.zip \ |
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
let alertExpectation = XCTestExpectation(description: "testAlertShouldAppear") | |
DispatchQueue.main.asyncAfter(deadline: .now() + 1.0, execute: { | |
XCTAssertTrue(loginVC.presentedViewController is UIAlertController) | |
alertExpectation.fulfill() | |
}) | |
wait(for: [alertExpectation], timeout: 1.5) |
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
sudo defaults write /Library/Preferences/com.apple.loginwindow LoginwindowText "This computer is attached to iCloud account and valueless if loss. Please return by calling [phone] , reward included." |
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 'rake' | |
# make sure to set correct relative path | |
load File.expand_path("../../../../lib/tasks/once.rake", __FILE__) | |
describe 'some name' do | |
before(:all) do | |
# because rake task accepts different environment | |
Rake::Task.define_task(:environment) | |
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 'quickbooks-ruby' | |
require 'oauth2' | |
require 'dotenv' | |
Quickbooks.sandbox_mode = true | |
OAUTH_CONSUMER_KEY = ENV['OAUTH_CLIENT_ID'] | |
OAUTH_CONSUMER_SECRET = ENV['OAUTH_CLIENT_SECRET'] |