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
//http-client.module.ts | |
import { Module } from '@nestjs/common'; | |
import { HttpModule } from '@nestjs/axios'; | |
import { HttpClientService } from './http-client.service'; | |
@Module({ | |
imports: [ | |
HttpModule.register({ | |
timeout: 20000, |
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
client = Aws::QuickSight::Client.new | |
datasource = client.create_data_source( | |
aws_account_id: account_id, | |
data_source_id: data_source_id, | |
type: 'S3', | |
name: data_source_id, | |
data_source_parameters: { | |
s3_parameters: { | |
manifest_file_location: { | |
bucket: manifest.bucket, |
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
# frozen_string_literal: true | |
begin | |
require "bundler/inline" | |
rescue LoadError => e | |
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler" | |
raise e | |
end | |
gemfile(true) do |
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 Vehicle | |
def run | |
refill | |
load | |
end | |
end | |
class Car < Vehicle | |
def load | |
# load passengers |