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
/* | |
Example of how to get raw mouse input data using the native Windows API | |
through a "message-only" window that outputs to an allocated console window. | |
Not prepared for Unicode. | |
I don't recommend copy/pasting this, understand it before integrating it. | |
*/ | |
// Make Windows.h slightly less of a headache. | |
#define NOMINMAX |
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
javascript: (function() { | |
const search_text = prompt("Search cppreference"); | |
if (search_text !== null) | |
window.location.href = | |
"http://en.cppreference.com/mwiki/index.php?title=Special%3ASearch&search=" | |
+ search_text; | |
}()); |
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
<NotepadPlus> | |
<UserLang name="ReShade FX" ext="fx fxh" udlVersion="2.1"> | |
<Settings> | |
<Global caseIgnored="no" allowFoldOfComments="yes" foldCompact="no" forcePureLC="0" decimalSeparator="0" /> | |
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" /> | |
</Settings> | |
<KeywordLists> | |
<Keywords name="Comments">00// 01\ 02 03/* 04*/</Keywords> | |
<Keywords name="Numbers, prefix1"></Keywords> | |
<Keywords name="Numbers, prefix2">0x</Keywords> |
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 <wx/wxprec.h> | |
#ifndef WX_PRECOMP | |
#include <wx/wx.h> | |
#endif | |
#define NOMINMAX | |
#define WIN32_LEAN_AND_MEAN | |
#define VC_EXTRALEAN | |
#include <Windows.h> |
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
#ifndef STOPWATCH_HPP | |
#define STOPWATCH_HPP | |
#include <chrono> | |
namespace detail { | |
using namespace std::chrono; | |
using hrc = high_resolution_clock; |
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
Shader "Hidden/Noise" { | |
Properties { | |
_Complexity("", Float) = 1.0 | |
_TimeScale("", Float) = 0.0 | |
} | |
SubShader { Cull Off ZWrite Off ZTest Always | |
CGINCLUDE | |
#include "UnityCG.cginc" | |
//========// |
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
#!/usr/bin/env python3 | |
VERSION = "1.0.3" | |
TARGET_TEXT = b"You can drop dockable dialogs here" | |
HELP_TEXT = ( | |
"""Description: | |
This script replaces the "You can drop dockable dialogs here" text in GIMP with an empty one, disabling it. | |
Usage: nodroptext [<file_path>] [...] |
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
/* | |
Function for formatting decimal numbers, | |
including specifying decimal places and | |
optionally applying localization. | |
Parameters: | |
n: (Number | String) | |
Number to be formatted. | |
decimals: (Number) |
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
#if UNITY_EDITOR | |
using UnityEngine; | |
using UnityEngine.UI; | |
using UnityEngine.Events; | |
using UnityEditor; | |
using UnityEditor.Events; | |
public class AddKeyComponents : MonoBehaviour { | |
public GameObject virtualKeyboard; |
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.Text.RegularExpressions; | |
public struct CPF { | |
public static readonly Regex FormatRegex = new Regex( | |
@"(\d\d\d)\.(\d\d\d)\.(\d\d\d)-(\d\d)", | |
RegexOptions.Compiled | |
); | |
public const int DigitCount = 11; |
OlderNewer