Skip to content

Instantly share code, notes, and snippets.

View adoankim's full-sized avatar
🐯

Adoankim adoankim

🐯
View GitHub Profile
@adoankim
adoankim / redis-server-for-init.d-startup
Created September 12, 2017 15:24 — forked from lsbardel/redis-server-for-init.d-startup
Init.d Redis script for Ubuntu
#! /bin/sh
### BEGIN INIT INFO
# Provides: redis-server
# Required-Start: $syslog
# Required-Stop: $syslog
# Should-Start: $local_fs
# Should-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: redis-server - Persistent key-value db
@adoankim
adoankim / unity 2d camera follow
Created November 14, 2015 01:38 — forked from unity3diy/unity 2d camera follow
unity 2d camera follow script, add this script to camera and drag character or your object into it. simple!
using UnityEngine;
using System.Collections;
public class FollowCamera : MonoBehaviour {
public float interpVelocity;
public float minDistance;
public float followDistance;
public GameObject target;
public Vector3 offset;