Skip to content

Instantly share code, notes, and snippets.

View zabihimayvan's full-sized avatar

Mahdieh Zabihimayvan zabihimayvan

View GitHub Profile
import argparse
import os
from platform import system as os_name
import requests
from colorama import init, Fore, Style
def printer(request_json, line_width):
""" Print the main body of the UI """
@zabihimayvan
zabihimayvan / lovasz.py
Created April 20, 2018 02:47 — forked from dstahlke/lovasz.py
Python code to compute the Lovasz, Schrijver, and Szegedy numbers for graphs.
# Compute the Lovasz, Schrijver, and Szegedy numbers for graphs.
#
# A graph with 32 vertices takes under one second, so it's not the fastest.
# Probably the specialized code for Lovasz number from
# http://dollar.biz.uiowa.edu/~sburer/pmwiki/pmwiki.php%3Fn=Main.SDPLR%3Faction=logout.html
# would be much faster (I haven't tried it).
# Copyright (c) 2013 Daniel Stahlke (dan@stahlke.org)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
@zabihimayvan
zabihimayvan / 00.howto_install_phantomjs.md
Created May 14, 2018 14:47 — forked from julionc/00.howto_install_phantomjs.md
How to install PhantomJS on Debian/Ubuntu

How to install PhantomJS on Ubuntu

Version: 1.9.8

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
@zabihimayvan
zabihimayvan / resources.md
Created January 9, 2021 14:48 — forked from fffaraz/resources.md
CS 306 - Linux/UNIX Programming