h1,
h2,
h3,
h4,
h5,
h6
color: $c-txtPrimary
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
# refer to https://ozow.com/integrations/ for more information | |
# Ordering with the params matters, see the link above for more information | |
ozow_params = { | |
'SiteCode': 'SOME_SITE_CODE', # find this here https://dash.ozow.com/MerchantAdmin/Site | |
'CountryCode': 'ZA', # only supports ZA currently | |
'CurrencyCode': 'ZAR', # only supports ZAR currently | |
'Amount': 1000.00, # this is R1000.00 | |
'TransactionReference': 'SOME_TEST', # your internal reference to match against | |
'BankReference': "Nice Reference", # the reference that the customer will see on their bank statement |
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
# app/helpers/application_helper.rb | |
module ApplicationHelper | |
include StimulusHelper::HelperMethods | |
end |
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
env: | |
global: | |
- PGPORT=5433 | |
language: ruby | |
rvm: | |
- 2.5.1 | |
cache: |
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
# lib/components/control_indicator_helper.rb | |
module ControlIndicatorComponent | |
def select_arrow(wrapper_options=nil) | |
@arrow_icon ||= begin | |
if options[:arrow_icon].nil? || options[:arrow_icon].to_s == 'default' | |
'' | |
else | |
options[:arrow_icon].to_s.html_safe | |
end |
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
def id_number(birthday, gender) | |
gender = (0..4).to_a.sample if gender == 'female' | |
gender = (5..9).to_a.sample if gender == 'male' | |
random_sequence = rand.to_s[2..5] | |
citizenship = 0 | |
race = 8 | |
id_number = [ | |
birthday.gsub('-', '')[2..-1], | |
gender, |
- Add a new worker to your
Procfile
. In this gist I usedreporter
- Add the Heroku Platform gem to your
Gemfile
- Create the
HerokuReporterDyno
module inlib
or any other auto-loadable path - Create two jobs. A caller (
Reporting::GeneratorJob
) and a runner (Reporting::RunnerJob
) - Deploy
- Once deployed, log into Heroku and change the newly added
reporter
dyno to a Performance M or Performance M dyno
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
@function hsb($hue, $saturation, $brightness, $alpha: 1, $hsl-saturation: '') { | |
@if $brightness == 0 { | |
@return hsla(0, 0, 0, $alpha); | |
} @else { | |
$hsl-lightness: (2 - $saturation / 100) * ($brightness / 2); | |
$hsl-saturation: ($brightness * $saturation) / if($hsl-lightness < 50, $hsl-lightness * 2, 200 - $hsl-lightness * 2); | |
@return hsla($hue, $hsl-saturation, $hsl-lightness, $alpha); | |
} | |
} |
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
// Create helper classes from $foundation-palette | |
@each $color, $hex-value in $foundation-palette | |
.color--#{$color} | |
color: $hex-value | |
.color--bg-#{$color} | |
background-color: $hex-value | |
// Create helper classes from $header-sizes | |
@each $size, $headers in $header-sizes | |
+breakpoint($size) |
NewerOlder