Search Results
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 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
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 |
Code-golf is a competition to solve a particular problem in the fewest bytes of source code.
1
vote
Marquee sign letters
Excel VBA, 127 bytes
Function z(w)
z=""
For Each x In w.Cells
v=x.value
For y=1To Len(z)
v=Replace(v,Mid(z,y,1),"",1,1)
Next
z=z&v
Next
End Function
Takes input in the form of an excel range.
5
votes
2
answers
178
views
How many pages have issues? [duplicate]
At work I've been acting as quality control on our public documents, to make sure that they are WCAG 2.0 compliant. Given the length of some of these documents there tend to be issues, and so I record …
8
votes
Print the last, middle and first character of your code
Excel, 9 bytes
=("))=" )
So many Parentheses.
Note: The returned middle character can actually be any character since it's the middle of the code.
2
votes
Simulating Exploding Dice
Excel VBA, 46 bytes
Thanks to @TaylorRaine
Do:v=-Int(-[A1]*Rnd):t=t+v:Loop While[A1]=v:?t
Executed in the command window.
As a user-defined function.
Excel VBA, 108 67 bytes
Function z(i)
Do
v=Int((i …
1
vote
Today is the Center
Excel VBA, 190 159 bytes
Thanks @TaylorScott
Function z(i)
Dim d(5,6)
v=DateValue(i)-17
For x=1To 5
For y=0To 6
d(0,y)=Left(WeekdayName(Weekday(v+y)),2)
d(x,y)=day(v+y+(x-1)*7)
Next y,x
z=d()
End Func …