Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Fahad Munir fmunirWorld

🎯
Focusing
Block or report user

Report or block fmunirWorld

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@fmunirWorld
fmunirWorld / c_cpp_properties.json
Last active Oct 20, 2019
Using Mingw-w64 in VS Code
View c_cpp_properties.json
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**", "${vcpkgRoot}/x86-windows/include"
],
"defines": [
"_DEBUG",
"UNICODE",
@fmunirWorld
fmunirWorld / MainActivity.java
Last active Jun 1, 2019
Android: Restrict Google Sign In to certain emails with domain
View MainActivity.java
private void handleSignInResult(GoogleSignInResult result) {
Log.d(TAG, "handleSignInResult:" + result.isSuccess());
if (result.isSuccess()) {
// Signed in successfully.
GoogleSignInAccount acct = result.getSignInAccount();
String email = acct.getEmail();
String[] split = s.split("@");
String domain = split[1]; //This Will Give You The Domain After '@'
if(domain.equals("companyname.com"))
{
@fmunirWorld
fmunirWorld / DocTrackingDB.sql
Created Apr 18, 2019
Setting database queries for Document Tracking System
View DocTrackingDB.sql
CREATE TABLE receiving(
receiving_date DATE NOT NULL,
diary_no INT NOT NULL,
no_of_letter VARCHAR(40) NOT NULL,
creation_date DATE NOT NULL,
file_no VARCHAR(40),
-- original_address VARCHAR(40),
from_dpt VARCHAR(40) NOT NULL,
to_dpt VARCHAR(40) NOT NULL,
subject VARCHAR(255) NOT NULL,
@fmunirWorld
fmunirWorld / MessAttendance.js
Last active Apr 9, 2019
UOG Boys Hostel - Mess Attendance Email Template
View MessAttendance.js
<script>
function customCalendar(year, month) {
month--;
let d = new Date(year, month);
let firstDay = d.getDay();
let date = 1, dateIter = 1;
var table = "<table>";
table += "<tr><th colspan=14>" + d.toLocaleString('en-us', { month: 'long' }) + " " + d.getFullYear() + "</th></tr>";
table += "<tr>";
You can’t perform that action at this time.