Skip to content

Instantly share code, notes, and snippets.

View asyraffff's full-sized avatar
🐔
cookin

Amirul Asyraf asyraffff

🐔
cookin
  • Malaysia
View GitHub Profile
@asyraffff
asyraffff / eisenhower_matrix.py
Created October 3, 2022 12:33
This command line script uses Eisenhower matrix technique to prioritize tasks using the Eisenhower matrix technique
def eisenhower_matrix():
print("Tell me the first pending task that you can think of?")
task = input("> ")
print("Is this %s important?" % task)
is_important = input("(y/n)> ")
print("Is this %s urgent?" % task)
is_urgent = input("(y/n)> ")
@asyraffff
asyraffff / Browser.java
Last active January 24, 2021 07:25
CheatSheet for Java 🔥. || Folow this order ; intro-1 => intro-2 => intro-3 => intro-4
package intro3.java;
public class Browser {
public void navigate(String address){
String ip = findIpAddress(address);
String html = sendHttpRequest(ip);
}
private String sendHttpRequest(String ip) {
return "<html></html>";
@asyraffff
asyraffff / Console.java
Created January 10, 2021 03:56
Initial stuff that I already working on. But maybe, I will add stuff in future.
package yuu.tube;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.Scanner;
// Console class
public class Console {