Skip to content

Instantly share code, notes, and snippets.

View awesmubarak's full-sized avatar

Awes Mubarak awesmubarak

View GitHub Profile
@awesmubarak
awesmubarak / quantopian_get_pricing.py
Created October 7, 2024 22:27
Drop-in replacement for defunct `get_pricing` on Quantopian
"""Quantopian `get_pricing` Replacement Script
This script provides a drop-in replacement for the `get_pricing` function that was
previously used on the now-defunct Quantopian platform. It's useful if you're
following the course on one of the archives [1].
The best approach is to set up a virtual environment and install this module for
easy integration. I reccomend setting up a virtual environment and using this as a
module (Poetry makes this easy). For an example see my quant_notebooks [2]
#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));
@awesmubarak
awesmubarak / soylent-gmos.md
Last active April 7, 2022 00:42
soylent: proudly made with GMOs
@awesmubarak
awesmubarak / onedark.md
Created February 8, 2022 00:44
onedark colors
#!/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 / prerelease.md
Last active November 11, 2017 18:53
Notes for 2017 AS-Level Computer Science Skeleton program (VB)
@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 / 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: