This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command
$ docker-compose up -d
# To Tear Down
$ docker-compose down --volumes
public class ParkingCarAgent : Agent | |
{ | |
[SerializeField] | |
private Transform TargetParkingSpot; | |
[SerializeField] | |
// = Reward every 'interval' units getting closer | |
private float DistanceRewardInterval = 3f; | |
// Thresholds defining when the task is complete |
Shader "BendMesh" | |
{ | |
Properties | |
{ | |
_Texture("Texture", 2D) = "white" {} | |
_Color("Color", Color) = (0,0,0,0) | |
_Amplitude("Amplitude", Float) = 0 | |
_Frequency("Frequency", Float) = 0 | |
_OffsetSin("OffsetSin", Float) = 0 | |
/*********************************************** | |
* Copyright ? Far-Flung Creations Ltd. | |
* Author: Marius George | |
* Date: 25 October 2017 | |
* Email: [email protected] | |
* DISCLAIMER: THE SOURCE CODE IN THIS FILE IS PROVIDED ?AS IS? AND ANY EXPRESS OR IMPLIED WARRANTIES, | |
* INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | |
* IN NO EVENT SHALL FAR-FLUNG CREATIONS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE | |
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) SUSTAINED BY YOU OR A THIRD |
using UnityEngine; | |
using System; | |
using System.Reflection; | |
using System.Text.RegularExpressions; | |
[AttributeUsage (AttributeTargets.Field,Inherited = true)] | |
public class ReadOnlyAttribute : PropertyAttribute {} | |
#if UNITY_EDITOR | |
[UnityEditor.CustomPropertyDrawer (typeof(ReadOnlyAttribute))] |
/** | |
* Replace jQuery's $.fn.ready() function with a mod exec | |
* | |
* Sites that make heavy use of the $(document).ready function | |
* are generally incompatable with asynchrounous content. The | |
* the $.fn.ready function only runs once. This script replaces | |
* the ready function with a module execution controller that | |
* let's us register functions and execute all of the functions | |
* as we need them. This is useful after HTML gets injected on the | |
* page and we want to rebind functionally to the new content. |
// Returns a function, that, as long as it continues to be invoked, will not | |
// be triggered. The function will be called after it stops being called for | |
// N milliseconds. If `immediate` is passed, trigger the function on the | |
// leading edge, instead of the trailing. | |
function debounce(func, wait, immediate) { | |
var timeout; | |
return function() { | |
var context = this, args = arguments; | |
clearTimeout(timeout); |
using UnityEngine; | |
using System.Collections; | |
public class windController : MonoBehaviour { | |
//TODO | |
//1) Inwards / Outwards Direction | |
float t; | |
int direction = 1; //Direction of rotation the wind object makes |
These tools inject a breakpoint, console.log
or console.count
in any function you want to spy on via
stopBefore('Element.prototype.removeChild')
or ditto stopAfter
, logBefore
/ logAfter
/ logAround
/ logCount
.
Works in Chrome DevTools and Safari Inspector; Firefox dev tools reportedly less so.
namespace Common.Extension | |
{ | |
using System.Linq; | |
using System.Linq.Expressions; | |
public static class GenericEvaulatingOrderBy | |
{ | |
private static IOrderedQueryable<T> OrderingHelper<T>(IQueryable<T> source, string propertyName, bool descending, bool anotherLevel) | |
{ | |
var param = Expression.Parameter(typeof(T), "p"); |