Great idea: someone should make a polyglot that is both an image and an executable in some programming language. But they should make the image in Paint.
10 years, 12 languages, 2430 bytes
This answer is a collaboration between myself and user 1000000000.
A brief language list:
Brainfuck 1993
Befunge 1993
Piet 2001
Whitespace 2003
Braincopter 2005
Grass 2007
Starry 2008
Paintfuck 2008
Brainbool 2010 (111110...
@mbomb007 Is there any image format without a header?
ERROR: Could not find a valid gem 'json' (= 1.8.2), here is why:
Unable to download data from rubygems.org - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (api.rubygems.org/specs.4.8.gz)
I just made an MP3 / JavaScript polyglot. You can listen to the song, or you can include the file as JS with <script charset="ISO-8859-1" src="thefile.mp3"></script> and it will navigate to the song's URL.
I am trying to find the first 1 (right to left) in the binary representation of a number. So 100 should yield 3, 234 should yield 2, etc. Any tips to golf my solution?
k < 1 ? 0 :(int)(Math.Log(k & -k, 2) + 1);
Draw a graph of y=(-n)^x
code-golf math complex-numbers graphical-output
Challenge
Given an input of an integer, n (where 0<n<50), output the graph of from x = -3 to x = 3 inclusive.
Where is the real part of the complex number p.
Output
The output may be in any form you wish (e.g. an im...
> That is, find any language in which the given program is a valid Hello World program (subject to the rules outlined in The Cops' Challenge above). It doesn't matter if this is the language the cop intended.
@ConorO'Brien super random question: idk if you can but I have a node.js/js/css/html project I'm needing to get done by tomorrow. would you like to help? (not HW :P)
Write Something
Write a program that can be run. It must take nothing from STDIN and, put nothing in STDERR or STDOUT.
Shortest answer in each language wins.
all I did was basically rails new stories && cd stories && rails generate scaffold Story title:string author:string school:string content:text && rails db:migrate && vim config/routes.rb && rails server -p 3001 -d && ssh -R 3001:localhost:3001 -N dk0.us