글을 쓸 때 다음 규칙을 지킵니다.
- 제목과 소제목에는 대상의 이름, 실제 기능, 다루는 범위를 적습니다. 극적으로 꾸미거나 광고 문구처럼 만들지 않습니다.
- 결론을 먼저 쓰고 근거를 붙입니다. 배경 설명으로 뜸을 들이지 않습니다.
- 다음 표현은 쓰지 않습니다.
- 대구를 맞춘 표어
- 실제 용어를 대신하는 시적 비유
- 콜론 뒤에 결론을 극적으로 제시하는 문장
Note
If you want a more complete experience and already tried the Xvnc tutorial, maybe you should try the WSLg (Xwayland) instead.
Warning
This is a work in progress tutorial. Things done here may break existing functionality, so be careful!
In this tutorial, we will install and use a full GNOME Desktop environment in WSL2, without any external software. The only requirement is a working WSLg installation. At the moment, the instructions are only for Ubuntu (20.04, 22.04 and 24.04) distros and GNOME, but you can request me to test other distros and desktop environments.
| # | |
| # Modified echo example of https://github.com/python-telegram-bot | |
| # | |
| # - print message in the terminal | |
| # - send back echo message in the telegram channel | |
| # | |
| import logging | |
| from telegram import ForceReply, Update |
| struct packet | |
| { | |
| char name[16]; | |
| unsigned short id; | |
| char state_01; // 0: safety / 1: fire / 2: reload :==> safety / reload는 무시. | |
| char state_02; // reserved. | |
| unsigned short buttonState; // buttons | |
| }; | |
| const int ButtonCount = 14; |
| struct packet | |
| { | |
| char name[16]; | |
| unsigned short id; | |
| char state_01; // 0: safety / 1: fire / 2: reload :==> safety / reload는 무시. | |
| char state_02; // reserved. | |
| unsigned short buttonState; // buttons | |
| float thumb_x; // joystick x-axis | |
| float thumb_y; // joystick y-axis | |
| }; |
| #include "SimpleTimer.h" | |
| /** | |
| Initialize, call application start time before updating frame. | |
| */ | |
| void SimpleTimer::start() | |
| { | |
| // from MSDN: On systems that run Windows XP or later, | |
| // the function will always succeed and will thus never return zero. | |
| (void)QueryPerformanceFrequency(&freq); |
| using UnityEngine; | |
| public class EnumFlagAttribute : PropertyAttribute | |
| { | |
| public string enumName; | |
| public EnumFlagAttribute() {} | |
| public EnumFlagAttribute(string name) | |
| { |
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| namespace UnityEditor.T4Templating | |
| { | |
| public sealed class T4TemplatePostProcessor : AssetPostprocessor | |
| { | |
| [MenuItem("Assets/Force T4 Detection", priority=1000)] |
| using UnityEngine; | |
| using UnityEditor; | |
| using System; | |
| using System.Reflection; | |
| /// <summary> | |
| /// Open a webview within Unity editor. (similar as AssetStore window) | |
| /// </summary> | |
| public class WebViewEditorWindow : EditorWindow | |
| { |