Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
//Illustratorの選択テキストを本当の標準字形に戻す | |
var selObj = activeDocument.selection; | |
if (selObj.length > 0) { | |
//オブジェクト選択 | |
for (var i = 0; i < selObj.length; i++) { | |
if (selObj[i] != undefined){ | |
if (selObj[i].typename== "TextFrame") { | |
var myText = selObj[i].textRange; |
// A Godot 4 shader to make things appear on top of other things within a range. | |
// Initially, this was made so my characters' facial features would be rendered on top of their hair. | |
shader_type spatial; | |
render_mode unshaded; | |
uniform sampler2D depth_texture : hint_depth_texture, repeat_disable, filter_nearest; | |
// Maximum depth we can overdraw relative to the object original depth, in ENGINE UNITS. |
#include <iostream> | |
#include <Windows.h> | |
void OutputWindowsInformation() | |
{ | |
const auto hModule = ::LoadLibrary(TEXT("ntdll.dll")); | |
if (!hModule) return; | |
if (const auto address = ::GetProcAddress(hModule, "RtlGetVersion")) | |
{ |
javascript:(function(){let url=location.href;let title=document.title;url=encodeURIComponent(url);title=encodeURIComponent(title);window.open('https://twitter.com/intent/tweet?url='+url+'&text='+title,'_blank');})(); |
using Harmony; | |
using ICities; | |
using System; | |
using System.Reflection; | |
using UnityEngine; | |
using UnityEngine.Rendering; | |
namespace ShadowSettingsAdjuster | |
{ | |
/// <summary> |
'''This script records your device's orientation (accelerometer data) for 5 seconds, and then renders a simple plot of the gravity vector, using matplotlib.''' | |
import motion | |
import matplotlib.pyplot as plt | |
from time import sleep | |
import console | |
def main(): |
// A simple quickref for Eigen. Add anything that's missing. | |
// Main author: Keir Mierle | |
#include <Eigen/Dense> | |
Matrix<double, 3, 3> A; // Fixed rows and cols. Same as Matrix3d. | |
Matrix<double, 3, Dynamic> B; // Fixed rows, dynamic cols. | |
Matrix<double, Dynamic, Dynamic> C; // Full dynamic. Same as MatrixXd. | |
Matrix<double, 3, 3, RowMajor> E; // Row major; default is column-major. | |
Matrix3f P, Q, R; // 3x3 float matrix. |
この文章は、日経BP社から出版されている「HTML5ゲーム開発の極意」の付録PDFを元に、参照しやすいようmarkdown形式に書き起こした、個人的メモです。
import staccato | |
import time | |
# must be replaced | |
consumer_key = "YOURS" | |
consumer_secret = "YOURS" | |
access_token_key = "YOURS" | |
access_token_secret = "YOURS" | |
TARGET = "username" | |
SLEEP_TIME = 5 |