Before doing anything else, install those:
- VirtualBox: https://www.virtualbox.org/wiki/Downloads
- Vagrant: https://www.vagrantup.com/downloads.html
- git: http://git-scm.com/download/win
Before doing anything else, install those:
# add the email package | |
meteor add email |
#Cookbook
If you don’t want to spend time setting up redis yourself, just use thebyrd/[email protected]
$ bowery add cache
$ bowery connect
$ bowery ssh cache
root@17e65aa587e8:/# apt-get install -y gcc
root@17e65aa587e8:/# wget http://download.redis.io/releases/redis-2.8.6.tar.gz
BEFORE YOU CONTINUE:
mrt
is no longer used with Meteor 1.0These days some people were discussing at meteor-talk group about running Meteor at Windows and I’ve recommended them using Vagrant. It’s a very developer-friendly piece of software that creates a virtual machine (VM) which let you run any operating system wanted and connect to it without big efforts of configuration (just make the initial installation and you have it working).
Many packages (I've tested) for running Meteor+Vagrant fails because Meteor writes its mongodb file and also other files inside local build folder into a shared folder between the Windows host and the Linux guest, and it simply does not work. So I've put my brain to work and found a solution: do symlinks inside the VM (but do not use ln. Use mount so git can follow it). It’s cove
// Smooth Follow from Standard Assets | |
// Converted to C# because I fucking hate UnityScript and it's inexistant C# interoperability | |
// If you have C# code and you want to edit SmoothFollow's vars ingame, use this instead. | |
using UnityEngine; | |
using System.Collections; | |
public class SmoothFollow : MonoBehaviour { | |
// The target we are following | |
public Transform target; |
using System.Collections.Generic; | |
using UnityEngine; | |
/// <summary> | |
/// A console to display Unity's debug logs in-game. | |
/// </summary> | |
public class Console : MonoBehaviour | |
{ | |
struct Log | |
{ |
var minFov: float = 15f; | |
var maxFov: float = 90f; | |
var sensitivity: float = 10f; | |
function Update () { | |
var fov: float = Camera.main.fieldOfView; | |
fov += Input.GetAxis("Mouse ScrollWheel") * sensitivity; | |
fov = Mathf.Clamp(fov, minFov, maxFov); | |
Camera.main.fieldOfView = fov; | |
} |
var ZoomAmount : float = 0; //With Positive and negative values | |
var MaxToClamp : float = 10; | |
var ROTSpeed : float = 10; | |
function Update() { | |
ZoomAmount += Input.GetAxis("Mouse ScrollWheel"); | |
ZoomAmount = Mathf.Clamp(ZoomAmount, -MaxToClamp, MaxToClamp); | |
var translate = Mathf.Min(Mathf.Abs(Input.GetAxis("Mouse ScrollWheel")), MaxToClamp - Mathf.Abs(ZoomAmount)); | |
gameObject.transform.Translate(0,0,translate * ROTSpeed * Mathf.Sign(Input.GetAxis("Mouse ScrollWheel"))); | |
} |
Create a new task | |
Task parameters /icon "%userprofile%\.babun\cygwin\bin\mintty.exe" /dir "%userprofile%" | |
Commands %userprofile%\.babun\cygwin\bin\mintty.exe - |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)" |