/*
=========================================================
* Volt - Free Bootstrap 5 Dashboard
=========================================================
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"/> | |
| <meta name="viewport" | |
| content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"/> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"/> | |
| <title>Document</title> | |
| <link href="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.3.0/flowbite.min.css" rel="stylesheet"/> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.3.0/flowbite.min.js"></script> |
Sometimes Structs have a number of class types each with their own members.
response = mediaconvert.create_job(job_params)
# This output exampled has been shortened a lot
# => #<struct Aws::MediaConvert::Types::CreateJobResponse job=#<struct Aws::MediaConvert::Types::Job arn="arn:aws:mediaconvert:us-west-1:<protected>:jobs/<hidden>-nedzn7", ..., error_message=nil, id="1691778742640-nedzn7", job_template="arn:aws:mediaconvert:us-west-1:<protected>:jobTemplates/Test Job Template - no Audio", output_group_details=nil, queue="arn:aws:mediaconvert:us-west-1:<protected>:queues/Default", caption_selectors=nil, deblock_filter=nil, denoise_filter=nil, file_input="https://some-bucket.s3-eu-west-1.amazonaws.com/some-path/somehash/test%20vid%20copy%208.mp4", filter_enable=nil, filter_strength=nil, input_clippings=nil, program_number=nil, psi_control=nil, timecode_source="ZEROBASED", video_selector=#<struct Aws::MediaConvert::Types::VideoSelector, output_groups=[#<struct Aws::MediaConvert::Types::OutputGroup c
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 'optparse' | |
| def generate_links | |
| # insert code to generate download links here | |
| puts "Download links generated." | |
| end | |
| def download_packages(mandatory_only) | |
| # insert code to download packages here | |
| puts "Packages downloaded." |
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_relative 'lpx_links' | |
| describe "lpx_links" do | |
| describe "#generate_links" do | |
| it "generates download links" do | |
| expect { generate_links }.to output("Download links generated.\n").to_stdout | |
| end | |
| end | |
| describe "#download_packages" do |
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
| # In config/route.rb | |
| Rails.application.routes.draw do | |
| # other routes... | |
| # Allows us to use link_to for session destroy | |
| devise_scope :user do | |
| get "/users/sign_out", as: "sign_out", to: "devise/sessions#destroy" | |
| end | |
| end |
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
| # The Rails ActiveSupport core extensions provide additional | |
| # functionality to any Rails or Ruby application. | |
| require "active_support" | |
| # ActiveSupport#blank? | |
| nil.blank? # => true | |
| false.blank? # => true | |
| {}.blank? # => true | |
| [].blank? # => true | |
| "".blank? # => 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
| #!/usr/bin/env ruby | |
| require "fileutils" | |
| # path to your application root. | |
| APP_ROOT = File.expand_path("..", __dir__) | |
| def system!(*args) | |
| system(*args) || abort("\n== Command #{args} failed ==") | |
| end |
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
| # = SimpleSpy | |
| # Dev util to show the filename (path), line number, object type | |
| # and value in the Rails console. | |
| # === Examples: | |
| # spy val = Object.new | |
| # | |
| # "---------------------------------------------------------------------- | |
| # properties.rb:13:in `<main>'+ |