Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML5 Canvas Rectangles</title>
<style>
body {
margin: 0;
display: flex;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML5 Canvas Rectangles</title>
<style>
body {
margin: 0;
display: flex;
@judge2020
judge2020 / README.md
Last active January 17, 2025 06:49
Download TikTok Favorites

Setup

  1. Sign into https://tiktok.com and go to your profile
  2. Click favorites or likes
  3. scroll down till all your videos load
  4. paste the script in console and run it
  5. Script will download the file containing newline-delimited links
  6. download via yt-dlp like so:

Setup Altserver Linux on Raspberry Pi with Wifi Refresh

This is a rough outline on how to setup altserver-linux on the 🍓🍰. Wifi refreshing is enabled through the use of netmuxd, which acts as a proxy from AltServer to the iDevice (replaces/enhances usbmuxd).

Tutorials used

Prerequisites

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML5 Canvas Rectangles</title>
<style>
body {
margin: 0;
display: flex;
@Andersama
Andersama / keyword_dfa.h
Last active January 17, 2025 06:44
Generates a dfa designed to accept a list of keywords
#pragma once
#include <vector>
#include <array>
#include <string>
#include <string_view>
#include <cstdint>
#include <algorithm>
#include <format>
#include <iostream>
@mynamebvh
mynamebvh / index.js
Last active January 17, 2025 06:39
Generate QR Banking
const VietQR = require("./vietQR");
const vietQR = new VietQR();
vietQR
.setBeneficiaryOrganization("970423", "mynamebvh")
.setTransactionAmount("50000")
.setAdditionalDataFieldTemplate("test");
console.log(vietQR.build());
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Canvas Game with Mouse Rotation</title>
<style>
body {
margin: 0;
display: flex;
@allenk
allenk / deepclean.cmd
Last active January 17, 2025 06:35
ASUS Software Clean Up Tool
@echo off
:: ------------------------------------------------------------------------------------------------------------
:: Clean Up ASUS All
:: ------------------------------------------------------------------------------------------------------------
:: The tool helps to clean up all ASUS software from system
:: ------------------------------------------------------------------------------------------------------------
:: Before running the tools,
:: 1. Complete backup your system.
:: 2. Disable ASUS Apps from BIOS (MyASUS and Armoury)
:: 3. Run ASUS remove tools (Armoury Crate Uninstall Tool.exe, or geek_uninstall.exe).

Interview Questions

Node.js

Q1: What do you mean by Asynchronous API? ☆☆

Answer: All APIs of Node.js library are aynchronous that is non-blocking. It essentially means a Node.js based server never waits for a API to return data. Server moves to next API after calling it and a notification mechanism of Events of Node.js helps server to get response from the previous API call.

Source: tutorialspoint.com