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 |
A competition to solve a particular problem through the usage and manipulation of strings.
0
votes
Undress a string
{.1} It is, duplicate result and push 1
{;.0}if It isn't, remove cut string, duplicate and push 0
\ The number (0 or 1) we pushed before sinks one position
);) Obtains the last character … of the string
32= Is it a space? …
1
vote
Goto the Nth Page
Golf Script - 104 characters
~\:a;:b;1a<'prev '*3a<'1 ... '*[5,{a 2-+}/]{.0>\b)<&},{.a={'['\']'}*' '}/;b a-:c 2>' ... 'b+*0c<' next'*
Ungolfed
~\:a;:b; # a = 1st arg, b = 2nd arg
1a<'prev '* …
3
votes
This isn't rocket science
" |
/_\\
"\1/.,{" |"\(\"|
"\}\*" |_|
/___\\
VvV"
Explanation
" |\n /_\\\n" # Push the rocket's head
\ # Swap the head with the user's string
1/ # The string is converted …
0
votes
Draw my downslashes
GolfScript - 117 bytes
1/{'/'=}%1:s;[{s}{..(\;!?.0<{;,0:s;}{.@\>}if}while]0:M;1:i;{,{i*}%:a{M+' '*i 0<{'/'}{"\\"}if +"\n"+}/a)M+:M;;i~):i;}/
Ungolfed version
1/{'/'=}%
1:s;
[{s}
{
..(\;!?.0<{;,0 …
1
vote
Esolang-Comment-Template-Generator
.{'|'=},,@\-):l; # Computes string length without '|'
['|']/ # Splits the array
0:i; # Counter
{., # Length of the substring
i+:i # Counter …
1
vote
Bitflip and negate
# Input to integer and duplicate
"-~" # We shall output a repetition of this string
\abs # Move the input onto the stack and computes abs
* # Multiply "-~" for abs(input) times
\ # Copy …
3
votes
Counting Goats to Sleep
GolfScript, 91 bytes
~:a 1-:b;" \\ "a*n" ___/o>"b*" ___/->"n"-(___)\" "b*",(___)\""n" '' '' "b*" `` ``"n
Input: 3
Output:
\ \ \
___/o> ___/o> ___/->
-(___)" -(___)" …