Skip to content

Instantly share code, notes, and snippets.

View kevingduck's full-sized avatar

Kevin Duck kevingduck

  • Expel
View GitHub Profile
@kevingduck
kevingduck / Recent Tweets.py
Created August 16, 2017 06:31
Recent Tweets.py
# coding: utf-8
import twitter
def main():
accounts = twitter.get_all_accounts()
if not accounts:
print('No Twitter accounts were found. You can configure Twitter accounts in the settings app. If you have denied access to your accounts when prompted, you can also change your mind there.')
account = accounts[0]
username = account['username']
print('Loading recent tweets in %s\'s timeline...' % (username,))
@kevingduck
kevingduck / Swarm.py
Created August 16, 2017 06:32
Swarm.py
'''
A swarm simulation based on the 'Boids' algorithm by Craig Reynolds (http://www.red3d.com/cwr/boids/) and pseudo-code by Conrad Parker (http://www.kfish.org/boids/pseudocode.html)
You can tap the screen to scatter the swarm temporarily.
'''
from scene import *
import sound
from random import uniform, choice
import math
name: Label Templated Issue
on:
issues:
types: [created]
jobs:
label-templated-issue:
runs-on: ubuntu-latest
@kevingduck
kevingduck / install_and_run.sh
Created October 21, 2023 01:05
memGPT app installation script
#!/bin/bash
# Clone the repo
git clone https://github.com/cpacker/MemGPT.git
cd MemGPT/main || { echo "Directory MemGPT/main does not exist. Exiting."; exit 1; }
# Check for Python 3
if ! command -v python3 &>/dev/null; then
echo 'Python 3 is not installed. Exiting.'
exit 1
fi