- https://perfnow.nl/
- timer https://nolanlawson.com/2018/09/01/a-tour-of-javascript-timers-on-the-web/
- push or not to push https://www.youtube.com/watch?v=cznVISavm-k
struct Token { | |
enum Type { integer, plus, minus, mul, div, lparen, rparen } type; | |
std::string text; | |
Token(Type type, const std::string& text) : type(type), text(text) {} | |
friend std::ostream& operator<<(std::ostream& os, const Token& token) { | |
os << " " << token.text << " "; | |
return os; |
#include <assert.h> | |
template<typename T> | |
T Min(T a, T b) | |
{ | |
return (a < b) ? a : b; | |
} | |
// Test |
#include <iostream> | |
#include <vector> | |
#include <unordered_map> | |
#include <string> | |
using std::vector; | |
using std::cout; | |
using std::unordered_map; | |
using std::string; | |
#include <iostream> | |
#include <vector> | |
std::vector<int> f(std::vector<int> &v, int i, int n) | |
{ | |
int j = 1; | |
if (i <= n) { | |
j = v.back(); | |
v.push_back(i); |
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <math.h> | |
using std::cout; | |
using std::string; | |
using std::vector; | |
;; Select this code and press ctrl-e to evaluate | |
;; reset_clock() | |
set_tempo(120) | |
set_scale("min") | |
; start("ReverbMixer") | |
start("FBReverbMixer") | |
instr Add |
#/bin/bash | |
cd ~/Music | |
# youtube-dl -f bestaudio --extract-audio --embed-thumbnail --add-metadata $1 || youtube-dl -f bestaudio --extract-audio --add-metadata $1 | |
youtube-dl -f bestaudio --extract-audio --embed-thumbnail --audio-format mp3 --audio-quality 0 $1 |
tiling terminal emulator (D/Gtk3) https://github.com/gnunn1/tilix