Skip to content

Instantly share code, notes, and snippets.

@bma73
bma73 / getnodejs
Last active January 30, 2018 14:45
Download and install NodeJS Package (Ubuntu)
#!/bin/bash
FILE=/tmp/nodejs.download
TARGET=/etc/nodejs/
LINK_NODE=/usr/bin/node
LINK_NPM=/usr/bin/npm
echo "Downloading $1"
sudo wget $1 -O $FILE
sudo tar xfm $FILE -C $TARGET
@bma73
bma73 / Scenes.cs
Created July 7, 2015 21:00
Unity3D: Editor window which lists all scenes avaible in the current project and loads them by clicking on the according button.
using UnityEditor;
using UnityEngine;
using System.IO;
using System.Collections.Generic;
public class Scenes : EditorWindow
{
[MenuItem("Window/Scenes...", false)]
public static void ShowWindow ()
{
@bma73
bma73 / Data.cs
Created June 13, 2015 19:29
Unity3D: Load JSON data compressed with "deflate" from a NodeJS server...
using UnityEngine;
using System.Collections;
using SimpleJSON;
using System.IO;
/*
* Uses SimpleJSON
* http://wiki.unity3d.com/index.php/SimpleJSON
* and