This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class RenderUtils | |
{ | |
//Modified From : http://www.sunshine2k.de/coding/java/TriangleRasterization/TriangleRasterization.html | |
public static void FillTriangleInGrid(Vector2 a, Vector2 b, Vector2 c, System.Action<int,int> plot) | |
{ | |
/* at first sort the three vertices by y-coordinate ascending so v1 is the topmost vertice */ | |
if (a.y < b.y) | |
swap(ref a, ref b); | |
if (b.y < c.y) | |
swap(ref b, ref c); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using UnityEditor; | |
using UnityEditor.EditorTools; | |
using UnityEditor.Tilemaps; | |
using UnityEngine; | |
using UnityEngine.SceneManagement; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Reflection; | |
using System.Text.RegularExpressions; | |
using UnityEditor; | |
using UnityEngine; | |
[InitializeOnLoad] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{advance} = require './utils' | |
RIGHT = 0 | |
UP = 1 | |
LEFT = 2 | |
DOWN = 3 | |
CCW_DIRECTION = [RIGHT,UP,LEFT,DOWN] | |
CCW_OFFSET = [[1,0],[0,1],[-1,0],[0,-1]] #right,up,left,down | |
THE_RIHGTSIDE_POINT_OFFSET = [[1,0],[1,1],[0,1],[0,0]] | |
HORIZONTAL = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo ipfw add 100 fwd 127.0.0.1, $1 tcp from any to any $2 in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bytesize=$(wc -c $1 | awk '{print $1}') | |
cat $1 | |
tail -F -c $bytesize $1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install git | |
sudo apt-get install git | |
# download docker | |
git clone https://github.com/dotcloud/docker.git | |
cd docker | |
#edit Vagrantfile... (port forwarding) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rundb.sh 파일입니다... chmod +x 하고 써야돼요. 그리고 db랑 server 다 test브렌치에 새버전 있어요 | |
RED='\e[0;31m' | |
YELLOW='\e[1;33m' | |
CYAN='\e[0;36m' | |
NC='\e[0m' | |
if [ $# = 0 ] || [ $1 = "-h" ] || [ $1 = "--help" ] | |
then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export DOCKER_REDIS=$(docker ps | grep redis | awk {'print $1'}) | |
export DOCKER_ZOOKEEPER=$(docker ps | grep zookeeper | awk {'print $1'}) | |
export DOCKER_MONGODB=$(docker ps | grep mongodb | awk {'print $1'}) |