Skip to content

Instantly share code, notes, and snippets.

View ynshung's full-sized avatar
📚
busy

Young Shung ynshung

📚
busy
View GitHub Profile
#include <iostream>
#include "LinkedList.h"
using namespace std;
template <class T>
LinkedList<T>::LinkedList(T value) {
appendNode(value);
}
@ynshung
ynshung / SAPSTouch_PrivacyPolicy.md
Created June 10, 2022 06:42
Privacy Policy of SAPS Touch

SAPS Touch: Semakan Keputusan

Welcome to SAPS Touch: Semakan Keputusan for Android!

Short version

Rest assured, all data retrieved such as student data are stored locally and never sent to any server.

Long version

I have not programmed the app to collect any personally identifiable information. All data, including but not limited to app preferences and saved student data are stored on your device only, and can be simply erased by clearing the app's data in the app settings or your phone's system settings or uninstalling it.

@ynshung
ynshung / CountdownDaisyUI.svelte
Created April 21, 2022 16:50
Countdown Component with DaisyUI (Tailwind CSS)
<script>
// Courtesy of https://eaj.no/how-to-make-a-countdown-timer-with-java-script/
const getTimeDifference = (targetDate) => {
// let today = new Date();
// let diff = targetDate.getTime() - today;
let diff = targetDate.getTime() - Date.now();
if (diff < 0) {
return {
#!/bin/sh
sudo apt update
sudo apt install --assume-yes wget tasksel
[[ $(/usr/bin/lsb_release --codename --short) == "stretch" ]] && \
sudo apt install --assume-yes libgbm1/stretch-backports
wget https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb
sudo apt-get install --assume-yes ./chrome-remote-desktop_current_amd64.deb
sudo DEBIAN_FRONTEND=noninteractive \
apt install --assume-yes xfce4 desktop-base dbus-x11 xscreensaver
#!/bin/bash
wget -nc "https://ftp.nluug.nl/pub/graphics/blender/release/Blender2.93/blender-2.93.0-linux-x64.tar.xz"
mkdir 2.93
tar -xkf blender-2.93.0-linux-x64.tar.xz -C ./2.93 --strip-components=1
rm blender-2.93.0-linux-x64.tar.xz
sudo apt update
sudo apt install -y python3-pip libx11-dev libxxf86vm-dev libxcursor-dev libxi-dev libxrandr-dev libxinerama-dev libglew-dev
pip3 install gdown