Skip to content

Instantly share code, notes, and snippets.

View nickredmark's full-sized avatar

Nick Redmark nickredmark

View GitHub Profile
@nickredmark
nickredmark / alcibiades.json
Created April 9, 2020 05:30
Tweetable Socratic dialogues
[
{
"author": "SOCRATES",
"text": [
"I dare say that you may be surprised to find, O son of\nCleinias, that I, who am your first lover, not having spoken to you\nfor many years, when the rest of the world were wearying you with their\nattentions, am the last of your lovers who still speaks to you.",
"The\ncause of my silence has been that I was hindered by a power more\nthan human, of which I will some day explain to you the nature; this\nimpediment has now been removed; I therefore here present myself before\nyou, and I greatly hope that no similar hindrance will again occur.",
"Meanwhile, I have observed that your pride has been too much for the\npride of your admirers; they were numerous and high-spirited, but they\nhave all run away, overpowered by your superior force of character; not\none of them remains.",
"And I want you to understand the reason why you\nhave been too much for them. You think that you have no need of them\nor of any other man, for you have great posse
@nickredmark
nickredmark / convert.js
Created March 15, 2020 22:15
Jordan Hall Thread
const { readFileSync, writeFileSync } = require('fs')
const xpath = require('xpath')
const { DOMParser } = require('xmldom')
const start = async () => {
const xml = readFileSync('./src/data/thread.html', 'utf8')
const doc = new DOMParser({ errorHandler: () => {} }).parseFromString(xml)
const thread = xpath.select(
'/html/body/div[1]/div[3]/div[1]/div/div[2]/div[2]/div[2]/div[2]/div/div/div/div/div/div/div/div[1]/div/div[2]',
@nickredmark
nickredmark / README.md
Last active February 16, 2020 16:20
teststreem

Just a test streem.

@nickredmark
nickredmark / streem.mdl
Last active January 31, 2020 12:25
sth
id: 01DZXEF5FTZ04Z2NJDQXR4SHH0
created: 2020-01-31 10:21 +0100
foo
---
id: 01DZXEF91F8JKG3EGGTM7D41AA
created: 2020-01-31 10:21 +0100
parent: 01DZXEF5FTZ04Z2NJDQXR4SHH0
bar
@nickredmark
nickredmark / streem.mdl
Last active February 20, 2020 19:56
streem
id: 01E02KMQHSEGXARDTBN4Y8JE3S
created: 1565475249462
Thoughts
---
id: 01E02KMQJ2XC71999GTXEWV78W
parent: 01E02KMQHSEGXARDTBN4Y8JE3S
created: 1565475249462
my stream of consciousness
@nickredmark
nickredmark / Lane.ts
Last active November 16, 2019 22:09
Lane.ts
const Lane = ({
getId,
id,
data,
sort,
index,
onSetCardTitle,
onSetLaneTitle,
onCreateCard
@nickredmark
nickredmark / Card.ts
Last active November 16, 2019 22:10
Card.ts
const Card = ({ getId, index, id, data, onSetTitle }) => {
const card = data[id];
const [editing, setEditing] = useState();
const [cardTitle, setCardTitle] = useState(card.title);
return (
<div className="card">
{editing ? (
<form
onSubmit={e => {
e.preventDefault();
@nickredmark
nickredmark / Board.ts
Last active November 16, 2019 22:07
Board.ts
export const Board = ({
id,
getId,
data,
onCreateLane,
onCreateCard
onSetBoardTitle,
onSetCardTitle,
onSetLaneTitle,
}) => {