Skip to content

Instantly share code, notes, and snippets.

@qualalia
qualalia / .emacs
Created September 15, 2020 19:58
emacs config file
;;; .emacs --- config
;;; Commentary:
;;; Code:
(setq visible-bell t)
(setq ring-bell-function 'ignore)
(defun prettify-file ()
"Prettifies the current file."
(when (and (boundp 'prettify-shell-command) prettify-shell-command)
@qualalia
qualalia / laravel-with-react-setup.md
Created September 15, 2020 19:48
Laravel + React

Laravel + React

Integrating React with Laravel is trivial when starting a new project; it's two commands.

composer require laravel/ui
php artisan ui react

(Optionally add the --auth flag to generate login & registration scaffolding.)

Scaffolding

@qualalia
qualalia / Valentines-REACTO-Act-3.md
Last active March 18, 2020 22:54
Valentines Week REACTO : ACT III

Act III

starry heart

Following the secret marriage, Juliet's cousin Tybalt sends a challenge to Romeo. Romeo refuses to fight, which angers his friend, Mercutio, who then fights with Tybalt. Mercutio is accidentally killed as Romeo intervenes to stop the fight. In anger, Romeo pursues Tybalt, kills him, and is banished by the prince.

Juliet is anxious when she learns of these happenings. Friar Laurence arranges for Romeo to spend the night with Juliet before he leaves for Mantua. Meanwhile, Lord Capulet retaliates by re-scheduling Juliet and Count Paris' marriage to the next day. Juliet's parents are angry when Juliet doesn't want to marry Paris, but they don't know about her secret marriage to Romeo.

![pub?](https://c

const { makeMap } = require('../../fractal-noise.js')
//const {isoLines} = require('marchingsquares')
let map = makeMap()
const TILE_SIZE = 8
const SEA_LEVEL = 47
const drawMap = (ctx) => {
map.forEach((row, i) => {
row.forEach((x, j) => {