Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
/* | |
A simple little editor extension to copy and paste all components | |
Help from http://answers.unity3d.com/questions/541045/copy-all-components-from-one-character-to-another.html | |
license: WTFPL (http://www.wtfpl.net/) | |
author: aeroson | |
advise: ChessMax | |
editor: frekons | |
*/ | |
#if UNITY_EDITOR |
Shader "Custom/URPSimpleLit" | |
{ | |
Properties | |
{ | |
_Color ("Color", Color) = (1,0,0,1) | |
} | |
SubShader | |
{ | |
Tags { | |
"RenderPipeline" = "UniversalPipeline" |
BLACK => "\033[30m", | |
RED => "\033[31m", | |
GREEN => "\033[32m", | |
YELLOW => "\033[33m", | |
BLUE => "\033[34m", | |
PURPLE => "\033[35m", | |
CYAN => "\033[36m", | |
WHITE => "\033[37m", | |
# background color |
Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative
float rand(float n){return fract(sin(n) * 43758.5453123);}
float noise(float p){
float fl = floor(p);
float fc = fract(p);
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.EditorInput;
using Autodesk.AutoCAD.Geometry;
namespace BKTools.Tools.PrecastTools.LayoutsToElevationsCommand
{
/// <summary>
/// We want panel lines that are perpendicular to the rotation of a particular block reference
/// </summary>
See this issue.
Docker best practise to Control and configure Docker with systemd.
Create daemon.json
file in /etc/docker
:
{"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
export const timeSince = ( date: string ) => { | |
const baseDate = new Date(date) | |
const seconds = Math.floor(( new Date().getTime() - baseDate.getTime() ) / 1000); | |
let interval = seconds / 31536000; |