Skip to content

Instantly share code, notes, and snippets.

@rabidgremlin
rabidgremlin / bundletags.py
Last active June 15, 2020 04:26
Bundle for Racial Justice and Equality - Data Extract - 2020/06/15
# read the list of games in the bundle and adds a "tags" element to each game for sorting
# creates games_tagged.json as output
# use jq to extract to csv (note windows cmd line)
# jq -r ".games[] | . as $g | .tags | join(\":\") | [ $g.title,$g.url,$g.short_text,.] | @csv" games_tagged.json > games.csv
import requests
import json
from bs4 import BeautifulSoup
data = json.loads(requests.get('https://itch.io/bundle/520/games.json').text)
@rabidgremlin
rabidgremlin / FaceDirectionCommand.cs
Last active June 19, 2021 17:23
Walk and Look Code
using UnityEngine;
using System.Collections;
using Fungus;
[CommandInfo("Walker", "Face Direction", "Turns the walker to face the specified direction.")]
public class FaceDirectionCommand : Command {
public enum Facing
{
Left,Right
@rabidgremlin
rabidgremlin / GunController.cs
Last active January 19, 2017 09:24
Creating a FPS in Unity Code
using UnityEngine;
using System.Collections;
public class GunController : MonoBehaviour {
//public int gunDamage = 1;
public float fireRate = 0.25f;
public float weaponRange = 50f;
public float hitForce = 100f;
public Transform gunEnd;
@rabidgremlin
rabidgremlin / Logstash Demo
Last active July 26, 2018 18:23
LogStash Demo
Files and commands for Logstash demo
@rabidgremlin
rabidgremlin / Vagrant Demo
Last active August 29, 2015 13:57
Vagrant demo scripts
Files for Vagrant demo