quine.html | An HTML file that can save
kandi X-RAY | quine.html Summary
kandi X-RAY | quine.html Summary
Quine.html is an HTML file that can save itself! A single html file, containing both the data and the logic, can be opened, executed, and saved locally without access to the internet.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of quine.html
quine.html Key Features
quine.html Examples and Code Snippets
Community Discussions
Trending Discussions on quine.html
QUESTION
I have written simple decorator which prints the function passed to it (for example "foo"), and then I decorate it against itself. So finally it prints both written functions.
I have read about quines recently and a little bit stuck with its a precise definition. For example, according to this source a quine "must print out precisely those instructions which the programmer wrote as part of the program".
So my question is: Can I consider the written program as a quine?
...ANSWER
Answered 2019-Sep-24 at 15:24A quine is a computer program which takes no input and produces a copy of its own source code as its only output1
Going by the last person who edited the Wikipedia definition, than strictly no . It's impressive and you're pretty close, but the order matters and you do need those two calls at the bottom in your output.
In general, to test if your program is a quine:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install quine.html
Open in a browser (preferably FireFox).
Optional: Install the TiddlyWiki for Firefox add-on to enable saving to your hard drive. Otherwise changes can only be persisted to your browser's local storage.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page