Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Activity for General Sebast1an‭

Type On... Excerpt Status Date
Edit Post #284059 Initial revision about 3 years ago
Answer A: Tips in golfing using Lua
Convenient whitespace removal Here are instances where you can remove whitespace: Strings If you assigned or printed a string, then the next supposed line of code can lean on the right double-quote: --[[ name = "Mark" print(name) ]] name="Mark"print(name) Tr...
(more)
about 3 years ago
Comment Post #283858 @#53837 The reason it won't appear when posted in main.
(more)
about 3 years ago
Comment Post #283770 @#8176 When I say "preferably", it meant that the solution is most suited as such, not that it *has to be*. You can use macros too.
(more)
about 3 years ago
Edit Post #282153 Post edited:
about 3 years ago
Edit Post #284040 Post edited:
about 3 years ago
Comment Post #284040 @#53579 What do you mean? The count or the order?
(more)
about 3 years ago
Edit Post #284045 Initial revision about 3 years ago
Answer A: Diagonalized alphabet
[C (clang)], 206 bytes main(i){chars="YWUSQOMKIGECABDFHJLNPRTVXZ";for(i=13;i>0;printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c\n",s[-1+i],s[0+i],s[1+i],s[2+i],s[3+i],s[4+i],s[5+i],s[6+i],s[7+i],s[8+i],s[9+i],s[10+i],s[11+i],s[12+i]),i--);} Try it online! yez ai m gud progamer!11!
(more)
about 3 years ago
Suggested Edit Post #282153 Suggested edit:

(more)
helpful about 3 years ago
Edit Post #284044 Initial revision about 3 years ago
Question Suggestions for the new header banner/background
I'm bored. Let's do something. lmao While I was Somewhere Else, I went to make suggestions for designs on their sites, and no impact really occured. However, since I'm now a Codidactian (not a Codidactyl, sorry), I want to start doing the same here. And let's start off with the upcoming site desig...
(more)
about 3 years ago
Edit Post #282302 Post edited:
about 3 years ago
Edit Post #283770 Post edited:
about 3 years ago
Comment Post #284040 @#53196 Man, the mobile link on a computer is sick.
(more)
about 3 years ago
Edit Post #284040 Post edited:
about 3 years ago
Edit Post #284040 Post edited:
about 3 years ago
Comment Post #284035 @#53588 Eh, there'll be triangles soon.
(more)
about 3 years ago
Edit Post #284040 Initial revision about 3 years ago
Article Collatz conjecture; Count the tries to reach $1$ [released]
Background Check out this video on the Collatz conjecture, also known as A006577[^1]. If you don't know what this is, we're given an equation of $3x + 1$, and it is applied this way: - If $x$ is odd, then $3x + 1$. - If $x$ is even, then $\frac{x}{2}$. This will send us in a loop of `4 →...
(more)
about 3 years ago
Edit Post #284036 Initial revision about 3 years ago
Answer A: Tips for golfing in Python
Use `lambda`s instead of functions At most times, `lambda`s tend to make smaller code, which is helpful in golfing. Assigning a `lambda` is easy, just do: ``` lambda f:whatever ``` There are many answers that uses this strategy (I don't use it). Here are some examples: - Make $2 + 2 = 5$ ...
(more)
about 3 years ago
Edit Post #284035 Initial revision about 3 years ago
Article Draw shapes: E1 - Square/Rectangle
Challenge Take input of a non-whitespace character and a positive integer $n$, and print out a square (or rectangle) of size $n$ using the inputted character. Shortest program wins! Test Cases ```none n = 1, c = $ $$$ $ $ $$$ n = 3, c = ^ ^^^^^ ^ ^ ^ ^ ^ ^ ^^^^^ n = 10, ...
(more)
about 3 years ago
Edit Post #284034 Initial revision about 3 years ago
Answer A: Tips for golfing in Python
`import` You can import some libraries and if you find yourself using: ``` from lib import ``` Remove the space between `import` and ``, because it works for whatever reason.
(more)
about 3 years ago
Edit Post #284028 Post edited:
about 3 years ago
Edit Post #284028 Initial revision about 3 years ago
Answer A: Tips for golfing in Python
Combine conditionals Python has its fair share of comparison operators and can actually be used in a single conditional. For example: ``` x == 2 and y == 2 ``` can be: ``` x==y==2 ``` Used on Make $2 + 2 = 5$. @celtschk also mentions that different operators can also enter a single ...
(more)
about 3 years ago
Edit Post #283982 Post edited:
More golfing.
about 3 years ago
Suggested Edit Post #283982 Suggested edit:
More golfing.
(more)
helpful about 3 years ago
Edit Post #284026 Initial revision about 3 years ago
Answer A: Tips for golfing in Python
Replace `for` loops with string multiplication Let's say we have: for i in range(6):print(end="#") Try it online! This basically outputs `#` 6 times, which is self-explanatory in the code itself. Perhaps we can shorten it with string multiplication: print(end="#"6) Tr...
(more)
about 3 years ago
Edit Post #284024 Initial revision about 3 years ago
Answer A: "Hello, World!"
[jq] `--null-input` `--raw-output`, 15 bytes "Hello, World!" Try it online! They kept saying that [jq] is the language of September 2021. Still surprised no one even made a `Hello, World!` on it.
(more)
about 3 years ago
Edit Post #284023 Post edited:
about 3 years ago
Edit Post #283858 Post edited:
about 3 years ago
Edit Post #283858 Post edited:
about 3 years ago
Edit Post #284023 Initial revision about 3 years ago
Question Stairs? Stairs! Stairs.
Challenge - Make a program that takes input of an integer that's $n > 1$ and print out a staircase using a specific character for stair basing (hashes (`#`) for demonstration; you can use spaces, but not tabs or other whitespace characters), slashes (`/`), and underscores (``). - The basis of the...
(more)
about 3 years ago
Comment Post #283858 @#53837 They're the names of my stuffed toys, both are male. I don't know what flavortext is supposed to be, but I can tell you that the Mark is my username.
(more)
about 3 years ago
Edit Post #284013 Initial revision about 3 years ago
Answer A: "Hello, World!"
[SQLite], 21 bytes select'Hello, World!' Try it online!
(more)
about 3 years ago
Edit Post #284012 Initial revision about 3 years ago
Answer A: "Hello, World!"
[Emoji], 24 bytes 💬Hello, World!💬➡ Try it online!
(more)
about 3 years ago
Edit Post #284002 Post edited:
about 3 years ago
Comment Post #283751 @#53310 As long as the output is similar to the output of the test cases, you're good.
(more)
about 3 years ago
Comment Post #283751 @#53310 A list? What do you mean and how would it look like?
(more)
about 3 years ago
Edit Post #283858 Post edited:
about 3 years ago
Comment Post #284004 Yep, it matters. Strangely, it outputs the string format if without `--raw-output`...
(more)
about 3 years ago