- TS application listening port: 7777
|-- dist
|-- src
|-- .dockerignore
|-- Dockerfile
/* MIT License | |
Copyright (c) 2022 David Tattersall | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
/* | |
* Overlap means drawing additional pixel when changing minor direction | |
* Needed for drawThickLine, otherwise some pixels will be missing in the thick line | |
*/ | |
#define LINE_OVERLAP_NONE 0 // No line overlap, like in standard Bresenham | |
#define LINE_OVERLAP_MAJOR 0x01 // Overlap - first go major then minor direction. Pixel is drawn as extension after actual line | |
#define LINE_OVERLAP_MINOR 0x02 // Overlap - first go minor then major direction. Pixel is drawn as extension before next line | |
#define LINE_OVERLAP_BOTH 0x03 // Overlap - both | |
#define LINE_THICKNESS_MIDDLE 0 // Start point is on the line at center of the thick line |
using UnityEngine; | |
using System.Collections; | |
public class ShakeTransformS : MonoBehaviour | |
{ | |
[Header("Info")] | |
private Vector3 _startPos; | |
private float _timer; | |
private Vector3 _randomPos; |
Install homebrew → https://brew.sh
Install beforehand NginX, MariaDB, DnsMasq and PHP7.2 with Composer
$ brew install php nginx mariadb dnsmasq composer
This is a fork of original gist https://gist.github.com/nrollr/3f57fc15ded7dddddcc4e82fe137b58e, with slight changes on pointing to 5.7 version branch, instead of 8 (latest default of MySQL in Hombrew).
This procedure explains how to install MySQL using Homebrew on macOS (Sierra 10.12 and up)
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
var AWS = require('aws-sdk'); | |
AWS.config.update({ region: 'us-east-1' }); | |
var s3 = new AWS.S3(); | |
var obj = { | |
firstname: "Navjot", | |
lastname: "Dhanawat" | |
}; | |
var buf = Buffer.from(JSON.stringify(obj)); |
using UnityEngine; | |
using System.Collections; | |
public class Wander : MonoBehaviour { | |
public float wanderRadius; | |
public float wanderTimer; | |
private Transform target; | |
private NavMeshAgent agent; |
using UnityEngine; | |
namespace System.Collections.Generic | |
{ | |
[Serializable] | |
public abstract class SerializableDictionary<TKey, TValue> : Dictionary<TKey, TValue>, ISerializationCallbackReceiver | |
{ | |
protected abstract List<SerializableKeyValuePair<TKey, TValue>> _keyValuePairs { get; set; } | |
// save the dictionary to lists |