Skip to content

Instantly share code, notes, and snippets.

@royalgiant
royalgiant / test.md
Created August 6, 2019 21:17
Hello World Markdown.

Hello World

This is content converted from Markdown!

Here's a JSON sample:

{
  "foo": "bar"
}
@royalgiant
royalgiant / test.html
Created August 6, 2019 21:19
Hello World Html.
<html>
<head>
<style>
h1 {
font-family: Calibri;
}
</style>
</head>
<body>
<h1>Hello World!</h1>
@royalgiant
royalgiant / remove_sport_dependent_services.rb
Last active September 9, 2020 20:04
STC-36947 - Remove ServiceConfigurationSport and StudentServiceCategorySport with a sport ID that no longer exists
# TO USE THIS SCRIPT
# Copy and Paste into a new file in campus/script/remove_sport_dependent_services.rb
# DRY RUN (test): ruby script/remove_sport_dependent_services.rb
# RUN for real: ruby script/remove_sport_dependent_services.rb --dry-run=false
class RemoveSportDependentServices
attr_reader :dry_run
def initialize(options = {})
@dry_run = true