Skip to content

Instantly share code, notes, and snippets.

/*
Basic Sprite Shader for aligning pixel art to the same grid, based on the Unity Sprite Shader.
Create one Material where you assign the same Pixels Per Unit value you use on your imported Sprites,
then reuse this Material on all appropriate Sprite Renderers.
(As far as I know there's no possiblity to get this value automatically.)
This is not for scaled or rotated artwork. If you need those features, look at low res render textures.
Use this however you want.
@Frozenfire92
Frozenfire92 / tmux.conf
Created December 13, 2016 14:10 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
@Frozenfire92
Frozenfire92 / README.md
Last active December 29, 2016 19:27 — forked from kaffyzoo/README.md
Alternative Calendar View

d3.js Calendar View Heatmap

d3.js visualization of a calendar heatmap.

Demo can be viewed here

A new layout compared with the original d3.js calendar. The visualization in this repository is better suited for data that span over a couple years, as opposed to decades.

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

@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) {
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 / 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
@Frozenfire92
Frozenfire92 / README.md
Created January 26, 2019 02:46
SCRIPT-8
@Frozenfire92
Frozenfire92 / README.md
Created January 26, 2019 05:02
SCRIPT-8
@Frozenfire92
Frozenfire92 / README.md
Created January 26, 2019 05:02
SCRIPT-8