Skip to content

Instantly share code, notes, and snippets.

View Rabeez's full-sized avatar

Rabeez Riaz Rabeez

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Rabeez
Rabeez / plotting_comparison.ipynb
Last active November 17, 2020 13:10
Comparison of plotting libraries
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Rabeez
Rabeez / Untitled.ipynb
Created August 3, 2020 17:45
Stacked bar graph with line overlay
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as exp_cond
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.chrome.options import Options
import time
from collections import namedtuple
require(["codemirror/keymap/sublime", "notebook/js/cell", "base/js/namespace"],
function(sublime_keymap, cell, IPython) {
cell.Cell.options_default.cm_config.keyMap = 'sublime';
cell.Cell.options_default.cm_config.extraKeys["Ctrl-Enter"] = function(cm) {}
var cells = IPython.notebook.get_cells();
for(var cl=0; cl< cells.length ; cl++){
cells[cl].code_mirror.setOption('keyMap', 'sublime');
cells[cl].code_mirror.setOption("extraKeys", {
"Ctrl-Enter": function(cm) {}
});
@Rabeez
Rabeez / scrapper.py
Created December 24, 2017 12:38
The hist of
import github
import base64
import collections
import pickle
import time
import sys
class Tee(object):
def __init__(self, *files):
@Rabeez
Rabeez / .cpp
Last active December 10, 2017 17:56
case SC_Open:
{
int filename_ptr = machine->ReadRegister(4);
int len = 150;
char *filename = new char[len];
int *c = new int;
if (!machine->ReadMem(filename_ptr, 1, c)) // could not read char
return;
#include <iostream>
#include <fstream>
#include <vector>
#include "utilities/Graph.h"
using namespace std;
vector<pair<int,int>> maxRevenuePath(Graph<int>* g);
@Rabeez
Rabeez / flowField.pde
Created October 24, 2016 00:13
Flow Field made in Processing
int scl = 20;
int cols, rows;
float inc = 0.1;
float zoff = 0;
Particle[] particles;
int numParticles = 1000;
PVector[][] flowField;
void setup() {
//size(640, 480);