One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
def main(): | |
processes = int(input("number of processes : ")) | |
resources = int(input("number of resources : ")) | |
max_resources = [int(i) for i in input("maximum resources : ").split()] | |
print("\n-- allocated resources for each process --") | |
currently_allocated = [[int(i) for i in input(f"process {j + 1} : ").split()] for j in range(processes)] | |
print("\n-- maximum resources for each process --") | |
max_need = [[int(i) for i in input(f"process {j + 1} : ").split()] for j in range(processes)] |
sudo pip install awscli | |
aws configure | |
aws ses send-email \ | |
--from "john@gmail.com" \ | |
--destination "ToAddresses=mike@gmail.com" \ | |
--message "Subject={Data=from ses,Charset=utf8},Body={Text={Data=ses says hi,Charset=utf8},Html={Data=,Charset=utf8}}" |
import sys,os | |
import curses | |
def draw_menu(stdscr): | |
k = 0 | |
cursor_x = 0 | |
cursor_y = 0 | |
# Clear and refresh the screen for a blank canvas | |
stdscr.clear() |
import cProfile | |
from django.template.defaultfilters import floatformat as floatformat_django | |
from django.contrib.humanize.templatetags.humanize import intcomma as intcomma_django | |
num = 100000 | |
float_num = 1 / 3.0 | |
def floatformat(value, places=2): |
package main | |
import ( | |
"crypto/tls" | |
"crypto/x509" | |
"fmt" | |
"io" | |
"log" | |
) |