Skip to content

Instantly share code, notes, and snippets.

Avatar

Andy McKay andymckay

View GitHub Profile
View gist:c3be3ae452b423de1285a524e4b3612b
👋 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:
View gist:4d1d7ecb7b39aebaf5ced51b278bd079
#----------------------------------*-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.
#
View gist:9217387bbf576e9c519aa8754566dd5d
#----------------------------------*-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.
#
View gist:0b83635df3517bc1989a200bb1759ca8
{
"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.",
View Retrospective project data
{
"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.",
View secret.py
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")
View test.py
# 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:
View fileName
def sum(x, y):
return x + y
print(sum(1, 3))
print(sum(5, 6))
View test-public.py
def sum(x, y):
return x + y
print(sum(1, 3))
print(sum(5, 6))
You can’t perform that action at this time.