This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main(List<String> args) { | |
// examples | |
var courseCodes = [ | |
'MCTE2333', | |
'LAW4510', | |
'CCUB 3921', | |
'LC 2014', | |
'TQB 1011M', | |
'ahbs2317' | |
]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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 --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"status": 200, | |
"students": [ | |
{ | |
"name": "Lester Hall", | |
"age": 35, | |
"birthday": "10/10/2089", | |
"country": "Bosnia & Herzegovina" | |
}, | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//odd even ic number (Malaysia) | |
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
int icNumber; | |
cout << "Enter your matric num: "; | |
cin >> icNumber; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//odd even matric number | |
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
int matricNum; | |
cout << "Enter your matric num: "; | |
cin >> matricNum; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |