Skip to content

Instantly share code, notes, and snippets.

@rsxdalv
rsxdalv / jekyll.html
Created May 23, 2016 10:56
Hacky solution to import .md docs into a gh-page page (w/o front matter)
---
files:
- game/all/GET.md
- player/ranking/all/GET.md
- player/ranking/GET.md
- rotation/min/GET.md
- rotation/GET.md
- static/legends/id/GET.md
- static/realms/GET.md
- static/server/GET.md

Realms banning input binding

Realms are the keys that need to be selected exclusively, with some options disabled as the process goes on.

In terms of form elements, this can be either checkboxes or radio buttons:

Simplification

By using form elements with documented altered behaviour, the system is further

0xe4759025217db0a30ac923e297b8aa73cd4a97c5
@rsxdalv
rsxdalv / shell.ts
Created September 28, 2017 10:16
Clear output colors (which npm scripts screw up o-so-often)
export const clearColor = () => console.log("\x1b[0m");
const badSymbol = '​';
exports.trimQuokka = x => x.replace(new RegExp(badSymbol, "g"), "")
# Extended from https://superuser.com/a/1187598
$Word = New-Object -ComObject Word.Application
$Files = Get-ChildItem ".\**\*.docx"
ForEach ($File In $Files) {
$Document = $Word.Documents.Open($File.FullName)
$Name = ($Document.FullName).Replace("docx", "txt")
@rsxdalv
rsxdalv / Link.md
Created April 30, 2018 03:25
Pure CSS checkbox thread
grep -Pzo '(?s)questions = \[\s.*?]' ./{052,056,058,068,093,106,113,114,116,132,150,151,167}/declaration.ts > questions.txt
import * as R from "ramda";
/**
* The result of this exercise shows that
* even with a 700mb large array attached
* to an object, one can keep a tight event
* loop should they not touch that data.
* This accidentally also is a point for
* Judy Trees
*/
(entry|exit)(X|Y)=-?\d\.?\d*;