Skip to content

Instantly share code, notes, and snippets.

View ahnafnafee's full-sized avatar

Ahnaf An Nafee ahnafnafee

View GitHub Profile
ahnafnafee /
Last active May 5, 2023 17:21
Bypass Private Vimeo Video Restriction

Setup Steps:

  • Install this extension first: Referer Manager
  • Add the following settings Extension Settings
  • Install the UserScript below using TamperMonkey
  • Now the webpage should show a button to view the private video like so image
  • Done!
ahnafnafee / auth-provider.tsx
Last active December 13, 2022 17:31
Auth Provider that auto refreshes auth tokens when they expire
import { UserTokens } from "../models/player";
import { useAppDispatch, useAppSelector } from "../store/hooks";
import {
} from "../services/notification-service";
import { authActions, authThunks } from "../store/slices/auth";
import { config } from "../constants/config";
import * as SecureStore from "expo-secure-store";
import axios from "axios";
ahnafnafee / Launcher.cs
Created March 10, 2021 05:24
Checks if a particular lobby is full and then starts the game if the lobby leader gives the go ahead
using System.Collections.Generic;
using Photon.Pun;
using Photon.Realtime;
using TMPro;
using UnityEngine;
using System.Linq;
namespace Lobby.Scripts
public class Launcher : MonoBehaviourPunCallbacks
ahnafnafee / HudManager.cs
Created March 10, 2021 04:59
Primary code for HUD that calculates the drawing position within the view
using UnityEngine;
using System.Collections.Generic;
using System.Linq;
using UnityEngine.Serialization;
public class HudManager : MonoBehaviour
public List<HudInfo> huds = new List<HudInfo>();
public Transform localPlayer = null;
ahnafnafee / WeaponScript.cs
Created March 10, 2021 04:57
Accurate Shooting Script for Player
using System;
using System.Collections;
using System.Collections.Generic;
using _Project.Scripts.Utils;
using UnityEngine;
using UnityEngine.Serialization;
using Random = UnityEngine.Random;
namespace _Project.Scripts