# Tag Info

0

50-450 rep for answers in Scala I'm giving out bounties for answers in Scala, an amazing language that is unfortunately rarely used here. Any Scala answers gets 50 rep from me, and if the following are met, you can get a bonus: Good explanation: +50-100 Cleverly done: +50-200 Wins challenge when posted: +100 The first two are subjective, but I'll try to be ...

-1

Reverse error quine Based on this Write a quine that prints it own source code in reverse, but to STDERR. Penalties +200 using other files I.E. reverse.txt +100 internet usage +20 reading own source code Rules Minimum length of source is 2 bytes No palindromes Standard loopholes apply code-golf, shortest code wins

0

What is the next repdigit? code-golf math A repdigit $r$ is a number containing repeated instances of the same digit $d$. It can be represented as: $r = d \cdot \frac{10^i-1}{9}$, $i \ge 0$, $1 \le d \le 9$ Challenge Given two positive integers $n,j \in \mathbb{N}$, where $j \le n$. Determinine the next repdigit $r = k \cdot n + j$ , where \...

1

Create a QR quine (a "qruine" if you will) Design a QR code that legibly spells with its pixels (or the space between them) the text that it scans to. For example, this QR code scans to the letter A, and also spells out A in white: It does not matter what the scanned and displayed text is; it does not have to be coherent or readable. The winner is ...

0

Output function from one to another I tried to post this twice and I gained negative feedback, so I will put what I have in mind here if anyone is interested. Get a certain output function from one programming language and transfer to another. Criteria: It should function the same way as the original function. Syntax doesn't matter. The function should be ...

3

Compile Commentscript code-golf javascript Commentscript is a variant on Javascript that I made up for the purpose of this question. Only commented-out code is evaluated. Javascript has two types of comments: // this is a single line comment, which starts with // and ends on a newline. /* This is a multiline comment. It starts with /* and ends with */ ...

1

Generalise perfect numbers Let $\sigma(n)$ represent the divisor sum of $n$. Perfect numbers are numbers whose divisor sum equals their double or $\sigma(n) = 2n$. For example, $\sigma(6) = 12 = 2\times6$ Superperfect numbers are numbers whose twice iterated divisor sum equals their double. For example, $\sigma^2(16) = \sigma(\sigma(16)) = \sigma(31)... 7 Remove Nth occurrences 0 I ain't no Fortunate Prime The primorial$p_n\#$is the product of the first$n$primes. The sequence begins$2, 6, 30, 210, 2310$. A Fortunate number,$F_n$, is the smallest integer$m > 1$such that$p_n\# + m$is prime. For example$F_7 = 19$as: p_7\# = 2\times3\times5\times7\times11\times13\times17 = 510510 Adding each number ... 1 Is it zero- or one- indexed? code-golf array-manipulation Your task is to determine whether some arbitrary programming language has zero-indexed or one-indexed arrays based on sample inputs and outputs Inputs An array of integers with at least 2 elements A positive integer index The value of the array at that index Output One of four distinct values ... 0 code-golf file-system Sandbox Questions: Is this unambiguous? Any other tags? Filetype colors For anyone who has spent a headache trying to understand dir_colors with GNU ls, this may be the post for you! We're going to ignore parsing LS_COLORS, or matching globs, and instead we'll focus solely on the interesting part: taking the struct stat.st_mode and ... 3 I just used my first name when I joined Stack Exchange and never changed it. It's a less common form of Arnaud (without an "L") but is however pronounced the same way, i.e. \aʁ.no\ (and not \aʁ.nɔld\ like "Arnold"). I went by the nickname "Axl" many years ago as the sysop of a BBS running on an Atari 520 ST during the pre-... 0 Posted link 1 50-200 rep for interesting zsh answers I will award this if: the answer is interesting you have not been awarded this bounty before it will not cause me to go below 2000 reputation Possible bonuses if: a particularly good explanation is provided it is the first answer to the question it out-golfs me -1 Print your PPCG avatar This is a graphical output question. You have to connect to the codegolf.stackexchange.com in your homepage, scrape and download your avatar and show it in your default image viewer or some other way. Standard loopholes apply, connections only allowed to codegolf.stackexchange.com One language can be only used once, but a user can post ... -2 Enumerate all possible IPv4 addresses Title might make the challenge hard, but it's easy. You have to print all the possible IPv4 addresses from 0.0.0.0 to 255.255.255.255 Standard loopholes apply, no internet usage for this Tags: code-golf,kolmogorov-complexity,string -3 Google search Challenge is very simple, you have to get a string as input and then launch the default web browser, and search for that string in Google. Input string will have only characters a-zA-Z Google search URL is google.com/search?q=querystring Standard loopholes apply, Internet connection allowed, but only to google.com domain Tags: code-golf,... 1 Self improving program quine code-golf restricted-complexity In this challenge you will write a program or function which when run will output a faster solution to this challenge. Formally speaking: you will write a program or function,$T_0$, which takes an integer$x$as input and outputs a program or function (in the same language),$T_1$, which is ... 1 Bytewise look-and-say sequence code-golf The look-and-say sequence is a sequence which begins with 1, 11, 21, 1211, 111221, 312211. To get a term of the sequence from the previous, read the previous out literally: 312211 => one three, one one, two twos,two ones => 13112221 So the next term is 13112221. Given this javascript code (Node.js), which ... 3 My username "sporeball" was essentially generated by brute force. I wanted something simple yet decently interesting, but I'm terrible at coming up with good ideas, so a couple of years ago I wrote a little bit of JavaScript to make up names for me. The code first populates an array with 114 words I picked out by hand (star, rice, cloak, ocean, ... 0 Decode an 8086 MOD R/M code-golfbitwiseparsing I think this might be fun. Or, it might be torture, idk. 😛 If this is popular, I might add a sequel for the significantly more complex 32-bit encoding 😏 Time for a mini objdump. An 8086 MOD R/M field is laid out like so: MOD REG R/M | OPTIONAL DISPLACEMENTS mm rrr rrm | (iiiiiiii) | (iiiiiiii) 76 543 ... -2 English Grammar Checker regular-expressionnatural-languagegrammars Being tired of checking English grammar, I decided to write an English grammar regular expression. Notations All capital letters denote an expression. Quoted strings (like "a") and lower-case letters denotes literals. AB means concatenating expressions / literals A and B together. (... 1 Stack half full or half empty? (worldview of a programming language) Is the glass half full or half empty? It's a common rethoric question to determine a person worldview, which can be optimistic or pessimistic based on the answer given. If i were dealing with a machine i would probably ask "Is the stack half full or half empty?" Let's try and see ... 2 Snail word Very similar to other challenges 2 What can I say - I'm not creative. 0 Subbasis. Generate. Discrete? Objective Given finitely many finite sets, interpret them as a subbasis to generate a space, and decide whether the resulting topology is discrete. Introduction to Topology Given a set$X$, a topology$\mathcal{T}$over$X$is a subset of the power set$\mathcal{P}(X)$such that:$\emptyset, X \in \mathcal{T}$. For ... 0 50 rep for each first sed answer If these conditions are met: Giving away this bounty does not make me go below 400 rep. The question has at least 3 total upvotes The answer is the first answer for that question It's not code-bowling The answer has at least 1 total upvote I approve (I probably will) The answer is in POSIX or Gnu sed, and I'm less ... 0 Introduction Book cipher A Book cipher is a very unique method of a encipher. Here's how's it done: You have a book / a document or a article (something full of text, the more pages of text the better). You have a message to convey (a secret, of some sort) You simply-put read trough the text and the secret message (may come from input, or reading it from 2 ... 1 50-250 rep for first answers in ThumbGolf In celebration of ThumbGolf leaving pre-alpha, I will give the first ThumbGolf answer per user a bounty. I will be following similar rules to Adám's APL challenge. Specifically: The program must not be a normal Thumb-2 program. It must make use of the ThumbGolf runtime. Specifically, if I remove all ThumbGolf ... 0 Let's trick Bob code-golf Bob and I are rivals. We constantly try to "hack" each other, even though neither of us has a clue about hacking or cybersecurity. The other day, when Bob left his laptop for a coffee break, I found the source code for his website. This project also contained a file called usernamesAndPasswords.json! Intrigued, I opened it,... 4 Oktupol is the german spelling for octupole, a magnetic field created by eight electric charges; four dipoles or two quadrupoles. I started using that name while experimenting with computer networks as a teenage child. I was interested in physics back then; when I needed to come up with host names for some virtual machines, I named them Monopol, Dipol and ... 1 Nothing, just using my nick name. 3 Weasels My username (Wezl) is Weasel spelled better and more recognizeable. Some weasel facts that may have influenced this decision. They're adorable (yes, this is a fact). A simple interweb search is enough proof. They're evil. I'm not necessarily evil, but it helps to have an evil avatar so I don't get held responsible for my actions. They bring bad luck.... 2 It’s just my name + surname with all vowels removed. Boring… The profile pic is some doodle I did many years ago, but I like it so it stuck. 1 Score an approximation code challenge code-golf Given a list of inputs (strings) and their expected outputs (integers or floats)[1], and a black-box program[2], calculate the score using the following scoring system: Let$R_n$be the expected output of the$n^{th}$input, let$A_n$be the actual output given by the black-box program, and let$ j $be ... -1 Create a Screw There are a variety of code cad languages, as well as other 3d API's that allow you to define shapes with code. Some of these are limited, while others are Turing complete and/or use a popular programming language such as Python or JavaScript. The Challenge Output a 3d model of a screw. Acceptable formats include .stl files and .obj files. A ... 7 regexp backwards. Many of my previous online aliases have been obscure programming terms, backwards. This one is not quite as obscure, but it has two extra features that make it suitable: it contains x, which as we all know, is the most expensive letter in the alphabet it starts and ends with my initials It's pronounced /pʰə̆ɡsɛˈgə/ or /pʰə̆ɡsɛˈgər/. 0 Print the nth sequence from oeis The input is one natural number n - the sequence number Your task is to put this numeric link https://oeis.org/A (example of a link with n = 1: https://oeis.org/A1), then you should get the html of this page and get the sequence from there Examples: n -> sequence 1 -> 0, 1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, ... 1 Heads I win, tails you booze: coin tossing, pub trivia style code-golf probability-theory game At my old pub trivia night, a free jug of beer or bottle of wine was awarded to the team that won Heads or Tails. This game requires players to correctly guess the outcome of successive coin tosses. The game proceeds as follows: Before each toss the remaining ... 0 Compute the analysis spectrum This is based on a task I had in work a few years back. A diode-array detector (DAD) is a kind of chromatography detector which fires light into a sample and detects the strength of the light that passes through it at different wavelengths. From this you can determine, among other things, the contents or the purity of the sample.... 0 post 2 Pad a jagged array to be square code-golf array-manipulation Posted 0 Posted 3 My username "Davide' is just my actual name. Few months ago I was learning C (my first language) and signed up on SO to ask something. I think I didn't typed any username, just logged using my Google account. I take this opportunity to change my username and add an avatar. Apart from golfing in C and learning JavaScript, I only eat, sleep, listen to ... 0 Generate a "Pi-ey" number mathpifastest-codecode-golf Generate the smallest integer of the form$x^x$with$10^{n-1}\cdotπ$digits, rounded down, given$n$. If there is no such number, take the nearest number that has as many digits of$π$in its digit count. For example, if$n=5\\$, then the number of digits would be 31415. If there was no such ...

1

(WIP) Settling the Lands of Codegolfia king-of-the-hill grid The challenge controller will randomly generate a 200x200 map representing the terrain of the land Your task is to write an AI whose goal is to have the largest population after 500 turns. Start Each player begins with 1 cell claimed and a population of 100. Turns On each turn, you have the ...

0

Challenge Print all the Tamil characters in any order you like. They should be 12 vowels, 18 consonants and the special symbol ஃ . Your code should not print anything except for those letters but it can print one letter per line. The consonants are: க் ங் ச் ஞ் ட் ண் த் ந் ப் ம் ய் ர் ல் வ் ழ் ள் ற் ன் The vowels are: அ ஆ இ ஈ உ ஊ எ ஏ ஐ ஒ ஓ ஔ Shortest code ...

4

A couple of years ago, I got into reading a Russian knock-off of Harry Potter which one of my friends recommended to me (the book was actually really well-written, still one of my all-time favourites). During one of the chapters, a noticed a character with the name Varsus, suspiciously similar to that friend's online nickname Varsis. When I told him about it,...

7

Wow, y'all with your usernames that actually have meaning. I literally just spent 5 minutes typing random keys until I ended up with something I deemed "cool" and "ironic". Having said that, I did want to make sure the letters L and X were present (for maximum coolness) and that there was a name length of 5 (shorter names are more ...

10

Mine has several meanings: Many of the answers here on CGCC are quite traumatic to read, and everything here is digital. Digital Trauma is the medical term for nose-picking. I think a lot of us are figuratively picking our noses here, i.e. spending time asking/answering challenges for fun, when we should probably be focussing our talents elsewhere, e.g. ...

Top 50 recent answers are included