MickyT
  • Member for 7 years, 4 months
  • Last seen more than 1 year ago
Little Chandler is sad. Draw him a cloud to cheer him up
27 votes

T-SQL 235 234 229 212 171 73 bytes This makes use of spatial functionality in SQL Server 2012+. When it is run in SSMS (SQL Server Management Studio) is produces a spatial results pane. The input is ...

View answer
Reversed language name
24 votes

Cubix Because Cubix doesn't always need to be indecipherable begin; print "Cubix" > output; end@?; Try it online! Watch it running

View answer
Pointers, pointers, pointers!
17 votes

T-SQL, 90 While a fairly simple question, it's always interesting to try these in languages that really don't tend to support them well or golf well for that matter. This answer is almost guaranteed ...

View answer
Count repetitions of an array
15 votes

R, 20 bytes Is this what you are after? Uses table to count the occurrences of each of the scan input values. Tests if count is > 1 and sums the trues. sum(table(scan())>1) Try it online!

View answer
Un-round fractions
15 votes

T-SQL 254 While T-SQL isn't really suited to this sort of thing, it wa fun to try. The performance gets real bad the higher the denominator. It is limited to a denominator of 1000. Input is a float ...

View answer
Print the Flag of the Arab Revolt!
14 votes

SQL (PostgreSQL flavour), 284 244 232 210 175 bytes A HUGE Thank You to @manatwork for essentially the whole thing now. A nice verbose language that still came in under the byte size of the flag, ...

View answer
1, 2, Fizz, 4, Buzz
13 votes

R, 88 83 77 71 70 bytes I'm sure that this can be improved ... and it was with credit to @flodel. A further couple of bytes saved thanks to a suggestion from @njnnja and another from @J.Doe x=y=1:100;...

View answer
Sing Happy Birthday to your favourite programming language
12 votes

T-SQL, 89 87 bytes Edit: Probably shouldn't be dredging these old things up, but I just noticed an obvious change to this to reclaim a couple of bytes. Using STUFF to remove unwanted parts of the ...

View answer
Tips for golfing in 2D languages
11 votes

Carriage Returns Are Bytes Too The less 2D you can make it, the better. A carriage return is another no-op. Without ignoring the tips from @ATaco and @ASCII-only, try and keep the Y dimension as ...

View answer
Programming Languages Through The Years
11 votes

1972 - SQL The Wikipedia timeline of languages has this as being 1972, however I can't find any other references to support this. Given the untimely demise of Raymond Boyce in 1974 and his gaining of ...

View answer
The Programming Language Quiz, Mark II - Cops
10 votes

brainfuck, 6348 bytes, cracked by MD XF + . : + . + . + . v + . + . + . ^ + . + . ...

View answer
Let's make a word-search!
10 votes

Beatnik, 29 characters added Get a chr! Outputs it and 'BZam. Explanation coming:) Get a # ignored with scrabble values under 5 chr! # score 8, input a character and push its value Outputs ...

View answer
Code close to the challenge: Sum of integers
10 votes

R, Distance 37 36 34 Without using comments :) as.integer ( sum (scan(,integer( ) ))) Note there is a space at the beginning.

View answer
Programming Languages Through The Years
10 votes

1983 - Turbo Pascal I remember playing with this around 88, however that's about all I remember about it, so the following may have some syntax errors. The wikipedia page can describe it better than ...

View answer
Squarefinder – Locating regular tetragons
Accepted answer
10 votes

SQL (POSTGIS), 286 269 261 240 226 218 216 This is a query for the PostGIS extension to PostgreSQL. I haven't counted the input values in the total. SELECT SUM(1)FROM(SELECT(ST_Dump(ST_Polygonize(g))...

View answer
Graphical Representation of Koch Snowflake
10 votes

T-SQL: 686 (excluding formatting) For SQL Server 2012+. Even though this will never be a contender, I had to see if I could get it done in T-SQL. Gone for the approach of starting with the three ...

View answer
Area of a 2D convex hull
9 votes

SQL Server 2012+, 84 bytes SELECT Round(Geometry::ConvexHullAggregate(Geometry::Point(x,y,0)).STArea(),0)FROM A Makes use of the geometry functions and aggregates in SQL Server. Coordindates are from ...

View answer
Scrabble scorer
9 votes

Beatnik, 733 bytes Since it really had to be done, here it is. It was a really nasty to debug and provided a few challenges. Input must be uppercase letters only. Output is unary (hope that is OK?) ...

View answer
Implement a Truth-Machine
9 votes

Cubix, 5 6 bytes Cubix is @ETHproductions new 2 dimensional language where the commands are wrapped around the faces of a cube. Online interpreter Thanks to @ETHproductions for the saving. !I\@O This ...

View answer
Greatest Common Divisor
9 votes

T-SQL, 153 169 bytes Someone mentioned worst language for golfing? CREATE FUNCTION G(@ INT,@B INT)RETURNS TABLE RETURN WITH R AS(SELECT 1D,0R UNION ALL SELECT D+1,@%(D+1)+@B%(D+1)FROM R WHERE D<@ ...

View answer
The Programming Language Quiz
9 votes

Glee, 30 Bytes 'IWRscm9XICxvbGxlSA==':r64>%<$ A fairly obscure language as it turns out. 'IWRscm9XICxvbGxlSA==' # base64 encoding of !dlroW ,olleH :r64 # ...

View answer
Count Consecutive Characters
8 votes

R, 44 43 bytes Works on an array of lowercase characters. Edit: changed it from testing True values to multiplying by the T/F for a byte. function(x,r=rle(letters%in%x))max(r$l*r$v) Try it online! ...

View answer
Is my triangle right?
8 votes

Triangular, 57 bytes I haven't seen any in this language yet and it seemed appropriate to try and do one. It took a bit ... as I had to get my head around it first and I believe this could be golfed ...

View answer
Type uniqchars!
8 votes

Beam, 23 18 bytes v<H vs) rS g@S >u^ Try it online!

View answer
The Programming Language Quiz
8 votes

Underload, 1349 Bytes When I first looked at Underload for this challenge I was struggling to come up with a way to suitably obscure it. Parenthesis Hell seem like a good red herring, but the example ...

View answer
Do the 26 richest billionaires own as much wealth as the poorest 3.8 billion people?
7 votes

R, 53 55 bytes @Giuseppe saved me 2 bytes changing the way remove was done function(n,L,Y=rev(L[0:-n]))Y[cumsum(Y)<=sum(L[1:n])] Try it online! Takes the input as descending and outputs in ...

View answer
Concatenating n with n + 1
7 votes

Cubix, 19 bytes I.1.W)>OSo;u.uO;@!- Try it online! This wraps onto the cube as follows I . 1 . W ) > O S o ; u . u O ; @ ! - . . . . . Watch It Run Got a little room to ...

View answer
Rank a list of integers
7 votes

R, 24 25 20 bytes Uses the standard rank function with the "min" ties method over the negated vector. cat added to output it to STDOUT. Saved one thanks to @Guiseppe cat(rank(-scan(),,&...

View answer
A crowd of blank stares
7 votes

R, 42 bytes cat(substring('(<>.<>)',-4:6,2:12),sep='') Fairly simple program that takes advantage of the way substring works in R. So substring('(<>.<>)',-4:6,2:12) produces ...

View answer
Death By Shock Probe: That's a lot of dice
7 votes

R, 32 24 23 21 bytes Edit: Got rid of the as.integer and used integer division %/%. Speed it up slightly. Thanks to Alex A for the sample tip ... and Giuseppe for removing the r= sum(sample(4,2^20,T)...

View answer
1
2 3 4 5
11