This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
program template_glut; | |
{$mode objfpc}{$H+} | |
uses | |
dynlibs, sysutils, GL, glu, Glut, GLext; | |
const | |
AppWidth = 300; | |
AppHeight = 300; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
program UdpServer; | |
uses Sockets; | |
const | |
UDPPackLen = 512; | |
var | |
MasterSocket : Longint; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://stackoverflow.com/questions/4053837/colorizing-text-in-the-console-with-c | |
#include <iostream> | |
#include <string> | |
int main(int argc, char ** argv){ | |
printf("\n"); | |
printf("\x1B[31mTexting\033[0m\t\t"); | |
printf("\x1B[32mTexting\033[0m\t\t"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Editor only console command: r.visualizeOccludedPrimitives 1 | |
This will render a green bounds box for any objects that are occluded. | |
Adjusting the bounds scale will increase the green bounding box and can cause the mesh to be rendered even when it’s not in view. | |
https://forums.unrealengine.com/t/how-does-object-occlusion-and-culling-work-in-ue4/334141 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. set Dynamic Global Illumination Method to "None" | |
2. set Reflection Method to "None" | |
3.4set Shadow Map Method to "Shadow Map" | |
4. set Default RHI to "DirectX 11" | |
5. turn off Ray Tracing Shadows |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
push di | |
push si | |
push cx | |
mov cx,(number of bytes to move) | |
lea di,(destination address) | |
lea si,(source address) | |
rep movsb | |
pop cx | |
pop si | |
pop di |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all | |
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all | |
lg = !"git lg1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VBoxManage setextradata "High Sierra" VBoxInternal2/EfiGraphicsResolution 1920x1080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git checkout master | |
git merge --squash [branch] | |
git add . | |
git commit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <stdio.h> | |
#include <sys/socket.h> | |
//#include <stdlib.h> | |
#include <netinet/in.h> | |
#include <string.h> | |
#include <netdb.h> | |
#include <arpa/inet.h> | |
//#include <unistd.h> |
NewerOlder