RC Code Golf
@ConciseCode
Follow me for code golf challenges by the @RecurseCenter. Answers must fit in a tweet. Confused? See: https://en.wikipedia.org/wiki/Code_golf
You might like
@ConciseCode % brute-force prolog sort(I,O) :- permutation(I,O), sorted(O). sorted([]). sorted([_]). sorted([X,Y|T]) :- X<Y, sorted([Y|T]).
@ConciseCode while read n; do ((++i)) sleep $n && echo $n & done for _ in `seq 0 $i`; do wait done sleep sort, in bash!
Sort a list, without using your language's built-in sort function. (Thanks to @arntzenius for the suggestion!)
@ConciseCode yay go quines! package main;import.`fmt`;func main(){s:="package main;import.`fmt`;func main(){s:=%q;Printf(s,s)}";Printf(s,s)}
@ConciseCode oooh I've got a good one for this from php land <?system("cat ".$argv[0]); @rasmus ?
Write a quine. (A quine is a program that takes no input and outputs its own source. See: en.wikipedia.org/wiki/Quine_(co….)
@ConciseCode curl | sed -n '722p' | cut -c'114-258' | sed s/\&\#39\;/\'/g
A fun and/or terrifying thing to this weekend: Find the oldest code you've written, and think about how you'd write it differently today.
@ConciseCode (re-seq #""(.*)"" (nth (re-seq #"<title>.*<\/title>" (slurp "")) 0)) #sloppyClojure
A fun and/or terrifying thing to this weekend: Find the oldest code you've written, and think about how you'd write it differently today.
@ConciseCode (let ((x (drakma:http-request "tinyurl.com/ov5w4zn"))) (subseq x (+ (search "e>" x) 2) (search "</ti" x))) #lisp
Write a program that takes a tweet URL (e.g., ) and prints the tweet. (NB: We haven't tried to do this in 127 chars!)
A fun and/or terrifying thing to this weekend: Find the oldest code you've written, and think about how you'd write it differently today.
Hello, world! Follow me for code golf challenges by the @RecurseCenter. Answers must fit in a tweet. Confused? See: en.wikipedia.org/wiki/Code_golf
United States Trends
- 1. #CARTMANCOIN 1,791 posts
- 2. Broncos 67K posts
- 3. yeonjun 239K posts
- 4. Raiders 66.6K posts
- 5. Bo Nix 18.4K posts
- 6. Geno 18.9K posts
- 7. daniela 51K posts
- 8. Sean Payton 4,837 posts
- 9. #NOLABELS_PART01 106K posts
- 10. #criticalrolespoilers 5,124 posts
- 11. Kehlani 10.5K posts
- 12. #iQIYIiJOYTH2026xENGLOT 432K posts
- 13. #TNFonPrime 4,057 posts
- 14. Danny Brown 3,167 posts
- 15. Kenny Pickett 1,517 posts
- 16. NO LABELS NOVEMBER 28.4K posts
- 17. Chip Kelly 2,000 posts
- 18. TALK TO YOU OUT NOW 29.1K posts
- 19. Tammy Faye 1,452 posts
- 20. Vince Gilligan 2,624 posts
You might like
-
Mary Rose Cook
@maryrosecook -
David Albert
@davidbalbert -
Dorm Room Fund
@DormRoomFund -
Leanpub
@leanpub -
Mark Saroufim
@marksaroufim -
Sonali Sridhar
@jollysonali -
Thomas Ballinger
@ballingt -
Nick Bergson-Shilcock
@nicholasbs -
James!
@_jak -
Azalia Mirhoseini
@Azaliamirh -
(rachel) honor vincent (petacat)
@rhonorv -
Sandhya
@sandhya -
Daniel Thorson
@dthorson -
TicketLeap
@ticketleap -
Leonardo
@leonardofed
Something went wrong.
Something went wrong.