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
import sqlite3 | |
from typing import Optional | |
from pprint import pprint | |
import orm | |
orm.db = sqlite3.connect(":memory:") | |
orm.db.row_factory=sqlite3.Row | |
orm.db.executescript(""" | |
CREATE TABLE foo (id INTEGER PRIMARY KEY, name TEXT NOT NULL) STRICT; |
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
<html> | |
<head> | |
<style> | |
body{ | |
background:#333; | |
} | |
.toggle{ | |
display:none; | |
} | |
#fold{ |
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<ctype.h> | |
#include<math.h> | |
#include<string.h> | |
#include<stdint.h> | |
void skip_whitespace(FILE* f){ | |
char c; | |
while(!feof(f)&&isspace(c=getc(f))); |
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
/* | |
https://esolangs.org/wiki/Procedural_Footnote_Language | |
conforming to version 1.0.2 of the specification | |
other avaiable specification versions: | |
version 1.1 @ https://github.com/vasilescur/pfl/wiki/Procedural-Footnote-Language-Specification | |
The C++ compiler has to be set to at least version C++ 11. | |
*/ |
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<iostream> | |
#include<fstream> | |
#include<string> | |
#include<stack> | |
#include<map> | |
void usage(const char* name){ | |
std::cerr<<name<<" <input> [<file>]\n\nIf the <file> argument is not supplied, the program will be read from stdin."<<std::endl; | |
} |
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<iostream> | |
#include<fstream> | |
#include<string> | |
#include<vector> | |
#include<utility> | |
#include<algorithm> | |
int main(int argc,char** argv){ | |
std::streambuf *cinbuf=std::cin.rdbuf(); // save cin buffer in case it is redirected |
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
<html> | |
<body> | |
<style> | |
body{ | |
background-color:#0079d8; | |
font-family:"Segoe UI"; | |
color:white; | |
cursor:none; | |
} | |
#a{ |
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
/* | |
A stream brainfuck interpreter, the input will be read only once. | |
Also supports Alphuc (https://esolangs.org/wiki/Alphuck), | |
FuckbeEs (https://esolangs.org/wiki/FuckbeEs), | |
ReverseFuck (https://esolangs.org/wiki/ReverseFuck), | |
and the whole TrivialBrainfuckSubstitution (https://esolangs.org/wiki/TrivialBrainfuckSubstitution) language family. | |
*/ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<div style="float:left;"> | |
<textarea id="in" cols="80" rows="30"></textarea><br> | |
<button onclick="go()">go!</button> | |
<a href="https://esolangs.org/wiki/Emmental" target="_blank">?</a> |
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
<html> | |
<head> | |
<style> | |
#out{ | |
display:flex; | |
flex-flow: row no-wrap; | |
justify-content:center; | |
margin-bottom: 40px; | |
} | |
#out>samp{ |
NewerOlder