Home

Command Archive

So many commands to remember and Google… Might as well create an archive for them~ For now it covers SSH, processes, MySQL, screen, GPG, Anaconda.

Read more

MySQL Cheatsheet

In development of @soc_locker_bot, I had to use a lot of MySQL query commands. So I’d put them here for future reference^^

Read more

Introduction to Promises

unfinished post I decided to write a Telegram Bot using NodeJS, but nearly every library I use are async. It seems I have to learn some promises…

Read more

Learn Julia In a C-style

Since Julia is a language as performant as C and developer-friendly as Python, why not learn to write Julia code in respective styles?

Read more

A glimpse at lambda calculus

Problem Description In the 2015 CS1101S mid-term quiz, it asks whether the following functions exhaust time and/or space resources. const C = (x => x(x))(x => x(x)); const D = (x => (x(x))(x))(x => x(x)); const E = (x => x(x(x)))(x => x(x)); const F = (x => x(x))(x => x(x(x)));

Read more

Cryptic Recursion

Original: ((function(f){return f(f);})( (function(make_factorial){ return function(n){ return (n===0) ? 1 : n * make_factorial(make_factorial)(n-1); }; })))(5);

Read more