Skip to content

Instantly share code, notes, and snippets.

//2014.4.11 ken initial version. modified from https://alastaira.wordpress.com/2013/10/25/animal-crossing-curved-world-shader/
Shader "Custom/CurvedWorld" {
Properties {
// Diffuse texture
_MainTex ("Base (RGB)", 2D) = "white" {}
// Degree of curvature
_Curvature ("Curvature", Float) = 0.001
_HorizontalCurvature ("Horizontal Curvature", Float) = 0.001
_RelativePos ("Relative Position", Vector) = (0, 0, 0, 0)
using UnityEngine;
using System.Collections;
public class TestWait : MonoBehaviour {
private bool hasTouched = false;
public IEnumerator Start() {
Debug.Log("1");
yield return StartCoroutine(WaitForInput());
Debug.Log("2");
using UnityEngine;
using System.Collections;
public class Main : MonoBehaviour {
private GameObject prefab;
public void Update() {
Debug.Log(Time.frameCount);
if(Time.frameCount == 5) {
Load();
using UnityEngine;
using System.Collections;
public class Target : MonoBehaviour {
public void Awake() {
Debug.Log(this.GetType().Name + ".Awake() at frame " +
Time.frameCount);
}
public void Start() {
Debug.Log(this.GetType().Name + ".Start() at frame " +
import requests
import time
count = 0
def write_file(text, path):
f = open(path, 'w+')
f.write(text.encode('utf8'))
f.close();
import requests
import time
import threading
payload = {
'u_name': 'ken',
'email': '[email protected]',
'mobile': '0999000000',
'num1': '9999',
'o_num':'9999'
using UnityEngine;
using System.Collections;
using System.Linq;
using System;
public class TestLinq : MonoBehaviour {
void Start () {
float[] values = new float[3] { 3, 5, 1};
Debug.Log(values.Min());
export PS1="\[\e[00;33m\]\t\[\e[0m\]\[\e[00;37m\] \[\e[0m\]\[\e[00;32m\]\u@\[\e[0m\]\[\e[00;36m\]\h:\[\e[0m\]\[\e[00;35m\]\W\[\e[0m\]\[\e[00;31m\]\$\[\e[0m\]\[\e[00;37m\] \[\e[0m\]"
alias ls='ls -G'
export PATH=$PATH:/Applications/adt-bundle-mac-x86_64-20130917/sdk/platform-tools:/Applications/adt-bundle-mac-x86_64-20130917/sdk/tools:/Applications/apache-ant-1.9.2/bin
set nocompatible
set showcmd
filetype on
filetype plugin on
syntax enable
set autoindent
set expandtab
set smarttab
/Library/
/Temp/
*.sln
*.pidb
*.csproj
*.unityproj
*.userprefs
*.swp
*~