Skip to content

Instantly share code, notes, and snippets.

View andrewsosa's full-sized avatar

Andrew Sosa andrewsosa

View GitHub Profile
// Import the necessary libraries
const request = require('request');
const async = require('async');
// Set the necessary credentials and tokens
const appId = 'YOUR_APP_ID';
const appSecret = 'YOUR_APP_SECRET';
const accessToken = 'YOUR_ACCESS_TOKEN';
// Set the base URL for the Reddit API
@andrewsosa
andrewsosa / github-friends-sample-data.json
Last active July 1, 2021 03:12
github-friends-sample-data
[
{
"popularity": 28287,
"avatar": "https://avatars0.githubusercontent.com/u/1299233?s=400&v=4",
"url": "https://github.com/toxtli",
"username": "toxtli",
"source": "andrewsosa"
},
{
"popularity": 21085,
@andrewsosa
andrewsosa / hunters.md
Last active January 15, 2021 05:08
Dru's Heavily Opinionated Guide to Hunter Subclasses

Dru's Heavily Opinionated Guide to Hunter Subclasses

I strongly recommend getting as close to 100 mobility as possible regardless of element or subtree.

Solar (Gunslinger)

Each specific subtree has a specific reward system for doing something specific, focusing around accuracy of your attacks.

An exotic honorable mention for this element is Dragon's Shadow, which can reload your weapons when you dodge, meaning you can run melee dodge for the powerful melees in this element. Sometime I found this more useful than Ophidia Sphate (see Middle Tree).

@andrewsosa
andrewsosa / gog.md
Last active August 15, 2020 21:51
Garden of Gear

Garden of Gear

Encounter 1: How Tether Your Vex Vom

  • use teathering to open door
  • 2 teams of 3
  • team 1 goes in the door
  • team 2 with boss
    • kill ads
  • pick up vex vom
@andrewsosa
andrewsosa / spire-of-stars.md
Last active July 25, 2020 22:57
How To: Spire of Stars

Start Phase

  • Everyone clears ads.
  • When the ball spawns, the closest person will call out and grab it, and everyone else will line up.
  • Everyone passes the ball down the line.
  • After everyone has held the ball, the last person throws it at the boss.

Space Phase #1 (Scout Phase)

  • If you receive the Superior Retainer buff, immediately call it out.
  • One Superior Retainer should declare they will go to space. They are the Alpha Retainer. The two others are Beta Retainers.
  • The Beta Retainers and non-retainers should appoach the platforms, but kill the gladiators before standing on the them. One person will not have a platform.
@andrewsosa
andrewsosa / dijkstra.py
Created January 4, 2020 16:33
Dijkstra Implementation
"""
Implementation is inspired by this article:
https://dev.to/mxl/dijkstras-algorithm-in-python-algorithms-for-beginners-dkc
Graph is from this video:
https://www.youtube.com/watch?v=gdmfOwyQlcI
"""
import math
@andrewsosa
andrewsosa / guidelines.md
Last active July 2, 2018 18:06
Recommended Git workflow for Open Source/Multi-Contributor Projects

Recommended Workflow

Good for Open Source/Multi-contributor projects

Table of contents:
  1. Overview
  2. Step Details
  3. Important Details/Warnings
Key terms
  • Upstream: The original, organization-based repo (e.g. fsu-acm/contest-suite).
PROMPT='%m %{$fg[green]%}%c%{$fg_bold[blue]%}$(git_prompt_info)%{$reset_color%} '
ZSH_THEME_GIT_PROMPT_PREFIX=" ("
ZSH_THEME_GIT_PROMPT_SUFFIX=")"
ZSH_THEME_GIT_PROMPT_DIRTY=" ✗"
ZSH_THEME_GIT_PROMPT_CLEAN=" ✔"
@andrewsosa
andrewsosa / proposal.py
Created November 10, 2017 17:20
[ApiMultiView Proposal] A view which tasks out work() calls to delegate ApiView classes
#
# hackfsu_com.views.generic.api_multi_view
#
class ApiMultiView(ApiView):
http_method_names = [] # This must be overridden for every multiview
http_delegates = {} # Dictionary of delegate ApiView objects, key is the method
def work(self, request: HttpRequest, req: dict, res: dict):
@andrewsosa
andrewsosa / passwd.py
Created October 18, 2017 14:11
[DigitalOcean Web Console Login] #tags: digitalocean
from pynput.keyboard import Key, Controller
import time
keyboard = Controller()
# # Press and release space
# keyboard.press(Key.space)
# keyboard.release(Key.space)
#