Skip to content

Instantly share code, notes, and snippets.

Avatar

Vince Yuan vinceyuan

View GitHub Profile
@vinceyuan
vinceyuan / RSTimingFunction.h
Created Jan 15, 2017 — forked from raphaelschaad/RSTimingFunction.h
All the cool animation curves from `CAMediaTimingFunction` but not limited to use with CoreAnimation. See what you can do with cubic Bezier curves here: http://netcetera.org/camtf-playground.html To get started just "Download Gist", throw the .h and .m files into your Xcode project and you're good to go!
View RSTimingFunction.h
//
// RSTimingFunction.h
//
// Created by Raphael Schaad on 2013-09-28.
// This is free and unencumbered software released into the public domain.
//
#import <Foundation/Foundation.h>
@vinceyuan
vinceyuan / .vimrc
Created May 30, 2016
My vim configuration
View .vimrc
execute pathogen#infect()
syntax on
filetype plugin indent on
set number
set rnu
set tabstop=4 shiftwidth=4 smarttab
colorscheme molokai
set cursorline " Highlight current cursor line
set autoread " Auto reload when file changed by other programs
@vinceyuan
vinceyuan / redis-server-per-project
Last active Jan 30, 2020
Init script to start/stop redis-server for CentOS or amazon ec2 linux ami. You can run multiple redis-server on one server with this script. Just copy and replace 'per-project' with your project name in this file for each project.
View redis-server-per-project
#!/bin/sh
# From - http://www.codingsteps.com/install-redis-2-6-on-amazon-ec2-linux-ami-or-centos/
#
# redis - this script starts and stops the redis-server daemon
# Originally from - https://raw.github.com/gist/257849/9f1e627e0b7dbe68882fa2b7bdb1b2b263522004/redis-server
# Modified by Vince Yuan https://gist.github.com/vinceyuan/9667435
#
# chkconfig: - 85 15
# description: Redis is a persistent key-value database
# processname: redis-server