Construct it as object
Run it with .show_all()
Construct it as object
Run it with .show_all()
void push(string in)
string pop()
string peek(int in)
void empty()
void flush()
//You can also change type of this function to any other (if you need) | |
class ClassMisc { | |
public static string[] str_arr_cmb(string[] a, string[] b){ | |
string[] output = {}; | |
int cnt = 0; | |
foreach(string i in a){ | |
output += a[cnt]; | |
cnt++; |
=begin | |
# Unobfuscated code: | |
s="-^v><*$-".each_char.take 8;loop{print " #{s.sample}_#{s.sample} ";sleep 0.1;print "\r"} | |
=end | |
# Obfuscated code: | |
eval( "" + | |
"\u0064\u003D\u0022\u0030" + | |
"\u0030\u0037\u0033\u0030" + | |
"\u0030\u0033\u0044\u0030" + |
#!/usr/bin/env python3 | |
# Requires `cleverbot` and `flask` pip packages | |
# To send message, send POST request with msg=<message> | |
# You'll receive answer in response body | |
from cleverbot import Cleverbot | |
from flask import Flask, redirect, url_for, request | |
app = Flask(__name__) | |
cb = Cleverbot() |
require "date" | |
dt = DateTime.now | |
base = ("a".."z").to_a + ("A".."Z").to_a + ("0".."9").to_a | |
blen = base.length | |
passlen = ARGV[0] | |
if passlen == "-" | |
passlen = gets |
module.exports = (obj, ...args) => { | |
return new Promise((res, rej) => { | |
try { | |
res(new obj(...args)); | |
} catch (e) { | |
rej(e); | |
} | |
}); | |
} |
#pragma once | |
#include <functional> | |
#include <memory> | |
#include <mutex> | |
template<class T> | |
class room { | |
public: | |
typedef std::shared_ptr<T> ptr; |
--[[ | |
The MIT License (MIT) | |
Copyright (c) 2018 Nickolay Ilyushin | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
// same code as in quill part, but in C++ | |
{ | |
int i = 0 | |
contfunc = [&] () { i++; } | |
while (i < 10) { | |
std::cout << i << std::endl; | |
contfunc(); | |
} | |
std::cout << "Done counting" << std::endl; | |
} |