Skip to content

Instantly share code, notes, and snippets.

View yvesaur's full-sized avatar
📚
learning...

Yves Casio yvesaur

📚
learning...
View GitHub Profile
@yvesaur
yvesaur / typescript_basics.ts
Created May 19, 2024 14:07
Basic rules when writing typescript
let age: number = 0;
if (age < 50) {
age += 10;
}
// Built-in Types
let sales: number = 2314;
let course: string = "TypeScript";
let isPublished: boolean = true;
@yvesaur
yvesaur / class_dependency.cs
Created January 30, 2023 18:20
ADET-MODULE#3-SRC-FILE
// Yves Christian P. Casio
/*
Create a C# program that represents the following UML class diagram. The diagram represents public, private,
and protected attributes as well as class dependency and inheritance.
*/
using System;
namespace Shapes {
@yvesaur
yvesaur / armstrongNumber.cs
Last active January 30, 2023 18:13
ADET-MODULE#2-SRC-FILE
// Yves Christian P. Casio BSCS 3-1N
/*
Write a C# program to check whether the given number is armstrong number or not.Armstrong Number in C#:
A positive number is called armstrong number if it is equal to the sum of cubes of its digits for example
0, 1, 153, 370, 371, 407 etc.
*/
using System;
@yvesaur
yvesaur / linkedlistaddition.py
Created November 29, 2021 13:37
LINKED LIST ADDITION
# CASIO, YVES CHRISTIAN P. BSCS 1-1N
'''
In most personal computers, the largest integer is 32,767 and the largest long integer is
2,147,483,647. Some applications, such as the national debt, may require an unbounded
integer. One way to store and manipulate integers of unlimited size is by using a linked
list. Each digit is stored in a node of the list. For example, the figure below shows how
we could store a five-digit number in a linked list.
While the linked list in the figure is represented as moving from right to left, remember that
@yvesaur
yvesaur / quiz_game.py
Created September 13, 2021 11:41
QUIZ GAME IN CONSOLE (PYTHON)
from time import sleep
# ----------------------------------------
def new_game():
answers = []
correct_answers = 0
qNum = 1
for keys in question:
@yvesaur
yvesaur / rock_paper_scissors.py
Last active September 12, 2021 11:38
Play this classic game in your console
import random
import emoji
import time
import webbrowser
rock = emoji.emojize(":bomb:")
paper = emoji.emojize(":page_facing_up:")
scissors = emoji.emojize(":scissors:")