Skip to content

Instantly share code, notes, and snippets.

@Frozenfire92
Frozenfire92 / gist:3627e38dc47ca581d6d024c14c1cf4a9
Last active October 20, 2021 20:58
Install Scala and SBT using apt-get on Ubuntu 16.04 or any Debian derivative using apt-get
## Java
sudo apt-get update
sudo apt-get install default-jdk
## Scala
sudo apt-get remove scala-library scala
sudo wget http://scala-lang.org/files/archive/scala-2.12.1.deb
sudo dpkg -i scala-2.12.1.deb
sudo apt-get update
sudo apt-get install scala
@Frozenfire92
Frozenfire92 / generate.c
Created March 5, 2019 14:24 — forked from munificent/generate.c
A random dungeon generator that fits on a business card
#include <time.h> // Robert Nystrom
#include <stdio.h> // @munificentbob
#include <stdlib.h> // for Ginny
#define r return // 2008-2019
#define l(a, b, c, d) for (i y=a;y\
<b; y++) for (int x = c; x < d; x++)
typedef int i;const i H=40;const i W
=80;i m[40][80];i g(i x){r rand()%x;
}void cave(i s){i w=g(10)+5;i h=g(6)
+3;i t=g(W-w-2)+1;i u=g(H-h-2)+1;l(u
@Frozenfire92
Frozenfire92 / README.md
Created January 26, 2019 05:02
SCRIPT-8
@Frozenfire92
Frozenfire92 / README.md
Created January 26, 2019 05:02
SCRIPT-8
@Frozenfire92
Frozenfire92 / README.md
Created January 26, 2019 02:46
SCRIPT-8
@Frozenfire92
Frozenfire92 / MoveCamera.cs
Created August 18, 2018 15:47 — forked from JISyed/MoveCamera.cs
Camera movement script in Unity3D. Supports rotating, panning, and zooming. Attach to the main camera. Tutorial explaining code: http://jibransyed.wordpress.com/2013/02/22/rotating-panning-and-zooming-a-camera-in-unity/
// Credit to damien_oconnell from http://forum.unity3d.com/threads/39513-Click-drag-camera-movement
// for using the mouse displacement for calculating the amount of camera movement and panning code.
using UnityEngine;
using System.Collections;
public class MoveCamera : MonoBehaviour
{
//
// VARIABLES
import Component from '@ember/component';
import { observer, get, set, getWithDefault } from '@ember/object';
import { later } from '@ember/runloop';
export default Component.extend({
// Required:
// value - the currently selected option
// options - the available options,
// ['Canada', 'USA', 'Mexico']
// [{value: 'word-cloud', label: 'Word Cloud'}]
@Frozenfire92
Frozenfire92 / promises_reduce.js
Created June 22, 2018 18:22 — forked from anvk/promises_reduce.js
Sequential execution of Promises using reduce()
function asyncFunc(e) {
return new Promise((resolve, reject) => {
setTimeout(() => resolve(e), e * 1000);
});
}
const arr = [1, 2, 3];
let final = [];
function workMyCollection(arr) {
@Frozenfire92
Frozenfire92 / Log.cs
Last active September 11, 2017 20:16 — forked from DanPuzey/Log.cs
Unity logging wrapper, for better performance and usage.
using UnityEngine;
namespace Assets.Phunk.Core
{
public static class Log
{
#region Error
public static void ErrorFormat(UnityEngine.Object context, string template, params object[] args)
{
var message = string.Format(template, args);

Turning Off Github Issues

My friend Michael Jackson turned off github issues on one of his smaller projects. It got me thinking...

Maintainers getting burned out is a problem. Not just for the users of a project but the mental health of the maintainer. It's a big deal for both parties. Consumers want great tools, maintainers want to create them, but maintainers don't want to be L1 tech support, that's why they