Skip to content

Instantly share code, notes, and snippets.

View iqfareez's full-sized avatar
🎯
Focusing

Fareez Iqmal iqfareez

🎯
Focusing
View GitHub Profile
@iqfareez
iqfareez / arduino
Created May 24, 2022 18:45
arduino code as of today
‎‎​
@iqfareez
iqfareez / uia_coursecode_format.dart
Last active November 26, 2021 08:30
IIUM Course Code String formatter in Dart
void main(List<String> args) {
// examples
var courseCodes = [
'MCTE2333',
'LAW4510',
'CCUB 3921',
'LC 2014',
'TQB 1011M',
'ahbs2317'
];
@iqfareez
iqfareez / index.html
Created August 10, 2021 12:36
Firebase Hosting default index.html page
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Welcome to Firebase Hosting</title>
<!-- update the version number as needed -->
<script defer src="/__/firebase/8.9.0/firebase-app.js"></script>
<!-- include only the Firebase features as you need -->
@iqfareez
iqfareez / 404.html
Created August 10, 2021 12:34
Firebase Hosting default 404 page
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Page Not Found</title>
<style media="screen">
body { background: #ECEFF1; color: rgba(0,0,0,0.87); font-family: Roboto, Helvetica, Arial, sans-serif; margin: 0; padding: 0; }
#message { background: white; max-width: 360px; margin: 100px auto 16px; padding: 32px 24px 16px; border-radius: 3px; }
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
enum AbuseType { nudity, hateViolence, spam, confidential }
const emphasisTextStyle = TextStyle(fontSize: 18, fontWeight: FontWeight.bold);
void main() {
runApp(MyApp());
}
@iqfareez
iqfareez / wa_brand_colour.dart
Last active January 28, 2021 04:14
WhatsApp brand colour (From https://whatsappbrand.com/) - Flutter/Dart
// https://whatsappbrand.com/
import 'package:flutter/material.dart';
class WaBrandColour {
static const tealGreenDarker = Color(0xFF075E54);
static const tealGreenLighter = Color(0xFF128C7E);
static const lightGreen = Color(0xFF25D366);
static const white = Color(0xFFFFFFFF);
static const outgoingChatBubble = Color(0xFFDCF8C6);
static const checkmarkBlue = Color(0xFF34B7F1);
@iqfareez
iqfareez / student json example.json
Created January 27, 2021 03:02
Mock data JSON file
{
"status": 200,
"students": [
{
"name": "Lester Hall",
"age": 35,
"birthday": "10/10/2089",
"country": "Bosnia & Herzegovina"
},
{
@iqfareez
iqfareez / icNumberGender.cpp
Created December 27, 2020 13:47
C++ script to determine gender based on IC Number (Malaysia)
//odd even ic number (Malaysia)
#include <iostream>
using namespace std;
int main()
{
int icNumber;
cout << "Enter your matric num: ";
cin >> icNumber;
@iqfareez
iqfareez / matricNumberGender.cpp
Last active December 27, 2020 13:35
Code to determine student gender based on matric number (IIUM)
//odd even matric number
#include <iostream>
using namespace std;
int main()
{
int matricNum;
cout << "Enter your matric num: ";
cin >> matricNum;
@iqfareez
iqfareez / ping.py
Last active January 29, 2021 09:22
Windows ping to Google using Python
import os
def main():
while True:
# Input can be Y/N or small letter y/n or word like yes/no
response = input('Do ping? (y/n)\n>>> ')
response = response[0] # Get the first char
response = response.lower() # Convert to lower case