Skip to content

Instantly share code, notes, and snippets.

@Rudxain
Last active December 8, 2022 14:04
Show Gist options
  • Save Rudxain/cbaba8fdf56d0c1255217e96a975e98c to your computer and use it in GitHub Desktop.
Save Rudxain/cbaba8fdf56d0c1255217e96a975e98c to your computer and use it in GitHub Desktop.
Remember Fibonacci indent? What if we use other math sequences in the OEIS? (I'll probably convert this into a repo))
// Prime
foo {// 0 isn't prime, but we need it
bar {// 1 gets totally ignored lol
baz {
quz {
quux {
corge {
grault {
garply {
// waldoo
}
}
}
}
}
}
}
}
// Triangular (Factorial but adding)
foo {
bar {
baz {
quz {
quux {
corge {
grault {
garply {
// waldoo
}
}
}
}
}
}
}
}
// Logarithmic (kinda)
foo {
bar {
baz {
quz {
quux {
corge {
grault {
garply {
// waldoo
}
}
}
}
}
}
}
}// minimum is 1 space, max is 16
// Quadratic
foo {
bar {
baz {
quz {
quux {
corge {
grault {
garply {
// waldoo
}
}
}
}
}
}
}
}
// I ain't doing Cubic
// imagine using any Collatz-related sequence in the OEIS
// total chaos
@Rudxain
Copy link
Author

Rudxain commented Sep 4, 2022

Related. That link will probably be useful to me and everyone else that wants to implement a different indent sequence in VScode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment