Skip to main content

Questions tagged [stack-snippets]

Stack Snippets are runnable inline code samples. Currently HTML, CSS, and JavaScript are supported.

19 votes
2 answers
406 views

This question previously described a leaderboard snippet which no longer exists. I am leaving this question here for historical purposes. Thank you to all who contributed.
moltarze's user avatar
  • 2,578
2 votes
0 answers
114 views

The snippet used in many questions to generate a leaderboard is not displaying correctly for me, and some links are not working. I am using Firefox 59.0.2 (64-bit) on macOS 10.13.2 (High Sierra). The ...
O.O.Balance's user avatar
  • 1,619
-4 votes
2 answers
458 views

Perhaps, HTML, CSS and JavaScript have the most number of interpreters. Every browser is an interpreter of them. And each interpreter varies significantly in terms of implementation of certain aspects ...
Arjun's user avatar
  • 5,174
10 votes
2 answers
364 views

Snippetify is a script that is designed to make StackSnippets with JS submissions on the main site easy. Examples Let's say we are answering a simple challenge to repeat a string N times. A possible ...
user avatar
3 votes
0 answers
78 views

This thread is devoted to the development of an answer-chaining stack snippet, which was originally used in Evolution of OEIS. By making this snippet available here (following this meta guideline), ...
PhiNotPi's user avatar
  • 29.3k
17 votes
0 answers
520 views

Sometimes, we need to have posts that can bypass the 30,000 character limit. I have created this Stack Snippet that, given text as input, compresses the text and outputs a Stack Snippet that can be ...
user avatar
-2 votes
3 answers
216 views

The leaderboard snippet could use some improvements. Improvements usually fall into three categories: Formatting & CSS - make it look better Functionality - stuff it should do Misc - everything ...
noɥʇʎԀʎzɐɹƆ's user avatar
11 votes
0 answers
379 views

The Project The golfing snippet serves as a test suite for code-golf solutions. The snippet provides a testbed for golfed code, providing a bytecount, an input field, and an output console. Users can ...
jrich's user avatar
  • 4,166
3 votes
2 answers
275 views

Now I don't know PHP or how exactly it fits into HTML, but I had an idea that you could run a PHP script in a Stack Snippet. Is this true, and if so could you give some examples?
Beta Decay's user avatar
  • 23.6k
12 votes
1 answer
326 views

You can load this Snippet using the Arbitrary Stack Snippet Loader, with the following parameters: site = 'meta.codegolf'; postID = 5686; isAnswer = false; QUESTION_ID = ; QUESTION_ID is for ...
jimmy23013's user avatar
  • 37.4k
9 votes
2 answers
586 views

The Stack Snippet below loads the first Stack Snippet in the Stack Exchange post defined by site, postID, and ...
Calvin's Hobbies's user avatar
63 votes
11 answers
4k views

I've been using a stack snippet for a while to generate leaderboards for my simpler or more popular code golf challenges. I want to share the code for this snippet here so others can use it more ...
Martin Ender's user avatar
0 votes
0 answers
65 views

Today I found something weird with stack snippets... I found it in this question:Interpreting Fish (no, not that Fish) It was in my answer: https://codegolf.stackexchange.com/a/48686/14732 ...
Ismael Miguel's user avatar
8 votes
3 answers
721 views

I've noticed that my Red vs. Blue Sandbox controller snippet here has stopped working (at least in Chrome). This is incredibly strange because the JSFiddle that is exactly identical is working fine. ...
Calvin's Hobbies's user avatar
35 votes
2 answers
4k views

Some people have been linking to off-site resources for counting the length of an answer (mostly https://mothereff.in/byte-counter). Some people also pointed out that it only counts in UTF-8. Well, I ...
orlp's user avatar
  • 39.4k

15 30 50 per page