"Exactly" doesn't really make sense when you pretty much never deal with anything smaller than 0.01 cents (gas stations routinely price their gas down to 0.1 cents).
cd ws1a00
cat > README.md << EOF
# README
This is the index repo for ws1a00.
EOF
mkdir -pv .commits/.commit-0
cd .commits
cd .commit-0
echo "Initial commit" > .description
cd ..
cd ..
diff /dev/null README.md > .commits/.commit-0/.README.md
"Among the more than 60 languages with over 10 million speakers, only English, Modern Standard Arabic, Standard European Spanish, Burmese, and Greek have the voiceless dental non-sibilant fricative"
In the game Stratego, the main game mechanic is when you attack an opponent's piece with yours. In this challenge, you job is to simulate one of these battles and say who survives.
Specs
You will get as input a pair of string representing Stratego pieces. The pieces are one of "S 1 2 3 4 5 6 7 ...
does anyone know a fast way for calculating totient? right now i'm using a dynamic programming thing where I take the first prime factor that i find, use the formula for it, then recurse using the fact that phi(n*m) =phi(n)*phi(m) if n and m are coprime, and then memoizing. This is decently fast, but I wonder if there is some other math trick for it.
I don't actually know if that's faster -- it could be worth a try. You probably already did the most important thing by using the phi(a*b) = phi(a)phi(b) identity when gcd(a,b) = 1
TIL that there are children who get a knee removed because of cancer and get the ankle of that leg as a replacement knee joint. That's so weird and cool at the same time. (Sources: imgur.com/gallery/6M8Si , i.imgur.com/B5luOWO.gifv)
@CᴏɴᴏʀO'Bʀɪᴇɴ We have a few English people in here. I think most of them have or would have not voted for Brexit, so they're probably not radical enough to change the alphabet.
What tools are available to moderators?
Moderators are our human exception handlers and will get involved when users and room owners can’t handle a situation on their own. If flags are raised or they are notified of something, then a moderator will step in to investigate and resolve the problem...
@DrGreenEggsandIronMan When NMP posts something that was recently posted by another user, or was deleted, or sometimes was closed before the feed bot picks it up, then oftentimes some mod will edit it to say something funny in all caps.
Pyth Meta-Golf Golf Battery
metagolf test-battery code-challenge
(now that's a name, isn't it?)
The Challenge
Write a program in a language of your choice that takes an input of code in the same language and outputs a code that does the same thing in Pyth (though not necessarily the shortest ...
@Downgoat I had the great foresight months ago to include the operator object as an argument to the evaluation function, so I could check to see if the operator's first child is a comparison operator. If it is, then I look at the first item in args (the second argument to the evaluation function) to see if it's a pBoolean (since that's what comparisons return), and if it was, then return pBoolean(false) if it was false. Otherwise, take the operator's first child's second child and replace.
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.ExceptionInInitializerError
at com.VTC.laura.lib.Collector.loadLibraries(Collector.java:27)
Yeah a completely new cheddar— ohhhh I mightn't not be... I'm on mobile but if the var GLOBAL_SCOPE is outside of the if in src/cli/prog.es6 then it's not >_>
I've been playing around with Promises a bit lately, in the chat terminal thing, and now in my latest project with async and await.... and I just found this in the work project:
@CᴏɴᴏʀO'Bʀɪᴇɴ Indexing is automatic, but I explicitly excluded M. It's in pre-alpha right now and I didn't intend to actually use it yet in challenges. I just couldn't resist in two opportunities.
Make a lolcat program
We've golfed down cat programs 151 times in 136 different languages. But... what about lolcat programs?
Task: Using the least amount of bytes possible, write a program that copies STDIN to STDOUT over and over again with the following twists:
Im in ur console waitin ur t...