Skip to content

Instantly share code, notes, and snippets.

View remarcable's full-sized avatar
🌱
Growing and thriving!

Marc remarcable

🌱
Growing and thriving!
View GitHub Profile
@remarcable
remarcable / Setup.md
Last active January 30, 2023 14:50
Setting up Netlify with Ghost in subdirectory on Digitalocean

I didn't want to host ghost on a subdomain like blog.<domain>. Instead, I wanted it under a subdirectory like /blog.

On this page, I want to describe the steps you need to take to do just that with the following stack:

Steps

  1. Install ghost on a new Digitalocean droplet using these instructions. Choose a (temporary) subdomain for ghost and add it to Cloudflare or your DNS. I chose https://my.mental.garden.
@remarcable
remarcable / practice.js
Last active June 11, 2018 19:09
Musical practice in JS
// ************************************
// Marc on how to practice effectively
// ************************************
import Universe from 'universe';
import Player from 'player';
// teaching and practicing methods, implement .teach() and .helpWithPractice()
import flowkey from 'flowkey';
import PianoTeacher from 'piano-teacher';
@remarcable
remarcable / mod-div.js
Created February 16, 2018 12:19
Modulo and Division Operator
function mod(x1, x2) {
if (Math.floor(x1) !== x1 || Math.floor(x2) !== x2) { throw new Error("no floats, please :)"); }
while (x1 >= x2) {
x1 -= x2;
}
return x1;
}
I
II
III
IV
V
VI
VII
VIII
IX
X
// rows und columns sind ja weitestgehend vertauschbar
// Unsere Definition: Alle Subarrays entsprechen den Rows und alle
// Elemente mit dem selben Index entsprechen einer Column
const sodoku = [
// a, b, c, d, e, f, g, h, i
[1, 2, 3, 4, 5, 6, 7, 8, 9], // 1
[1, 2, 3, 4, 5, 6, 7, 8, 9], // 2
[1, 2, 3, 4, 5, 6, 7, 8, 9], // 3
[1, 2, 3, 4, 5, 6, 7, 8, 9], // 4
[1, 2, 3, 4, 5, 6, 7, 8, 9], // 5
@remarcable
remarcable / atom-plugins.md
Created January 28, 2017 12:57
Important atom plugins

apm install editorconfig language-babel linter linter-eslint file-icons atom-material-syntax atom-material-ui