Skip to content

Instantly share code, notes, and snippets.

Avatar

Aidan Holland thehappydinoa

View GitHub Profile
@thehappydinoa
thehappydinoa / tweets.py
Created Jun 30, 2021
OpenAI Python Functions
View tweets.py
# Write a python function to get tweets by username:
import requests
def get_tweets_from_username(username: str) -> list:
# AUTOCOMPLETED FROM HERE
"""
Get tweets from a given user.
View Setup Terminal.md

Setup Terminal

Install iTerm website

iTerm2 is an open source replacement for Apple's Terminal. It's highly customizable and comes with a lot of useful features.

brew install --cask iterm2
View Selenium.md

Getting started with Selenium

Requirements

  • Python 3.6+ (Download latest 3.x release from python.org)
  • Selenium (Install with pip install selenium)
  • WebDriver (For this project we will be using the latest version of Chromedriver from selenium.dev)
  • IDE of your choice (I personally recommend VSCode)

> Make sure both pip and webdriver are in your PATH. Please see this article for instructions.

View cs171.py
#!/usr/bin/env python3
import calendar
# Constant months
MONTHS = calendar.month_name
# Gets user input
user_rainfall = [
int(input(f"Enter rainfall for {MONTHS[1]}: ")),
@thehappydinoa
thehappydinoa / DEVELOPER.md
Last active May 30, 2020
Awesome Developer Information
View DEVELOPER.md
@thehappydinoa
thehappydinoa / reencode.py
Last active May 20, 2020 — forked from mgeeky/reencode.py
ReEncoder.py - script allowing for recursive encoding detection, decoding and then re-encoding. To be used for instance in fuzzing purposes. Requires: jwt (pip install pyjwt)
View reencode.py
#!/usr/bin/python
#
# ReEncoder.py - script allowing for recursive encoding detection, decoding and then re-encoding.
# To be used for instance in fuzzing purposes.
#
# NOTICE:
# If the input string's length is divisble by 4, Base64 will be able to decode it - thus, the script
# would wrongly assume it has been encoded using Base64. The same goes for Hex decoding.
# In order to tackle this issue, the script builds up a tree of possible encoding schemes and then evaluate
@thehappydinoa
thehappydinoa / AppDelegate.m
Created Apr 4, 2020
Working React Native Firebase Messaging Notifications AppDelegate
View AppDelegate.m
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#import "AppDelegate.h"
#import <React/RCTBridge.h>
@thehappydinoa
thehappydinoa / README.md
Last active Oct 22, 2019
Basically saves me so much time re-arranging all the simulated circuit devices to look nice
View README.md

Simcir Rearranger

Usage

usage: simcir_rearranger.py [-h] JSON_FILE

SHOW ME WHAT YOU GOT

positional arguments: