Skip to content

Instantly share code, notes, and snippets.

/* Stylus - Google G Suite dark mode */
/* Get Stylus extension for your browser:
* https://chromewebstore.google.com/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne?pli=1
* https://addons.mozilla.org/en-US/firefox/addon/styl-us/
*/
/* Create a style, appling to:
* URLs matching the regexp: https://(drive|docs).google.com/.*
*/
@DerSaidin
DerSaidin / date-slug-proposal.md
Created July 22, 2022 06:00
Zola Proposal: Config option to keep dates in slugs

Pages like content/2022-07-21_topic/index.md or content/2022-07-21_topic.md have the date removed, so zola will choose the slug: topic.

For some blogs, the date is a key part of the page title, and this behavior leads to entries with the same slug.

I would like to have a config option to disable this behavior. Others have asked for this previously.

With this option, pages like content/2022-07-21_topic/index.md or content/2022-07-21_topic.md would keep their date, so zola would choose the slug: 2022-07-21-topic.

The main code to change for this is here.

@DerSaidin
DerSaidin / README.md
Created December 13, 2020 17:51
swaywm: Second monitor off on startup

My computer is connected to a monitor and a TV. I only use the TV as a screen some of the time. I want it to start disabled, and have a key bind to toggle it on.

In ~/.config/sway/config

# Toggle TV display (not usually in use)
bindsym $mod+t exec ~/.config/sway/output_toggle_name.sh $output-tv

# Configure monitors.
exec ~/.config/sway/startup.sh
@DerSaidin
DerSaidin / a.cc
Created November 11, 2018 18:59
LLVM Optimization pass breakdown example
inline int square(int num) {
return num*num*num*num*num*num*num*num;
}
int foo(int n, int num) {
int res = 0;
for(int i = 0; i < n; i++)
res += square(num);
return res;
}
@DerSaidin
DerSaidin / gist:9670e7c235573b5ed0d7
Created April 26, 2015 14:28
la .trogdor. te tavla fo la lojban
.i la .trogdor. remna
sa
.i la .trogdor. drakono remna
sa
.i la .trogdor. ba'e drakono
.i ku'i ri je'a ca'a me la .trogdor.
.i jelgau lo tolnobli
.i jelgau lo gugde
.i jelgau lo ro prenu
@DerSaidin
DerSaidin / gist:b59ede5e7ef23828d23a
Created April 26, 2015 05:08
gismu pairs with Levenshtein distance of 1
1 bacru to dacru
1 badna to barna
1 badna to basna
1 badri to bakri
1 badri to gadri
1 bakfu to baktu
1 bakfu to dakfu
1 bakni to bakri
1 bakni to balni
1 bakni to nakni
["text",["text_1",["I_clause",[["I","i"]]],["text_1",["paragraphs",["paragraph",["statement",["statement_1",["statement_2",["statement_3",["sentence",[["terms",["terms_1",["terms_2",["term",["term_1",["sumti",["sumti_1",["sumti_2",["sumti_3",["sumti_4",["sumti_5",["sumti_6",["LA_clause",[["LA","la"]]],[["CMENE_clause",[["CMENE",["cmene","lojban"]]]]]]]]]]]]]]]]]],["bridi_tail",["bridi_tail_1",["bridi_tail_2",["bridi_tail_3",["selbri",["selbri_1",["selbri_2",["selbri_3",["selbri_4",["selbri_5",["selbri_6",["tanru_unit",["tanru_unit_1",["tanru_unit_2",["BRIVLA_clause",[["BRIVLA",["gismu","tutci"]]]]]]]]]]]]]],["tail_terms",["terms",["terms_1",["terms_2",["term",["term_1",["sumti",["sumti_1",["sumti_2",["sumti_3",["sumti_4",["sumti_5",["quantifier",["number",["PA_clause",[["PA","so'o"]]]]],["sumti_6",["KOhA_clause",[["KOhA","da"]]]],["relative_clauses",["relative_clause",["relative_clause_1",["GOI_clause",[["GOI","no'u"]],["post_clause",[["indicators",[["indicator",["UI_clause",[["UI","mu'a"]]]]]]]]],["term",["t
{
text:".i la .lojban. tutci so'o da no'u mu'a lei zifre finti ku ce lei saske .e lei se pensi ku ce lei ca'a se gasnu"
camxes_parse: [
"text",
[
"text_1",
[
"I_clause",
[
[
@DerSaidin
DerSaidin / gist:47414b639108a028bdb9
Created June 11, 2014 14:43
FAhA1 FAhA2 feedback
=====
FAhA1
=====
All
----
- "the event", doesn't have to be an event. It could be an object.
- {lo plise be'a mi kukte} = "The apple(s) to the north of me is/are delicious."
What are the official goals of lojban?
It is important to have an understanding of the goals for ongoing work (finishing BPFK sections, etc.),
otherwise we will end up with stuff that is inconsistent.
I think in the past people involved have an implicit understanding of the goals, due to having been around much longer, and/or closely involved in BPFK.
I am after an official clear statement of goals for lojban (or reference to one), for the benefit of those of us who have not been around for so long.