Skip to content

Instantly share code, notes, and snippets.

View volgorean's full-sized avatar

Peter Tinti volgorean

View GitHub Profile
@volgorean
volgorean / README.md
Last active April 27, 2023 20:19
Create calendar events.

Paste code into the browser command line. First the funciton definitions in create_events.js and press enter. Then contents of example_usage.js to create some events and press enter:

Screen Shot 2023-04-27 at 1 08 19 PM


Once you do that it'll download an ics file:

@volgorean
volgorean / main.py
Created March 17, 2020 23:25
search pypi.org for packages
from bs4 import BeautifulSoup
import requests
search = "boto3"
r = requests.get(f"https://pypi.org/search/?q={search}")
print(r.status_code)
soup = BeautifulSoup(r.text, 'html.parser')
packages = soup.find_all("h3", class_="package-snippet__title")
@volgorean
volgorean / app.js
Created December 3, 2017 08:08
Example vue.js app setup without webpack
new Vue({
el: "#app",
new Router({
mode: "history",
routes: [
{ path: "/", component: httpVueLoader("components/dash.vue") }
]
})
});