Heroku is a hosted platform which lets you deploy apps from different languages; Python, Ruby, Node etc. It is a quick way to get your app
online without the hassle of setting up a server.
Install GIT
Install the Heroku Toolbelt
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class WindowSwitcher : MonoBehaviour | |
{ | |
[Header("Main screen hud")] | |
public GameObject hud; | |
[Header("Parent gameobject for windows")] | |
public GameObject menuPanel; |
/* COMMAND LINE */ | |
mongod & // start mongo server on port 27017 by default | |
mongo mydb // launch mongo shell using the specified database | |
// importing & exporting | |
mongoimport -d mydb -c mycollection --jsonArray --file input.json | |
mongoimport -d mydb -c mycollection --headerline --type csv --file input.csv | |
mongoexport -d mydb -c mycollection --out output.json | |
mongoimport --db mydb --collection tours --jsonArray --file tours.json |
Heroku is a hosted platform which lets you deploy apps from different languages; Python, Ruby, Node etc. It is a quick way to get your app
online without the hassle of setting up a server.
Install GIT
Install the Heroku Toolbelt
//HTML, include as 1st in body tag | |
<div class="loader"> | |
<div class="spinner"> | |
</div> | |
</div> | |
//CSS | |
.loader{ | |
width: 100%; |
$('a').click(function(){ | |
$('html, body').animate({ | |
scrollTop: $( $.attr(this, 'href') ).offset().top | |
}, 500); | |
return false; | |
}); | |
// http://stackoverflow.com/questions/7717527/jquery-smooth-scrolling-when-clicking-an-anchor-link/7717572#7717572?newreg=16ca424bc4024b21a4fcc728ea6451d5 |
(Full description and list of commands at - https://npmjs.org/doc/index.html)
##List of less common (however useful) NPM commands
######Prepand ./bin to your $PATH Make sure to export your local $PATH and prepand relative ./node_modules/.bin/:
using UnityEngine; | |
using UnityEditor; | |
public class ReplaceWithPrefab : EditorWindow | |
{ | |
[SerializeField] private GameObject prefab; | |
[MenuItem("Tools/Replace With Prefab")] | |
static void CreateReplaceWithPrefab() | |
{ |