- https://codegolf.stackexchange.com/q/55422/8478 Hello, World!
- https://codegolf.stackexchange.com/q/57617/8478 Is this number prime?
- https://codegolf.stackexchange.com/q/62732/8478 Implement a Truth-Machine
- https://codegolf.stackexchange.com/q/62230/8478 Simple cat program
- https://codegolf.stackexchange.com/q/63834/8478 Count up forever
- https://codegolf.stackexchange.com/q/93441/8478 Print all integers
- https://codegolf.stackexchange.com/q/84260/8478 Add two numbers
- https://codegolf.stackexchange.com/q/106182/8478 Multiply two numbers
- https://codegolf.stackexchange.com/q/101638/8478 Shortest code to produce non-deterministic output
- https://codegolf.stackexchange.com/q/13152/8478 Shortest code to produce infinite output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var EventType = { | |
MessagePosted: 1, | |
MessageEdited: 2, | |
UserEntered: 3, | |
UserLeft: 4, | |
RoomNameChanged: 5, | |
MessageStarred: 6, | |
DebugMessage: 7, | |
UserMentioned: 8, | |
MessageFlagged: 9, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public final class DateAxis extends Axis<Date> { | |
/** | |
* These property are used for animation. | |
*/ | |
private final LongProperty currentLowerBound = new SimpleLongProperty(this, "currentLowerBound"); | |
private final LongProperty currentUpperBound = new SimpleLongProperty(this, "currentUpperBound"); | |
private final ObjectProperty<StringConverter<Date>> tickLabelFormatter = new ObjectPropertyBase<StringConverter<Date>>() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Paste in SO chat room console bro: | |
(function() { | |
"use strict"; | |
var chat = document.getElementById('chat'); | |
function parseNode(node) { | |
if (node.classList | |
&& node.classList.contains('message') | |
&& !node.classList.contains('pending') | |
&& !node.querySelector('.onebox') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/nginx/sites-enabled/lichess.proxy.conf | |
# Replace "lichess.scalex.org" by your own domain. | |
# Note: This only works for the "en" subdomain. | |
server { | |
listen 80; | |
server_name socket.en.lichess.scalex.org; | |
location / { | |
proxy_set_header Host socket.en.lichess.org; | |
proxy_http_version 1.1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package RG; | |
import java.util.Arrays; | |
public class Reincarnation | |
{ | |
private int currentRP, maxRP; | |
private double totalCost, factionCost, gemsRequired; | |
private int rNumber; | |
A long time ago, it was possible to inline images from all kinds of external sources. Since the switch from HTTP to HTTPS, this is no longer possible; only HTTPS sources are allowed. This leads to ugly blurbs like
instead of a nicely formatted page with images. Sometimes, the links don't even work anymore, even with HTTPS images, which will show like this: ... Luckily, we have the Wayback Machine which is able to rescue some of the lost images. Since a picture often says more than a thousand words, it's important to bring back the post into its original state; important enough to justify the occasional bump of an old post (see below).