Skip to content

Instantly share code, notes, and snippets.

View andymckay's full-sized avatar

Andy McKay andymckay

View GitHub Profile

Hi Pythonistas,

Over 20 years ago, along with a few friends, we started the Vancouver Python User Group. Over those years we've had conferences, meetups and events. I've made friends with so many of y'all and learnt so much exciting stuff. For the last few years, Bryan and Seb did a great job of leading this group - thank you to all the many organisers who've kept this going.

During the worst times of the pandemic, this group came to a stop. I also stopped paying attention the last 5 years or so, because work and other demands just took up all my time.

Interestingly in this time Python has just grown in strength and has become the go to language for so many of the hot new things, from AI, machine learning and event that new Threads app, has a Python backend. The number of users keeps growing and the changes to the language, it's uses and application in everyday life continues to grow. Personally, after many years in management, I've started writing Python again and ❤️ it all over again.

This is my long wi

from github import Github
import os
g = Github(os.getenv("GITHUB_TOKEN"))
u = g.get_user("....")
for repo in u.get_repos():
print(repo.html_url)
value = input("Delete y/n?")
if value.lower() == "y":
print("Deleting: {}".format(repo.html_url))
👋 This is a weekly staff meeting issue for y'all to write some stuff in.
Here's some things you might want to do before the meeting:
* Check the last meeting if there's any agenda items left
* See if the last meeting to see if there's any Action items that need to be followed up
Agenda items:
* ...
Action items:
#----------------------------------*-sh-*--------------------------------------
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
# \\ / A nd |
# \\/ M anipulation | Copyright (C) 2016-2019 OpenCFD Ltd.
#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM.
#
#----------------------------------*-sh-*--------------------------------------
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
# \\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
# \\/ M anipulation |
#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM.
#
language: csharp
solution: data-storage-api-dotnet.sln
{
"project": {
"name": "Manager Squad Meeting",
"body": ""
},
"columns": [
{
"name": "Legend",
"cards": [
"**Highs ☀️ & Lows 🤦‍♀**\n\nEveryone enters their own card answering the following:\n\n* What was one thing that was awesome for you this week?\n* What was one thing that was 💩 for you this week?\n\nThese can be personal or professional.",
{
"project": {
"name": "Actions Experience Retrospective",
"body": ""
},
"columns": [
{
"name": "Legend",
"cards": [
"**Highs ☀️ & Lows 🤦‍♀**\n\nEveryone enters their own card answering the following:\n\n* What was one thing that was awesome for you this week?\n* What was one thing that was 💩 for you this week?\n\nThese can be personal or professional.",
from base64 import b64encode
from nacl import encoding, public
def encrypt(public_key: str, secret_value: str) -> str:
"""Encrypt a Unicode string using the public key."""
public_key = public.PublicKey(public_key.encode("utf-8"), encoding.Base64Encoder())
sealed_box = public.SealedBox(public_key)
encrypted = sealed_box.encrypt(secret_value.encode("utf-8"))
return b64encode(encrypted).decode("utf-8")
@andymckay
andymckay / test.py
Last active December 23, 2019 19:08
# Function for nth Fibonacci number
def Fibonacci(n):
if n<0:
print("Incorrect input")
# First Fibonacci number is 0
elif n==1:
return 0
# Second Fibonacci number is 1
elif n==2: