This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class BasicAudioModifier : MonoBehaviour { | |
public List<AudioClip> audioClips = new List<AudioClip>(); | |
[Header("Controls")] | |
public bool mute = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Github is Fork Ahead | |
// @version 0.1 | |
// @description Shows how far ahead/behind a fork is from upstream when viewing fork page on github | |
// @match https://github.com/*/*/network/members | |
// ==/UserScript== | |
async function fetchLastCommit(partial_url) { | |
const response = await fetch('https://api.github.com/repos/' + partial_url + '/commits?page=1&per_page=1') | |
const commitJson = await response.json(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
rm ./tools/build/build.love | |
find * -maxdepth 0 | grep -vFf ./tools/build/ignore.txt | zip -r ./tools/build/build.love -@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Ended up using string.gmatch in my project instead, adding here for reference | |
--License MIT or original? | |
function string_explode(str, div, limit) --extention of https://love2d.org/wiki/String_exploding | |
assert(type(str) == "string" and type(div) == "string", "invalid arguments") | |
limit = limit or 0 -- 0/1/nil = no limit, n = n or all | |
local o = {} | |
while true do | |
local pos1,pos2 = str:find(div) | |
if not pos1 then | |
o[#o+1] = str |