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
| Object prefab = Resources.Load("Prefabs/prefab1"); // Assets/Resources/Prefabs/prefab1.FBX | |
| GameObject t = (GameObject) Instantiate(prefab, new Vector3(0, 0, 0), Quaternion.identity); |
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
| description "uwsgi instance" | |
| start on (filesystem and net-device-up IFACE=lo) or runlevel [2345] | |
| stop on runlevel [06] | |
| respawn | |
| umask 022 | |
| env LC_ALL=en_US.UTF-8 | |
| env LANG=en_US.UTF-8 |
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 UnityEngine; | |
| using System.Collections; | |
| public class HUDFPS : MonoBehaviour { | |
| // Attach this to a UILabel to make a frames/second indicator. | |
| // | |
| // It calculates frames/second over each updateInterval, | |
| // so the display does not keep changing wildly. | |
| // |
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
| require 'gollum/app' | |
| require 'digest/sha1' | |
| class App < Precious::App | |
| User = Struct.new(:name, :email, :password_hash) | |
| before /^\/(edit|create|delete|livepreview|revert)/ do authenticate! ; end | |
| helpers do | |
| def authenticate! |