The package manager of python packages is called pip.
sudo apt-get install python-pip
If you need a pip package as a debian you can use Victor's debian from pip.
| # 2023-11-27 MIT LICENSE | |
| Here's the open source version of my ChatGPT game MonkeyIslandAmsterdam.com. | |
| It's an unofficial image+text-based adventure game edition of Monkey Island in Amsterdam, my home town. | |
| Please use it however you want. It'd be nice to see more ChatGPT-based games appear from this. If you get inspired by it, please link back to my X https://x.com/levelsio or this Gist so more people can do the same! | |
| Send me your ChatGPT text adventure game on X, I'd love to try it! |
| import networkx as nx | |
| # SAMPLE DATA FORMAT | |
| #nodes = [('tensorflow', {'count': 13}), | |
| # ('pytorch', {'count': 6}), | |
| # ('keras', {'count': 6}), | |
| # ('scikit', {'count': 2}), | |
| # ('opencv', {'count': 5}), | |
| # ('spark', {'count': 13}), ...] |
| output = "" | |
| bottles = 99 | |
| def bottle_str(bottles): | |
| if bottles == 0: | |
| return "No bottles" | |
| elif bottles == 1: | |
| return "1 bottle" | |
| else: | |
| return f"{bottles} bottles" |
| # An example to get the remaining rate limit using the Github GraphQL API. | |
| import requests | |
| headers = {"Authorization": "Bearer YOUR API KEY"} | |
| def run_query(query): # A simple function to use requests.post to make the API call. Note the json= section. | |
| request = requests.post('https://api.github.com/graphql', json={'query': query}, headers=headers) | |
| if request.status_code == 200: |
| # -*- coding: utf-8 -*- | |
| import csv | |
| import time | |
| import re | |
| import codecs, cStringIO | |
| from argparse import ArgumentParser | |
| import tweepy | |
| import urllib2, csv | |
| import matplotlib.pyplot as plt | |
| import datetime | |
| import seaborn | |
| import numpy, scipy.stats, math | |
| f = urllib2.urlopen('https://raw.githubusercontent.com/datasets/s-and-p-500/master/data/data.csv') | |
| csv = csv.reader(f) | |
| csv.next() # headers |
The package manager of python packages is called pip.
sudo apt-get install python-pip
If you need a pip package as a debian you can use Victor's debian from pip.
This document has moved to the MARYSUE repository:
| # Install from github ---------------- | |
| # install.packages(c("chron", "ggplot2", "dplyr", "stringi")) | |
| # devtools::install_github("trinker/wakefield") | |
| # Create a sample data frame --------- | |
| library(wakefield) | |
| r_data_frame( | |
| n = 500, | |
| id, |
This document attempts to refine Python's PEP 440 to include the principles of Semantic Versioning.
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.