Skip to content

Instantly share code, notes, and snippets.

@jasonmarziani
jasonmarziani / axios.js
Created March 17, 2021 19:20 — forked from matthewsuan/axios.js
Axios request queue-like that limits number of requests at any given time
import axios from 'axios'
const MAX_REQUESTS_COUNT = 5
const INTERVAL_MS = 10
let PENDING_REQUESTS = 0
// create new axios instance
const api = axios.create({})
/**
@jasonmarziani
jasonmarziani / ShuffleArray.cs
Created May 10, 2019 17:49 — forked from cosmicmonster/ShuffleArray.cs
Unity3D / C# code to shuffle and array using the Fisher-Yates Shuffle.
using UnityEngine;
using System.Collections;
public class ShuffleArray : MonoBehaviour {
// Public so you can fill the array in the inspector
public int[] scenarios;
@jasonmarziani
jasonmarziani / .gitattributes
Created May 7, 2019 16:07 — forked from nemotoo/.gitattributes
.gitattributes for Unity3D with git-lfs
## Unity ##
*.cs diff=csharp text
*.cginc text
*.shader text
*.mat merge=unityyamlmerge eol=lf
*.anim merge=unityyamlmerge eol=lf
*.unity merge=unityyamlmerge eol=lf
*.prefab merge=unityyamlmerge eol=lf