@mınxomaτ There's a NeoVim plugin that uses Rust behind the scenes and offers live markdown rendering. I uninstalled it because it slowed everything down. Just initializing it in my startup file slowed down startup.
@AlexA. I actually bought MDP. One of the best decisions ever. I've yet to come across a better performing MD editor (with live preview for many flavors). For windows at least.
@mınxomaτ "For i equals one to ten, line break, space space space space, x plus equals one. Line break, end." Voice recognition makes it for i = 1 2 10
Really high performance, cross-platform GUI editors are Sublime and SciTe. SciTe is much faster still, but Sublime has better support for custom syntax. Both are infinitely faster and more responsive than Atom, VSC et al.
Say you have a number x in the interval (0,1) and express it in binary as 0.101110111, for example. What would you call the n-th digit to the right of the decimal point? "The n-th digit in the fractional part of the binary expansion of x" seems too long. But if I don't mention the "fractional part", then "the n-th digit" refers to those to the left of the decimal point, doesn't it?
@LuisMendo I would think that "nth digit" would either be too ambiguous or have "left of the point" implied. "The nth digit in the fractional part of the binary expansion" sounds reasonable and precise to me.
I've been working on this iOS app recently and I encountered a (rather easily solved) problem: How do I determine if my string is comprised only of emojis?
Well, that's your job today!
Input
A string. If the presence of unicode characters is problematic for you then you may use a different re...
Question
Santa must get to every house in the world to deliver gifts, can you make a program that will calculate the shortest path that Santa could take, and still visit all the cities listed?
Specifications
The program does not have to accept any input. It just has to return a list of cities ...
I was just playing the board game Sorry! with some people, and I realized that I could base a few interesting challenges off of it. This one is pretty simple.
You task is simply to output an ascii-art version of a sorry board, placing pieces where I tell you to.
Specs
First, here is an image o...
looking at the top askreddit questions of all time, interesting that the discussion of the orlando shootings has 2x the votes of announcement of president-elect trump
Does anyone know what's going on with TIO? tio.run seems to work, but tryitonline.net is dead. Is that a permanent thing? Will all the old tryitonline links stop working now?
@JamesHolderness Just to be clear: Although tryitonline.net as is will cease to exist as soon as I deem TIO Nexus stable, the permalinks for the old version won't stop working; they'll just redirect to the new version of TIO. A few subdomains that never existed for version 1 do that already. For example: python3.tryitonline.net/…
@GabrielBenamy I add most languages because somebody requests them. I'll try my luck with the official C++ interpreter later. Feel free to remind me if I forget.
# gcc --version
gcc (GCC) 6.2.1 20160916 (Red Hat 6.2.1-2)
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
So I think something along lines of "output program source code where maximum amount of chars can be removed without modifying behavior" would be clearest first line for challenge
@Mego IIRC gcc has option to convert input file to what is uses internallu (which I believe to be UTF-8) but if you mean in terms of strings not having a specific character set, yeah.
To simulate a zombie invasion, start with a grid of # and representing the map:
## ##
### #
## ##
# ###
# ####
# represents land.
represents water.
The zombies start at a point on the map...
## ##
### #
## %#
# ###
# ####
...and spread. % denotes land infected by zomb...
Typically, polyglots are constructed in such a manner that each language can ignore parts of the code that are present for other languages, by wrapping them in string literals, using comment syntax, or other similar tricks.
Your goal is to write a polyglot where the output for each language is t...
Unlike traditional coding competition sites, submissions (answers) on PPCG are free form; the only hard requirement is that all submissions must contain the scoring header and the code that solves the challenge. While some answers stop there, others contain a lot of additional information.
Usual...
I was thinking about snow this morning, and so I made a d3 random snow page.
Tryed to do it thinner, but not lower than 300 bytes.
Let you have a try, show me how you make snow whit these roles:
Random position flakes (At least 10 flakes)
No images
snowflake can be every type of letter or car...
So you've got your Monopoly board, shall we start a game?
To start with, we'll need some dice and to know where we land!
Write a program that outputs the rolls and resting places of a given number players for a given number turns.
Input
In any suitable format for your language
The number of...
But at the very least I can have fun while waiting out the long install, including all the system updates.
And 1) I can cancel the install when it takes too long, 2) I can change the configuration at any point, and 3) I don't have to install VMware Tools! \o/
Zipper multiplication
code-golf arithmetic
Introduction
Let's define a new arithmetical operation, which I call zipper multiplication.
To zipper multiply two nonnegative integers, you add leading zeros to make the lengths match, multiply the corresponding base-10 digits of the numbers, add l...
Verify my lasagne
Scenario
I often cook lasagne, but I also have a few mistakes. Since I repeat this faults so often I thought I maybe could do an programm that checks if I did everything right.
Valid lasagne
A valid lasagne is
At least 5 columns wide
At least 4 layers high
The top layer is...
Cumbersome I/O formats
Generally, allow flexible input and output formats. People want to write code to do your task of, say, composing permutations, not reading/writing numbers in a particular semicolon-separated format, or from a file, or with input validation. For code golf, it's annoying whe...