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
# | |
# 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 |
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
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; |
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
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 | |
}; |
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 "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); |
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
using UnityEngine; | |
public class EnumFlagAttribute : PropertyAttribute | |
{ | |
public string enumName; | |
public EnumFlagAttribute() {} | |
public EnumFlagAttribute(string name) | |
{ |
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
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)] |
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
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 | |
{ |
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
## Unity ## | |
*.cs diff=csharp text | |
*.cginc text | |
*.shader text | |
*.mat merge=unityyamlmerge eol=lf | |
*.anim merge=unityyamlmerge eol=lf | |
*.unity merge=unityyamlmerge eol=lf | |
*.prefab merge=unityyamlmerge eol=lf |
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
////////////////////////////////////////////////////////////////////////// | |
// GreyScale.shader | |
// | |
// unlit transparent texture with greyscale effect. | |
// | |
// (c) 2014 hwkim | |
////////////////////////////////////////////////////////////////////////// | |
Shader "Extension/GrayScale" | |
{ | |
Properties |
NewerOlder