Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 36906

Code-golf is a competition to solve a particular problem in the fewest bytes of source code. If you want to score by characters instead of bytes, please state this explicitly in the challenge. If source code length is not the primary scoring criterion, consider using another tag instead.

8
votes
Matlab 35 thanks to sanchises imshow(int8(ones(20,1)*(0:.05:51))) Matlab 36 imshow(uint8(ones(20,1)*(0:.05:51))) Displays 50 squares filled with gray values 1 to 50 and 2 additional rectangles f …
answered Feb 16 '15 by Steffen
4
votes
Matlab or Octave 29 bytes (thanks to flawr!) mean(sum(rand(2,4e6).^2)<1)*4 (I am no quite sure if <1 is OK. I read it should be <=1. But how big is the probability to draw exactly 1...) Matlab or …
answered Mar 15 '15 by Steffen