Skip to content

Instantly share code, notes, and snippets.

View rexmortus's full-sized avatar
📝
Writing stories

Alec Sloman rexmortus

📝
Writing stories
  • Melbourne, Australia
View GitHub Profile
{
"id": "tokenmagic",
"title": "Token Magic FX",
"description": "<p>Add special effects and animations on your tokens, tiles, drawings and templates.</p>",
"version": "0.6.3.2",
"compatibility": {
"minimum": "10",
"verified": "10.291"
},
"authors": [
@rexmortus
rexmortus / characters.txt
Created May 16, 2023 11:36
Character descriptions
1. Arannis Windrider
- Race: Wood Elf
- Class: Ranger
- Background: Outlander
- Motivation: Arannis seeks to protect the natural world from encroaching civilization and preserve the balance between nature and society. They feel a deep connection to the forests and are determined to defend them from any threat.
- Personality: Arannis is a quiet and observant elf who prefers solitude in the wilderness. They are skilled in archery and tracking, relying on their keen senses and knowledge of nature. While calm and collected, Arannis can be fiercely protective and driven by their sense of duty.
2. Kaelin Ironfist
- Race: Dwarf
- Class: Fighter
@rexmortus
rexmortus / background-jobs-and-sidekiq.md
Created May 31, 2019 00:10
Notes on 'Background Jobs & Sidekiq'

Background Jobs & Sidekiq

In a web application there can be many time-consuming processes which, if we execute them synchronously within a controller, will block the user from receiving a response (which they’ll experience as painfully slow load times) and in today’s world, this is completely and utterly unacceptable!

Here are some examples:

  • Preparing a download, say zip file, where file compression happens on-the-fly (e.g. Google Docs)

  • POSTing a request to an external API (e.g. sending a message to Slack)

@rexmortus
rexmortus / building-an-api.md
Created May 29, 2019 00:47
Notes on 'Building an API'

Building an API

0.0 Prerequisites

0.1 Check which version of Ruby is installed:

ruby -v
ruby 2.6.3p62 (2019-04-16 revision 67580) 
@rexmortus
rexmortus / payment-and-stripe.md
Created May 28, 2019 00:18
Notes on 'Payment & Stripe'

Payment & Stripe

0.0 Pre-requisites

0.1 Check which version of Ruby is installed:

ruby -v
ruby 2.6.3p62 (2019-04-16 revision 67580) 

Payment & Stripe

0.0 Pre-requisites

0.1 Check which version of Ruby is installed:

ruby -v
ruby 2.6.3p62 (2019-04-16 revision 67580) 
@rexmortus
rexmortus / choo-chartist.js
Last active August 14, 2016 04:10
Basic `choo-chartist` example (destroys chart)
const html = require('choo/html')
const Chartist = require('chartist')
let chartist;
const data = {
labels: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'],
series: [
[12, 9, 7, 8, 5],
]
@rexmortus
rexmortus / explanation-of-the-robot
Created December 22, 2014 04:24
Explanation of the Robot, section 4
## 4. Application Knowledge
A useful starting point when designing an application is to ask the question, "What does this application need to know?"
In the robot example, our application needs to know:
- How to read input from the user, both dynamically and from a file
- How to interperet input as commands for the robot
- What are acceptable commands
- How to move the robot around a surface
find . -name '*.md' -print0 | while read -d $'\0' -r file ; do
printf '\e[1;34mSpellchecking: %s\e[0m\n' "$file"
ispell -a < "$file" | grep ^\&
done
find . -name '*.md' -print0 | while read -d $'\0' -r file ; do
printf '\e[1;34mSpellchecking: %s\e[0m\n' "$file"
ispell -a < "$file" | grep ^\&
done