Skip to content

Instantly share code, notes, and snippets.

View awesmubarak's full-sized avatar

Awes Mubarak awesmubarak

View GitHub Profile
@awesmubarak
awesmubarak / keybase.md
Created November 10, 2017 11:57
keybase proof of identity

Keybase proof

I hereby claim:

  • I am awesmubarak on github.
  • I am awesmubarak (https://keybase.io/awesmubarak) on keybase.
  • I have a public key whose fingerprint is 534F 38B8 0D40 78D7 4B81 1DB2 9CD5 FE08 B479 D538

To claim this, I am signing this object:

@awesmubarak
awesmubarak / 0_content.md
Last active November 11, 2017 18:43
AS-Level Computer Science Skeleton program 2017 (VB) Files

Pre-release files

This file contains all provided documentation for the exams. I'd recommend [downloading everything][download link] and saving it locally. Unzip the file using [7-zip][] or similar.

Table of contents:

  1. [EAD][ead]
  2. [Raw data][raw data]
@awesmubarak
awesmubarak / prerelease.md
Last active November 11, 2017 18:53
Notes for 2017 AS-Level Computer Science Skeleton program (VB)
#!/usr/bin/python3
import requests
import threading
from faker import Faker
from faker.providers import credit_card, phone_number, address, date_time, bank
from stem import Signal
from stem.control import Controller
@awesmubarak
awesmubarak / onedark.md
Created February 8, 2022 00:44
onedark colors
@awesmubarak
awesmubarak / soylent-gmos.md
Last active April 7, 2022 00:42
soylent: proudly made with GMOs
def find_missing(n_list):
"""Finds first missing number from list."""
# At bottom of search
if len(n_list) == 2:
# If there were no missing numbers we're at the rightmost part. The
# numbers will still in be in sequence, 1 apart. We find the max
# between the lowest missing number and `1` to account for the lowest
# missing number being below zero.
if n_list[0] + 1 == n_list[1]:
return max(n_list[1] + 1, 1)
#include <stdio.h>
char* solution(int T) {
int h, m, s;
char *time_str;
h = (T/3600);
m = (T - (3600 * h)) / 60;
s = (T - (3600 * h) - (60 * m));