ConciseCode's profile picture. Follow me for code golf challenges by the @RecurseCenter. Answers must fit in a tweet. Confused? See: https://en.wikipedia.org/wiki/Code_golf

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

Write a novel and useful command line utility.


RC Code Golf reposted

@ConciseCode % brute-force prolog sort(I,O) :- permutation(I,O), sorted(O). sorted([]). sorted([_]). sorted([X,Y|T]) :- X<Y, sorted([Y|T]).


RC Code Golf reposted

@ConciseCode import Data.List f::Ord a=>[a]->[a] f=foldr insert[]


RC Code Golf reposted

@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!)


RC Code Golf reposted

@ConciseCode ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))


RC Code Golf reposted

@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)}


RC Code Golf reposted

@ConciseCode oh here's an even better rb: p %x<cat #{$0}>


RC Code Golf reposted

@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….)


RC Code Golf reposted

@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.



RC Code Golf reposted

@ConciseCode (re-seq #"&quot;(.*)&quot;" (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.



RC Code Golf reposted

@ConciseCode curl $1|grep -m1 t-te|perl -pe's/<.+?>//g'


RC Code Golf reposted

@ConciseCode (let ((x (drakma:http-request "tinyurl.com/ov5w4zn"))) (subseq x (+ (search "e>" x) 2) (search "</ti" x))) #lisp


@andy_kelley We see what you did there.


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


Loading...

Something went wrong.


Something went wrong.