sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
// CollisionResponse option on PhysicsShape must be set to CollideRaiseCollisionEvents. | |
[UpdateInGroup(typeof(PhysicsSystemGroup))] | |
[UpdateAfter(typeof(PhysicsSimulationGroup))] | |
public partial struct CalculateDetailsTest_PhysicsEventSystem : ISystem | |
{ | |
[BurstCompile] | |
public void OnCreate(ref SystemState state) | |
{ |
#include <time.h> // Robert Nystrom | |
#include <stdio.h> // @munificentbob | |
#include <stdlib.h> // for Ginny | |
#define r return // 2008-2019 | |
#define l(a, b, c, d) for (i y=a;y\ | |
<b; y++) for (int x = c; x < d; x++) | |
typedef int i;const i H=40;const i W | |
=80;i m[40][80];i g(i x){r rand()%x; | |
}void cave(i s){i w=g(10)+5;i h=g(6) | |
+3;i t=g(W-w-2)+1;i u=g(H-h-2)+1;l(u |
The major important thing is the documentation has to be implementation independent and specification concise. Dependencies where ever necessary are allowed to be specified.
Also it is allows HTML tags to be used in between the documentation comments. Pretty much all tags are self explanatory.
Meta Annotations
@author Ex: @author Jane Doe
@version Ex: @version v1.0-alpha
<?xml version="1.0" encoding="utf-8"?> | |
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<WebPublishMethod>FileSystem</WebPublishMethod> | |
<LastUsedBuildConfiguration>Debug</LastUsedBuildConfiguration> | |
<LastUsedPlatform>Any CPU</LastUsedPlatform> | |
<SiteUrlToLaunchAfterPublish /> | |
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish> | |
<ExcludeApp_Data>False</ExcludeApp_Data> | |
<publishUrl>C:\Publish\SimpleExample</publishUrl> |
# ZSH | |
sudo apt install zsh -y | |
sudo apt-get install powerline fonts-powerline -y | |
git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh | |
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc | |
chsh -s /bin/zsh | |
# REBOOT | |
# sudo reboot |
// Разное интересное по многопоточности: | |
// Featured-секция, для любителей архивной документации от Apple: | |
1. https://developer.apple.com/library/archive/technotes/tn/tn2028.html#//apple_ref/doc/uid/DTS10003065 - про внутренности потоков в MAC OS X в сравнении с MAC OS 9 | |
2. https://developer.apple.com/library/archive/documentation/Darwin/Conceptual/KernelProgramming/About/About.html - Kernel Programming guide, вы же понимаете, что там будет, да :D | |
// Для любителей WWDC: | |
1. https://developer.apple.com/videos/play/wwdc2015/718/ - GCD раз. |
// Found on: http://hints.macworld.com/article.php?story=2008051406323031 | |
// File: | |
// click.m | |
// | |
// Compile with: | |
// gcc -o click click.m -framework ApplicationServices -framework Foundation | |
// | |
// Usage: | |
// ./click -x pixels -y pixels |