Pip code-golf solutions

1

Please login or register to vote for this query.

(click on this box to dismiss)

The code from Pip solutions to normal code-golf challenges (no polyglot, restricted source, etc.). Intended to make searching for specific patterns in the code easier.

Constructed Languages

Q&A for designers and users of artificial or invented languages, consciously developed instead of having developed naturally

select id as [Post Link], creationdate, tags, code
from
(
select A.id, Q.tags, A.creationdate,
 replace(replace(replace(replace(
  substring(
   rtrim(
    left(
     A.body,
     case
      when charindex('</code></pre>', A.body) < 1 then 0
      else charindex('</code></pre>', A.body) - 1
     end
     ),
    char(10)),
   charindex('><code>', A.body) + 7,
   len(A.body)
   ),
  '&gt;', '>'), '&lt;', '<'), '&quot;', '"'), '&amp;', '&')
 collate Latin1_General_100_BIN as code
from posts as A
 inner join posts as Q
  on A.parentid = Q.id
where charindex('github.com/dloscutoff/pip', A.body) > 0
 and charindex('Pip', A.body) between 1 and charindex(char(10), A.body)
 and charindex('code-golf', Q.tags) > 0
 and Q.tags not like '%polyglot%'
 and Q.tags not like '%answer-chaining%'
 and Q.tags not like '%cops-and-robbers%'
 and Q.tags not like '%source-layout%'
 and Q.tags not like '%restricted-source%'
) as Pip

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results