Skip to content

Instantly share code, notes, and snippets.

@narusuke15
narusuke15 / index.js
Last active August 23, 2018 16:00
my parse-server express simple config file
// my edited parse express application adding the parse-server module to expose Parse
// compatible API routes.
const express = require('express')
const ParseServer = require('parse-server').ParseServer
const path = require('path')
let api = new ParseServer({
databaseURI: 'mongodb://127.0.0.1:27017/dev', //***
cloud: path.join(__dirname, '/cloud/main.js'),
@narusuke15
narusuke15 / .bashrc
Created March 23, 2016 10:32
my osx bash setting
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
#set directory
tounityproject() { cd Development/UnityProject/; }
myworkspace() {
open -a unity;
open -a evernote;
open -a ‘google chrome’;
open -a line;
@narusuke15
narusuke15 / .gitignore
Last active October 1, 2015 03:28
My unity git ignore
Library/
Temp/
UnityVS/
UnityVS.meta
.vs/
*.DS
*.csproj
*.sln
*.userprefs
*.unityproj
//attach this in scene to prevent null reff when close game
//https://www.reddit.com/r/Unity3D/comments/35swhf/how_do_you_prevent_errors_when_your_game_closes/
using UnityEngine;
using System.Collections;
public class Deactivator : MonoBehaviour
{
void OnApplicationQuit()
{
MonoBehaviour[] scripts = Object.FindObjectsOfType<MonoBehaviour>();
@narusuke15
narusuke15 / LogWrapperDLL.cs
Last active September 4, 2015 07:42
Unity Debug.Log Wrapper sample with c#
using System;
using UnityEngine;
namespace LogWrapper {
public class LogWrapperDLL {
public static void log(object msg){
Debug.Log(msg);
}