Skip to content

Instantly share code, notes, and snippets.

View eru123's full-sized avatar

Jericho Aquino eru123

View GitHub Profile
@eru123
eru123 / numesis.js
Last active July 13, 2021 05:43
A JavaScript class for creating custom number system
class Numesis {
public readonly c: {s:string,l:number,i:number,a: Array<string>};
/**
* @param {String} ch A non-duplicate character set, that will be use in creating new number system
*/
constructor(ch:string = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"){
this.c = {
s: ch,
<!DOCTYPE html>
<html>
<head>
<title>Jeremi Alvarez Profile</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="icon"
type="image/x-icon"
href="C:\Users\KAI\Desktop\Codes\New folder (2)\favico.ico"
/>
@eru123
eru123 / product.js
Last active November 25, 2021 04:18
const categories = {
"TREATS": {
"Novelties": [{
"image": "dqsandwich.png",
"name": "DQ® Sandwich",
"description": "Bite into a DQ® sandwich and taste the sensation of cool DQ soft serve nestled between two chocolate flavored wafers."
},
{
"image": "https://dairyqueen.com.ph/wp-content/uploads/2020/08/Box-of-DQ-Sandwich.png",
"name": "Box of DQ® Sandwich",
namespace ConsoleApp1
{
class Program
{
abstract class Vehicle
{
public abstract string Color { get; set; }
public abstract decimal Price { get; set; }
public bool isEngineStart { get; set; }
public void startEngine()
.model small
.stack 100h
.data
txt db 10, 13, ' RED', 10, 13, 10, 13, 10, 13, ' GREEN',10, 13, 10, 13, 10, 13, ' BLUE', 10, 13, 10, 13, 10, 13, 10, 13, '$'
.code
main proc
call draw_box
call write_text
import java.io.Console;
public class Chatbot {
final static Console console = System.console();
final static String[] greeting = { "Hello", "Hi", "Hey", "Howdy", "Greetings", "Good day", "Good to see you" };
final static String[] farewell = { "Goodbye", "Bye", "See you later", "Have a nice day", "See you later" };
// triggers
final static String[] t_admission = { "register", "admission", "admit" };
final static String[] t_departure = { "exit", "depart", "departure", "bye", "farewell", "thank", "q" };
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SpecialExam
{
class Program
{
@eru123
eru123 / private_var_ref_test.php
Last active September 8, 2022 04:15
Check if class private variable can be referenced from outside the class using class method and an outside callback function
<?php
/**
* PHP Test - Check if Class private variable
* can be referenced from outside the class
* using class method and an outside callback
* function
*/
class PrivateClass
@eru123
eru123 / interserver.sh
Last active September 17, 2022 15:33
Dokku Installer
#!/bin/bash
# Skidd PH VPS Dokku Setup Script
# Tested on Ubuntu 22.04 LTS InterServer VPS
# 1 core, 2GB RAM, 30GB SSD
DOMAIN="skiddph.com"
SUBDOMAIN="www.skiddph.com"
ADMIN_EMAIL="yeoligoakino@gmail.com"
CURRENT_USER=$(whoami)
@eru123
eru123 / authorized_keys
Last active September 23, 2022 08:22
Public Keys for VPS
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjF9mzoOzwtWdP/5dpw/T8/WW+06oirlksZqKGYRSshO1I9K1XIkQcVwVY2jYTz/SNJsCRGgaGqHeOSUMh5lYCXblxkUAtmIQP8VbTHNRku6UseJNGIuElW5brhW4w5omo/QuGysWZhVkL+OkLqmkRJiVOo852k0/hs+4lF2XocQ3R0pWqJ7aB14KNf+twZIcD4FZC79C58GI0Xtr+3eLvzwXWzDyrmS4d7ZQc58aHW8Ro/zZS+4M/fYToCl/BZx77y9T2bNaaCTe3BmWE3f1bggx7QFJXR5lBijuD6pmzw7ICMi77zQvhVMauSpQD+X+kg41nHBQuTJrbb853xFAB rsa-key-20220917
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO8mlamfyArzilrjGqd3Tih8ikOBncJJVzk6zaEirgi4 DEV@DESKTOP-RKA0MK1
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCAL1tRi2ywaMu5BjZUrgEIrKK3owjAU83jnUizkeZfAsCTp852Qg3Dz4HeJZYu1souXrCDPvh10Kl8OdpG3z+y8WrP+YAs3UtZHIMBvKMPccrs2fgHsVJiocb3h57EItTY+YFjHruRcpRxGDSnPo5rT4Mh+Y0f3KqtJfLX89MGzJFFhPTDhwtL2IATSmXoSq6xKLqGPPEWBBqGD94Z28kaqgDsJyilBFNdusS5bywTI2Ct2DGSeHIpiwPmGTDtY7Ii5koxjxn0so1T5TcBdhmu114RcJjBuguEggXNgLD5Et2XkAtf19hUcTaxs2fuWuuEyEjZAZ5z7VDFeOKx1n/d rsa-key-20220923
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC/56Su9R5KBcD+8DATMxRMEJ1143C/BkqO7v9qHw/CkWankPQsrHfaM1C6WWo+PgxmOFQx/ThouNkUZ5TF9Z7a1ZY