Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
// Clone of https://gist.github.com/Flafla2/1a0b9ebef678bbce3215 with more dimensions and seed generation. | |
public class PerlinGen | |
{ | |
private readonly int[] p; // Randomly shuffled array of values from 0 to 255. | |
// Values are repeated twice to get performance boost | |
// from avoiding the use of modulo operator. | |
public PerlinGen(int seed) | |
{ |
Here is repo I'm using:
https://github.com/jcubic/static
And links to files look like this:
I highly recommend reading the official page about using Visual Studio with Godot first. It may be more up to date than this doc, and has been past review.
If you have any problems or questions, come visit the C# channel in the Godot Discord to chat.
To debug C#/.NET code in Godot:
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Basic interactive video with HTML5 and vanilla JavaScript</title> | |
</head> | |
<body> | |
<!-- Read my blog post on interactive videos: https://mostlydevstuff.com/2018/basic-interactive-video-with-html5-and-javascript/ --> | |
<style> |
<Window x:Class="ListBoxStyle.MainWindow" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:src="clr-namespace:ListBoxStyle" | |
Title="MainWindow" Height="350" Width="525"> | |
<Window.Resources> | |
<Style x:Key="_ListBoxItemStyle" TargetType="ListBoxItem"> | |
<Setter Property="Template"> | |
<Setter.Value> | |
<ControlTemplate TargetType="ListBoxItem"> |
# to get commit messages of user 'rgusev' betwen 2017-01-01 and 2017-31-12 | |
# sh gitcommitsbydate.sh rgusev 2017-01-01 2017-31-12 | |
git log --author=$1 --pretty=format:"%s" --no-merges --after="$2" --before="$3" |
Option Explicit | |
Dim objshell,path,DigitalID, Result | |
Set objshell = CreateObject("WScript.Shell") | |
'Set registry key path | |
Path = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\" | |
'Registry key value | |
DigitalID = objshell.RegRead(Path & "DigitalProductId") | |
Dim ProductName,ProductID,ProductKey,ProductData | |
'Get ProductName, ProductID, ProductKey |
-- Lua Cheat Sheet for Programmers, by Al Sweigart http://coffeeghost.net | |
-- This cheat sheet is an executable Lua program. | |
--[[ This is | |
a multline comment]] | |
---[[ This is a neat trick. The first -- makes -[[ not a multiline comment. | |
print("This line executes.") | |
--]] The rest of this line is also a comment. | |
print("Here is a string" .. ' concatenated with ' .. 2 .. ' other strings.') |