View lazy_primality.cpp
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <cstdio>
#include <iostream>
#include <memory>
#include <stdexcept>
#include <string>
View lambda_delegate.cpp
#include <functional>
#include <iostream>
#include <utility>
using namespace System;
using namespace System::Linq;
using namespace System::Collections::Generic;
template <typename T>
struct identity { using type = T; };
View eager_generator.py
import pandas as pd
import functools
def eager_generator(reifier):
"""
Makes it so that a generator function returns a collection by forcing its full evaluation eagerly.
:arg reifier: function that takes the generator and reifies it to a collection.
View tcp-proxy.js
'use strict';
const net = require('net');
const LOCAL_PORT = 7358;
const REMOTE_PORT = 7357;
const REMOTE_ADDR = 'localhost';
const server = net.createServer(function (clientSocket) {
const serviceSocket = new net.Socket();
View Polynomial.hpp
#pragma once
#include <map>
#include <utility>
#include <iostream>
#include <type_traits>
template <typename T>
class Polynomial {
public:
View functional.js
/* Lazy */
class Memoized {
constructor(it) {
this.it = it;
this.done = false;
this.mem = [];
}
[Symbol.iterator]() {
View chispitas.html
<body style="margin:0"></body>
<script src="http://gbrlgrct.com/gists/07d74ba686ce04eccb11faa44f2ae229/functional.js"></script>
<script>
'use script';
// === SETUP
const SPACEW = document.body.clientWidth;
const SPACEH = document.body.clientHeight;
View minimal-x64.c
void _start() {
asm(
"mov $60, %rax;"
"mov $0, %rdi;"
"syscall;"
);
}
View chat.py
"""
copy(Array.from(document.querySelectorAll('._3oh-')).map(n => n.innerText).join('\n'));
save to 'chat.py'
usage: python chat.py < chat.txt > chat.html
enjoy.
"""
View vortex.html
<body style="margin:0"></body>
<script src="http://gbrlgrct.com/gists/07d74ba686ce04eccb11faa44f2ae229/functional.js"></script>
<script>
'use strict';
/* Init */
const SPACEW = document.body.clientWidth;
const SPACEH = document.body.clientHeight;