This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type S=Seq[_] | |
def o(a:Seq[(_,_)],? :S):(Map[_,_],S)= ?match{case'}'+:r=>a.toMap->r | |
case','+:r=>o(a,r)case? =>val m=""""(.+?)":(.+)""".r | |
val m(k,t)= ?mkString | |
val(v,r)=p()(t.toSeq) | |
o(a:+(k->v),r)} | |
def y(a:S):S=>(S,S)={case']'+:r=>a->r | |
case','+:r=>y(a)(r)case s=>val(v,r)=p()(s) | |
y(a:+v)(r)} | |
def u(a:S,b:S):(S,S)=b match{case c+:r=>c match{case'}'|']'=>a->b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package coderunner.b | |
import scala.util._ | |
import scala.concurrent._ | |
import scala.concurrent.duration.Duration | |
import dispatch._, Defaults._ | |
import spray.json._ | |
object Main extends App { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Original Brain F*ck code | |
++++++++[>+++++++++<-]>.<+++++[>++++++<-]>-.<++[>+++<-]>+..+++.<++++++[>----<-]>.<++++++[>++++<-]>.+++.------.--------. | |
-- Solis_mb-lang code | |
llllllllmSllllllllloibSsolllllmSlllllloibSisollmSllloibSlsslllsollllllmSiiiioibSsollllllmSlllloibSslllsiiiiiisiiiiiiiis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define CMD(x) "\033[" x | |
#define F_COL(x) CMD("3" x "m") | |
#define B_COL(x) CMD("4" x "m") | |
#define R "1" | |
#define G "2" | |
#define Y "3" | |
#define B "4" | |
#define M "5" | |
#define C "6" | |
#define W "7" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if __INCLUDE_LEVEL__ <= LIMIT + 1 | |
TARGET[__INCLUDE_LEVEL__ - 1].istarget = is(OP_CODES[__INCLUDE_LEVEL__ - 1]); | |
#include __FILE__ | |
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE FunctionalDependencies, FlexibleInstances, UndecidableInstances, | |
ScopedTypeVariables #-} | |
data Z | |
data S a | |
data P a | |
class ToNum a where | |
num :: Num b => a -> b | |
instance ToNum Z where |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Initial ttt.cabal generated by cabal init. For further documentation, | |
-- see http://haskell.org/cabal/users-guide/ | |
name: ttt | |
version: 0.1.0.0 | |
-- synopsis: | |
-- description: | |
license: GPL-3 | |
-- license-file: LICENSE | |
author: lmdexpr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <time.h> | |
#define N_MENU 3 | |
#define M 20 | |
#define STR_LEN 64 | |
#define DIFs 3 | |
//#define PLAYERS 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main :: IO() | |
main = | |
putStrLn $ "The answer to the Ultimate Question of Life, " | |
++ "the Universe, and Everything is " | |
++ show answer | |
where | |
answer = 42 |