Skip to content

Instantly share code, notes, and snippets.

View netpyoung's full-sized avatar
☯️
netpyoung

Eunpyoung Kim netpyoung

☯️
netpyoung
View GitHub Profile
# 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) {
// 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;
@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>
@netpyoung
netpyoung / gist:5171692
Created March 15, 2013 17:48
gist 테스트용.

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


Hasekll 환경설정


목표

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

Hasekll