Skip to content

Instantly share code, notes, and snippets.

View netpyoung's full-sized avatar
☯️
netpyoung

Eunpyoung Kim netpyoung

☯️
netpyoung
View GitHub Profile
@netpyoung
netpyoung / gist:5171692
Created March 15, 2013 17:48
gist 테스트용.

Emacs를 이용한 Haskell 환경설정 - Windows편.


Hasekll 환경설정


목표

  • 30분안에, haskell "코딩환경 구축".

Hasekll

@netpyoung
netpyoung / Test.cs
Last active December 17, 2015 20:59
// answer: http://cafe.naver.com/xgdn/4246
using UnityEngine;
using System.IO;
using System.Collections;
// test.txt의 내용이 다음과 같다고 가정.
/*
aaaaaa<CR><RF>
bbbb<CR><RF>
cc<CR><RF>
// ref: http://docs.unity3d.com/Documentation/ScriptReference/Resources.Load.html
// Resources.Load는 Resources/ 하위 폴더에 있어야함.
// 생성하고자 하는 prfeb을 block.prefab이라 할때, 위치를 Resources/block.prefab 로했다 가정하고,
// block.prefab에 Test22.cs라는 스크립트가 붙어있고, 해당 스크립트에 접근테스트.
// Test22.cs는 다음과 같음.
/*
using UnityEngine;
using System.Collections;
# ref:
# http://yihui.name/formatR/
# https://github.com/yihui/formatR/wiki
> install.packages('formatR')
> tidy.source(text = c("fib <- function (n) {if (`<`(n,2)) {n} else {`+`(`fib`(`-`(n,1)),`fib`(`-`(n,2)))}}; fact <- function (n) {if (`==`(n,1)) {1} else {`*`(n,`fact`(`-`(n,1)))}}; `print`(`fib`(20)); `print`(`fact`(10))"))
fib <- function(n) {
if (n < 2) {
@netpyoung
netpyoung / README.md
Created October 5, 2016 03:18 — forked from jbevain/README.md
pdb2mdb for Visual Studio 2015

The Visual Studio Tools for Unity are able to convert .NET debug symbol files (namely pdb files) to debug symbols files that are understood by Unity's scripting engine (namely .dll.mdb files) when importing both the .dll and the .pdb in the Assets folder.

If you prefer to handle the conversion yourself you need to call a tool named pdb2mdb on the .dll associated with the .pdb:

pdb2mdb MyLibrary.dll

Will produce a MyLibrary.dll.mdb usable on Unity if MyLibrary.pdb is present.

@netpyoung
netpyoung / p4merge4git.md
Created October 6, 2016 16:53 — forked from tony4d/p4merge4git.md
Setup p4merge as a visual diff and merge tool for git
var comp = SyntaxFactory.CompilationUnit().AddMembers(
SyntaxFactory.NamespaceDeclaration(SyntaxFactory.IdentifierName("ACO"))
.AddMembers(
SyntaxFactory.ClassDeclaration("MainForm")
.AddMembers(
SyntaxFactory.PropertyDeclaration(SyntaxFactory.ParseTypeName("System.Windows.Forms.Timer"), "Ticker")
.AddAccessorListAccessors(
SyntaxFactory.AccessorDeclaration(SyntaxKind.GetAccessorDeclaration).WithSemicolonToken(SyntaxFactory.Token(SyntaxKind.SemicolonToken)),
SyntaxFactory.AccessorDeclaration(SyntaxKind.SetAccessorDeclaration).WithSemicolonToken(SyntaxFactory.Token(SyntaxKind.SemicolonToken))),
SyntaxFactory.MethodDeclaration(SyntaxFactory.ParseTypeName("void"), "Main")
@netpyoung
netpyoung / test.cs
Last active November 15, 2016 05:15
#region AutoGenerated
public class DataQHello
{
public int A { get; set; }
}
public class DataRHello
{
public int A { get; set; }
}
@netpyoung
netpyoung / 20170508_SUMMARY.md
Last active May 30, 2017 03:57
20170508_SUMMARY.md
@netpyoung
netpyoung / Two.One.sum.py
Created September 7, 2017 14:51
Two.One.sum.py
# ref : https://stackoverflow.com/questions/5189699/how-to-make-a-class-property
class ClassPropertyDescriptor(object):
def __init__(self, fget, fset=None):
self.fget = fget
self.fset = fset
def __get__(self, obj, klass=None):
if klass is None:
klass = type(obj)