Skip to content

Instantly share code, notes, and snippets.

View eru123's full-sized avatar

Jericho Aquino eru123

View GitHub Profile
@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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SpecialExam
{
class Program
{
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" };
.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
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()
@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",
<!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 / 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,