How to run examples:
- Run $ createdb nplusonedb to create DB
- Run specs $ rspec demo.rb
| class TestCase < ActiveSupport::TestCase | |
| def setup | |
| super | |
| DatabaseCleaner.start | |
| @queries = [] | |
| ActiveSupport::Notifications.subscribe('sql.active_record') do |_, _, _, _, payload| | |
| @queries << payload[:sql] unless payload[:name].in? %w[CACHE SCHEMA] | |
| end | |
| end |
| /** | |
| * Colours taken from Dieter Rams legendary production collection for Braun. Made by Chad Ashley. | |
| * Source: http://blog.presentandcorrect.com/rams-palettes | |
| * Demo: https://xaviesteve.com/pro/colorpalettes/ | |
| * Try it: https://xaviesteve.com/pro/sass-palette/ | |
| * Compiled by Xavi Esteve | |
| */ | |
| // DR06 |
How to run examples:
| 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 | |
| source "https://rubygems.org" |
| ### | |
| ### | |
| ### UPDATE: For Win 11, I recommend using this tool in place of this script: | |
| ### https://christitus.com/windows-tool/ | |
| ### https://github.com/ChrisTitusTech/winutil | |
| ### https://www.youtube.com/watch?v=6UQZ5oQg8XA | |
| ### iwr -useb https://christitus.com/win | iex | |
| ### | |
| ### OR take a look at | |
| ### https://github.com/HotCakeX/Harden-Windows-Security |
| begin | |
| ['oily_png', 'pp'].each do |g| | |
| require g | |
| end | |
| rescue LoadError => e | |
| puts "Could not load '#{e}'"; exit | |
| end | |
| class Hough | |
| Convert = "/usr/local/bin/convert" |