"piece" of music I wrote today: soundcloud.com/phinotpi/2015windshcut001 (Disclaimer: not necessarily coherent in any way, sharp edges: handle with care, anything you say may be used against you in a court of law)
Interestingly, after I researched 3D printers for about a couple of days nonstop, all the Google ads I saw were for 3D printers, filament, supplies, upgrades, etc.
Never odd or even
Did you notice, that this is a palindrome?
Input
Number or string representing it
Output
4 possible outputs, representing two properties of number:
is it palindrome
tricky #2
Tricky #2 property
If number is not palindrome, this property answeres the question "Do first an...
I have a challenge idea, We output the new PPCG logo, with the source shaped like this. lowest amount of changed cells (i.e. bytes which are erased or newly typed) wins.
On 4chan, a popular game is dubs. Every post on the site gets a sequential post id, and users try to get repeating digits at the end of the number (i.e, 1234555). Of course, you can't influence or change your number, but we still try :( .
Your task, if you wish to accept it, is to write a prog...
@KritixiLithos Here is a test case that fails if you don't use newline after [c]: Try it online!
It's not a syntax error technically. [c]y=y%#f is parsed like [c](y=y%#f). The y=y%#f is an argument to [c] and it basically compares y with its remainder. This is the same reason why you must have newlines after if conditions.
Please help, I have a big nonogram, and it is too hard for me to solve.
I/O
You will be given input like this:
[[[5],[4],[3],[2],[1]],[[5],[4],[3],[2],[1]]]
The first array is the horizontal lines, and the second is the vertical lines.
Each array in the array is the hints for each line. (...
@KritixiLithos I just pushed a version that will give you an error for that.
I just did something that had one test take 0.35 seconds time to run. It previously took 0.001 seconds. I have no idea what happened, all the other tests work fine and fast and I don't use any special features in that test.
@KritixiLithos You can save two more bytes by removing the newlines before X=... and Y=....
I don't really know if Röda's newline policy is too complex. Newlines are allowed in some places and disallowed in some other places without following any simple rule.
What is amusing about Röda's newlines is that lexically ; and newline are the same token. Therefore, it is allowed to use semicolons in weird places: print(;2+;2;) if;[;2=;2;];.
Thoughts are a vital tool in creating the reality we experience. Thoughts create vibrations, the way a pebble creates ripples in a lake. Thoughts, feelings, words and actions all send messages. A person's thoughts (conscious and unconscious), emotions, beliefs and actions are said to attract corresponding positive and negative experiences "through the resonance of the…
Röda is a stream-based scripting language created by fergusq.
What general tips do you have for golfing in Röda? I'm looking for ideas that can which can be applied to code-golf problems and which are also at least somewhat specific to Röda (e.g. "remove comments" is not an answer).
Please post...
btw I tried making a checkbox with 2 alerts (on the second one, theres a checkbox by default) with alert(alert(1)); but someone said it's invalid so RIP my hopes and dreams
Linear Chemistry
Input is a string representing a skeletal formula of a molecule, in a format similar to O=C-O-H. However as a lot of formulas contain carbon and hydrogen atoms, it is customary to skip them from the description and just signal their presence by only displaying the used bonds. We...
Write a program that creates a two-state checkbox that people can interact with using a mouse.
Specifically, your program should achieve all of the following:
Have a 8×8 pixel (or larger if desired) region of the screen that is the clickable area of the checkbox. Henceforth this region is simp...
We have a control that was made by a company that no longer exists.
For some odd reason on page load it has now started rendering something like this to the page:
<script type="text/javascript">
alert('Your license has expired!')
</script>
Since the company no longer exists we can't get suppo...
I have a challenge idea, We output the new PPCG logo, with the source shaped like this. lowest amount of changed cells (i.e. bytes which are erased or newly typed) wins.
Each student in our class has to present what we did for this project. I'm just going to stick a big chunk of code in my poster to "scare" people away so that they won't see my failure
user165474
@KritixiLithos Hah, sounds like what I do, just stick scary things in that nobody understands so a) they don't see how bad it really is and b) they think it's good but they have no idea what it is
@fəˈnɛtɪk It's called the "Personal Project". It's something that everyone in my grade has to do (and it's different for each person). I am explaining Enantiomers (a type of isomers) by creating 3D models of them using Processing. And I sum up the information in a presentation. Now we have to present our projects to parents and other kids, and I haven't prepared my poster much.
I had to make a poster too, and it was due today. I'm not exactly proud of it, but it's good enough.
I'm going to present it the day after tomorrow in a science competition.
My work was a computer program that composes music. It was really hard to make a poster. My teacher said that it has to have "colors" and "pictures", but I only got some musical notation and one graph.
Once you start with LaTeX, it is impossible to go back to Word.
Although some things leave to be desired (inconsistent syntax, craploads of packages, etc.), the quality of the document it produces and the control you have on how it produces it is infinitely more satistfying than anything in Word
The only things I've seen better have been specific layout programs, like InDesign or QuarkXPress, but those (usually) require the math formulas to be pre-rendered as a PNG or the like
This is how we roll
Piet is an interesting programming language for a number of reasons. Today we will focus on one reason: the roll command. Piet is a stack-based language and rolling is a powerful way to manipulate the stack.
The roll command pops the top two elements of the stack and uses th...
Anonymous
@fergusq I'd have separate syntax for floored division vs true division, and use / for true division