{{ message }}

Instantly share code, notes, and snippets.

📖
Always Learning...

📖
Always Learning...
View turing-sum-of-two-positive-integers.yaml
 # You can run this turing machine in https://turingmachine.io/ name: sum of two positive integers source code: |+ # Sum of two positive integers # Demo for this talk: https://querateam.github.io/talks/presentations/Theory-of-Computation-1/ input: '111110111' blank: 0 start state: s1 table: s1:
View turing-multiply-by-two.yaml
 # You can run this turing machine in https://turingmachine.io/ name: multiply by two source code: |- # Multiply by two # Demo for this talk: https://querateam.github.io/talks/presentations/Theory-of-Computation-1/ input: '1111' blank: 0 start state: s1 table: s1:
View turing-determine-parity.yaml
 # You can run this turing machine in https://turingmachine.io/ name: determine parity source code: |- # Determine Parity # Demo for this talk: https://querateam.github.io/talks/presentations/Theory-of-Computation-1/ input: '11111' blank: 0 start state: s1 table: s1:
View turing-print-3-strokes.yaml
 # You can run this turing machine in https://turingmachine.io/ name: Print three strokes source code: |- # Print three strokes # Demo for this talk: https://querateam.github.io/talks/presentations/Theory-of-Computation-1 input: '' blank: 0 start state: s1 table: s1:
Created Mar 29, 2021
View with-antd.js
 /* eslint-disable no-param-reassign, consistent-return, no-restricted-syntax */ // Source: https://github.com/solidzoro/next-plugin-antd-less (Adapted to Webpack 5) const clone = require("clone"); const fs = require("fs"); const lessToJS = require("less-vars-to-js"); // fix: prevents error when .less files are required by node if (typeof require !== "undefined") require.extensions[".less"] = () => {}; module.exports = (
Last active Jul 18, 2021
Arch Post-Installation
View 00-arch-post-install.md

Some of my cusomizations after installing Arch Linux.

Last active Nov 30, 2020
Access Android Storage Remotely using Termux and SSH
View android_storage_ssh.md

## Steps

1. Install Termux on android device.
Last active Jan 18, 2021
Anki Card Template
View AnkiCardTemplate.md
• Install "Syntax Highlighting for Code" plugin: https://ankiweb.net/shared/info/1463041493

• In the plugin's options (`Tools > Syntax Highlighting Options`), set:

• Line numbers
• Center code fragments
• Use CSS classes
• Enter following HTML and CSS templates in `Tools > Manage Note Types > Cards`

Created Jan 25, 2019
Activity Logger
View actlogger.sh
 \$ pacman -S xprintidle xdotool iw \$ while true; do idle=`xprintidle`; print `date` ' | ' 'Idle:' "\$((idle/1000))s" ' | ' `xdotool getactivewindow getwindowname`; sleep 10; done \$ iw dev wlp2s0 info
Created Dec 4, 2018
Iran Provinces and Cities (from http://gndb.ncc.org.ir/Pages/Search.aspx on 2018 Dec 4)
View iran_cities.json
 [ { "id": 1, "province": "آذربایجان شرقی", "cities": [ { "name": "آبش احمد", "phonetic": "Ābešahmad", "longitude": "47.3171388", "latitude": "39.04429447"