Skip to content

Instantly share code, notes, and snippets.

View richlow's full-sized avatar

Rich Low richlow

View GitHub Profile
@richlow
richlow / gist:f1ea7196567798d8c1753670aa6838b9
Created February 15, 2023 05:24
Rails star rating helper
#################################
# Pre-req: install font awesome (fonts)
#################################
#star_rating_helper.rb
module StarRatingHelper
def star_rating(rating)
full_star = "fas fa-star"
empty_star = "far fa-star"
stars = []
<?
# MIT license, do whatever you want with it
#
# This is my invoice.php page which I use to make invoices that customers want,
# with their address on it and which are easily printable. I love Stripe but
# their invoices and receipts were too wild for my customers on Remote OK
#
require_once(__DIR__.'/../vendor/autoload.php');
@richlow
richlow / 0 Sign up for AWS C9 IDE!
Created October 25, 2020 06:59 — forked from yshmarov/0 AWS Cloud9
The Complete Ruby on Rails 6 Web Development Course 2020 - notes
## AWS ##
# All AWS C9 envments
https://eu-central-1.console.aws.amazon.com/cloud9/home?region=us-east-1
# Instance management
https://console.aws.amazon.com/ec2/home?region=eu-central-1#Instances:sort=instanceId
# Create AWS C9 environment
https://eu-central-1.console.aws.amazon.com/cloud9/home/create