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;
View RxLoopSince.java
import rx.Observable;
import rx.subjects.BehaviorSubject;
import java.time.LocalDateTime;
import java.util.Random;
import java.util.concurrent.TimeUnit;
public class Program {
private static class Status {
LocalDateTime timestamp;
View dicen.html
<div class="banner">
<div class="article">
<span class="value" contenteditable="true">Los</span>
</div>
<div class="subject">
<span class="value" contenteditable="true">Gatos</span>
</div>
<div class="verb">
<span class="value" contenteditable="true">dicen</span>
</div>
View async.js
function runAsync(gen) {
return new Promise((resolve, reject) => {
function loop(result) {
if (result.done) {
return resolve(result.value);
}
result.value.then(handleResolved, handleRejected);
}
View Usage.sh
curl https://gist.githubusercontent.com/Garciat/c01d75e88891f66c8565/raw/4f247e6affba184142d87dee7f8c39f153254149/test300.raw.xz.b64 | base64 -d | unxz > test300.raw