This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@startmindmap | |
* Primitive Types | |
**[#Pink] Numbers | |
***[#Orange] e.g. 1, 0xFF, 3.14, 1.0e3-2 | |
**[#Pink] Atoms | |
***[#Orange] e.g. atom | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ARG NGROK_TOKEN | |
FROM ubuntu:22.04 | |
RUN ACCEPT_EULA=Y apt-get update \ | |
&& ACCEPT_EULA=Y apt-get upgrade \ | |
&& apt-get install --yes software-properties-common build-essential libopenblas-dev ninja-build pkg-config cmake-data clang \ | |
&& apt-get install --yes git git-lfs curl wget zip unzip \ | |
&& git lfs install \ | |
&& apt-get install --yes python3 python3-pip python-is-python3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface TreeNode { | |
left: TreeNode | null; | |
right: TreeNode | null; | |
val: number; | |
}; | |
function main(node: TreeNode) { | |
const list: string[] = []; | |
transversal('', node); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
sudo curl -sS https://packages.gitlab.com/install/repositories/gitlab/raspberry-pi2/script.deb.sh | sudo bash | |
sudo apt-get update | |
sudo apt-get install curl openssh-server ca-certificates apt-transport-https | |
curl https://packages.gitlab.com/gpg.key | sudo apt-key add - | |
sudo apt-get install -y postfix | |
sudo apt-get install gitlab-ce |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
sshpass -p 'raspberry' ssh [email protected] -o StrictHostKeychecking=no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
touch ssh | |
cat <<EOF > wpa_supplicant.conf | |
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
update_config=1 | |
country=hk | |
network={ | |
ssid="<Name of your wireless LAN>" | |
psk="<Password for your wireless LAN>" |