Skip to content

Commit 7434e69

Browse files
committed
My first ever commit! I think I committed my
Python game app!
0 parents  commit 7434e69

File tree

210 files changed

+21856
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

210 files changed

+21856
-0
lines changed

.vscode/launch.json

+91
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "java",
9+
"name": "Launch DataStructures",
10+
"request": "launch",
11+
"mainClass": "DataStructures",
12+
"projectName": "PersonalProjects_be73262"
13+
},
14+
{
15+
"type": "java",
16+
"name": "Launch MultipleClasses2",
17+
"request": "launch",
18+
"mainClass": "MultipleClasses2",
19+
"projectName": "PersonalProjects_be73262"
20+
},
21+
{
22+
"type": "java",
23+
"name": "Launch main",
24+
"request": "launch",
25+
"mainClass": "magepack.main",
26+
"projectName": "PersonalProjects_be73262"
27+
},
28+
{
29+
"type": "java",
30+
"name": "Launch Mage",
31+
"request": "launch",
32+
"mainClass": "magepack.Mage",
33+
"projectName": "PersonalProjects_be73262"
34+
},
35+
{
36+
"type": "java",
37+
"name": "Launch MultipleClasses",
38+
"request": "launch",
39+
"mainClass": "MultipleClasses",
40+
"projectName": "PersonalProjects_be73262"
41+
},
42+
{
43+
"type": "java",
44+
"name": "Launch Main",
45+
"request": "launch",
46+
"mainClass": "magepack.Main",
47+
"projectName": "PersonalProjects_be73262"
48+
},
49+
{
50+
"type": "java",
51+
"name": "Launch Package",
52+
"request": "launch",
53+
"mainClass": "Package",
54+
"projectName": "PersonalProjects_be73262"
55+
},
56+
{
57+
"type": "java",
58+
"name": "Launch Java Program",
59+
"request": "launch",
60+
"mainClass": ""
61+
},
62+
{
63+
"type": "java",
64+
"name": "Launch Current File",
65+
"request": "launch",
66+
"mainClass": "${file}"
67+
},
68+
{
69+
"name": "Launch Edge",
70+
"request": "launch",
71+
"type": "msedge",
72+
"url": "http://localhost:8080",
73+
"webRoot": "${workspaceFolder}"
74+
},
75+
{
76+
"name": "Launch Chrome",
77+
"request": "launch",
78+
"type": "chrome",
79+
"url": "${file}",
80+
"webRoot": "${workspaceFolder}"
81+
},
82+
{
83+
"name": "Python: Current File",
84+
"type": "python",
85+
"request": "launch",
86+
"program": "${file}",
87+
"console": "integratedTerminal",
88+
"justMyCode": true
89+
}
90+
]
91+
}

HTML notes.txt

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
html notes:
2+
<b> - Bold text
3+
<strong> - Important text
4+
<i> - Italic text
5+
<em> - Emphasized text
6+
<mark> - Marked text
7+
<small> - Smaller text
8+
<del> - Deleted text
9+
<ins> - Inserted text
10+
<sub> - Subscript text
11+
<sup> - Superscript text
12+
<q> - quote
13+
<abbr title =' '> - abbreviation with mouse over
14+
15+
<address> - to italicize as address
16+
17+
in between texts
18+
19+
background-color:hsl(0, 100%, 20%) - hue saturation light
20+
rgb(x,x,x) - color
21+
font-size: - font size
22+
text-decoration: - underline etc.
23+
24+
letter-spacing: value;
25+
line-height: value;
26+
27+
28+
<a href="https://getbootstrap.com/docs/4.6/getting-started/introduction/" target="__blank"> Bootstrap introduction :)</a>
29+
30+
31+
32+
<h3 style="margin-left:20px"> This is 2nd heading </h3>
33+
34+
<div class="container" style="border: solid; padding: 15px; margin: 10px; color: black;">
35+
<div class="row" style="margin: 10px;">
36+
<br> <span style="font-family: Verdana; font-weight: 550;"> CSS Cool fonts </span>
37+
<a href='https://www.w3schools.com/cssref/css_websafe_fonts.asp' target='_blank' id="othervid1" style="margin-left: 50px;"> CSS cool fonts :)</a>
38+
<span style="background-color: bisque; margin-left: 10px;"> This enables me to learn more CSS fonts and stylings! </span>
39+
<img src="picturesforweb/wizard.png" style="width: 70px; height: 70px; margin-top: -70px; margin-bottom: -10px; margin-left: 55px;">
40+
</div>
41+
42+
<div class="row" style="padding: 10px;">
43+
<br> <span style="font-family: Verdana; font-weight: 550; text-align: center; margin-left: 40px; margin-right: 90px;"> Gael </span>
44+
<a href="https://www.w3schools.com/css/css_intro.asp" target="_blank" id="othervid"> CSS learning :)</a>
45+
<span style="background-color: aquamarine; margin-left: 21px;"> This is where everything I need to learn CSS! The basic! </span>
46+
<img src="picturesforweb/player.png" style="width: 70px; height: 70px; margin-top: -290px; margin-bottom: -10px; margin-left: 50px;">
47+
</div>
48+
49+
<div class="row" style="margin: 10px;">
50+
</div>
51+
</div>
52+
<br></br><br><br>
53+
</body>
54+
<table>
55+
<tr>
56+
<th> Name </th>
57+
<th> Classification </th>
58+
<th> Magic Type </th>
59+
<th> Attributes </th>
60+
</tr>
61+
<tr>
62+
<td> Decoretum </td>
63+
<td> BattleMage </td>
64+
<td> Abyssal </td>
65+
<td> Mastery in Arcane arts, especially destruction </td>
66+
</tr>
67+
</table>

Java/DataStructures.java

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
import java.util.*;
2+
public class DataStructures {
3+
4+
/*public void ArrayList(String name){
5+
name = String(name);
6+
ArrayList<Integer> name = new ArrayList<Integer>();
7+
8+
} */
9+
10+
11+
12+
13+
14+
public static void main (String args[]){
15+
16+
ArrayList<Integer> Num = new ArrayList<Integer>();
17+
Num.add(5);
18+
Num.add(2);
19+
Num.add(1);
20+
Collections.sort(Num);
21+
System.out.println(Num);
22+
23+
//remember your algorithms class
24+
//similar to arraylists in java
25+
LinkedList<String> Characters = new LinkedList<String>();
26+
Characters.add("Gael");
27+
Characters.add("Angela");
28+
Characters.add("Jam");
29+
Characters.removeLast();
30+
Characters.addLast("Joe");
31+
Characters.set(1,"Lia");
32+
Collections.sort(Characters);
33+
System.out.println(Characters);
34+
System.out.println(Characters.getLast());
35+
36+
//Hashmap
37+
HashMap<Integer,String> Projects = new HashMap<Integer,String>();
38+
Projects.put(0,"Java");
39+
Projects.put(1,"Web Development");
40+
Projects.put(2,"JavaScript");
41+
System.out.println(Projects);
42+
System.out.println(Projects.get(1));
43+
44+
HashMap<String,Integer> Adventures = new HashMap<String,Integer>();
45+
Adventures.put("Matilda",69);
46+
Adventures.put("Ramsay", 9);
47+
Adventures.put("Lala", 99);
48+
49+
//loop through keys using .keySet() and values using .values()
50+
for (int i=0; i<Projects.values().toArray().length; i++){
51+
System.out.println(Projects.get(i));
52+
}
53+
54+
for (int i : Projects.keySet()){
55+
System.out.println(i + " and " + Projects.get(i));
56+
}
57+
58+
for (String i : Adventures.keySet()){
59+
System.out.printf("%s with the value of %d\n", i, Adventures.get(i));
60+
}
61+
}
62+
}

Java/Functions.class

1.68 KB
Binary file not shown.

Java/Functions.java

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
public class Functions{ //recursions. Remember, void used for methods that don't return, and datatype required for methods that return
2+
static void Gael(int value){
3+
String Statement = "We have now received intel on the number of " + value;
4+
System.out.println(Statement);
5+
}
6+
static int RecursiveSum(int value){
7+
if (value > 0){
8+
return value + RecursiveSum(value-1);
9+
} else{
10+
return 0;
11+
}
12+
}
13+
static void ArraySum(int[]array){
14+
int total = 0;
15+
for (int i=0; i < array.length; i++){
16+
total += array[i];
17+
}
18+
System.out.println("Sum:" + " " + total);
19+
}
20+
static int Fibbonaci(int value){
21+
if (value > 1){
22+
return Fibbonaci(value-1) + Fibbonaci(value-2);
23+
}
24+
else if(value < 1){
25+
return 0;
26+
}
27+
else if (value == 1){
28+
return 1;
29+
}
30+
return value;
31+
}
32+
static int BinarySearch(int[]array,int target){
33+
int low = array[0];
34+
int high = array[array.length - 1];
35+
while (low < high){
36+
int mid = (low + high) / 2;
37+
if (array[mid] < target){
38+
low = mid + 1;
39+
}
40+
else if (array[mid] > target){
41+
high = mid - 1;
42+
}
43+
else if (array[mid] == target){
44+
return mid;
45+
}
46+
}
47+
return 0;
48+
}
49+
50+
public static void main(String args[]){
51+
Gael(79);
52+
System.out.println(RecursiveSum(79));
53+
int[]A1 = {1,2,4,5,1,2,5};
54+
int[]sorted = {1,2,3,4,5,6,7};
55+
ArraySum(A1);
56+
System.out.println(Fibbonaci(6));
57+
System.out.println(BinarySearch(sorted, 5));
58+
}
59+
}

Java/GaelChild.class

1.03 KB
Binary file not shown.

Java/GaelChild.java

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
public class GaelChild{ //another class that could access GaelClass attributes and methods
2+
3+
4+
public static void main(String[]arg){
5+
GaelClass GaelKid1 = new GaelClass("Gael","Ateneo de Manila University","BS MIS, Specialization in Data Science and Analytics","3rd Year",'M',"Single");
6+
GaelKid1.status = "Taken"; //we modify attribute of an object from a different class
7+
GaelKid1.Emotion = "Feeling happy!"; //we initialize a value for the empty variable "Emotion" of object from a class
8+
System.out.println(GaelKid1.Information());
9+
GaelKid1.Greetings();
10+
GaelKid1.GreetingswithName();
11+
GaelKid1.Education();
12+
GaelKid1.Love();
13+
GaelKid1.ChangeStatus("Single");
14+
GaelKid1.Love();
15+
System.out.println("Gael\'s Hardships/Challenges");
16+
17+
18+
}
19+
}

Java/GaelClass.class

2.81 KB
Binary file not shown.

Java/GaelClass.java

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
public class GaelClass{ //for objected oriented programming, class should always start with uppercase letter, set out all the variables
2+
// initializer of default values, similar to def __init__ in python
3+
String School;
4+
String Year;
5+
String Emotion;
6+
String Name;
7+
String status;
8+
char Sex;
9+
String Course;
10+
String Challenges [];
11+
private String Secrets [] = {"Horny and motivated to make love"};
12+
13+
public GaelClass(String name, String school, String course, String year, char sex, String stats){ //, called when an object of this class is created, hence fill parameters when creating object of class
14+
Name = name;
15+
School = school;
16+
Course = course;
17+
Year = year;
18+
Sex = sex;
19+
status = stats;
20+
}
21+
22+
/*static methods can be accessed without creating an object of the class. If you want to use attributes of an object of a class,
23+
use public methods in order to access public/non-static attributes or variables */
24+
public String Information(){
25+
String Information = "Object Name:" + " " + Name + "." + " " + Name + " has status of" + " " + status + "" + " with the sex of" + " " + Sex + "" + "." + "\nEmotion is" + " " + Emotion;
26+
return Information;
27+
}
28+
29+
public void ChangeStatus(String s){
30+
this.status = s;
31+
System.out.println(Name + " is now " + s);
32+
}
33+
34+
35+
public void Greetings(){
36+
System.out.println("Greetings! Nice to meet you!");
37+
}
38+
39+
public void GreetingswithName(){
40+
System.out.println("Greetings! My name is" + " " + Name);
41+
}
42+
43+
public void Education(){
44+
System.out.println(Name + "" + " studies in" + " " + School + " in " + Year + " with a course of " + Course);
45+
}
46+
47+
public void Love(){
48+
if (status == "Single"){
49+
System.out.println(Name + " is still not taken!");
50+
}
51+
else if (status == "Taken"){
52+
System.out.println(Name + " is already taken :( ");
53+
}
54+
}
55+
56+
public static void main(String[]args){
57+
GaelClass Object1 = new GaelClass("Iris","UP Diliman","Journalism","Post Graduate",'F',"Mother"); //we make an instance object for the class
58+
GaelClass Object2 = new GaelClass("Joanah","UP Diliman","Civil Engineering","3rd Year",'F',"Single");
59+
System.out.println(Object1.School + " " + Object1.Year);
60+
System.out.println(Object2.status + " " + Object2.Sex);
61+
System.out.println(Object1.Course + " " + Object2.Course);
62+
for (int a = 0; a < Object1.Secrets.length; a++){
63+
System.out.println(Object1.Secrets[a]);
64+
}
65+
}
66+
}

0 commit comments

Comments
 (0)