This file contains hidden or 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/fontforge | |
width=50 | |
Open("mplus-2p-regular"); | |
#--------------------------------------------- | |
Print("RemoveOverlap") | |
SelectWorthOutputting() # すべてのグリフを選択する | |
RoundToInt() # 整数に丸める。 | |
RemoveOverlap() # パスの交差を除去する。 | |
RoundToInt() # RemoveOverlap() が新しい点を作るのでもう一度丸める。 | |
#--------------------------------------------- |
This file contains hidden or 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
AMBI_CHANNEL_ID=<AmbientのチャンネルID> | |
AMBI_READ_KEY=<Ambientの読み込みAPIキー> | |
AMBI_WRITE_KEY=<Ambientの書き込みAPIキー> | |
AMBI_INTERVAL=<アップロードのインターバル(秒)> | |
ADGUARD_WAIT_TIME=<AdGurdサービス起動までの待機時間(秒)> | |
@reboot /usr/bin/python3 /home/adpi/ambi_env_send.py >> /tmp/log 2>&1 |
This file contains hidden or 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/python3 | |
# Copyright (c) 2023 synctam@gmail.com | |
# Released under the MIT license | |
import os | |
import datetime | |
import psutil | |
import subprocess | |
import time | |
import logging | |
from datetime import datetime |
This file contains hidden or 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
acl localnet src 192.168.0.0/24 | |
acl SSL_ports port 443 | |
acl Safe_ports port 80 # http | |
acl Safe_ports port 21 # ftp | |
acl Safe_ports port 443 # https | |
acl Safe_ports port 70 # gopher | |
acl Safe_ports port 210 # wais | |
acl Safe_ports port 1025-65535 # unregistered ports | |
acl Safe_ports port 280 # http-mgmt |
This file contains hidden or 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
void setup() { | |
Serial.begin(115200); | |
} | |
void loop() { | |
static int count = 0; | |
count++; | |
Serial.printf("count = %d\n", count); | |
delay(100); | |
} |
This file contains hidden or 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
■ Vector2D 版の Normalized 関数 | |
AGKには、ベクトルの正規化関数がないみたいなので、Vector2D版のNormalized関数作りました。 | |
これを利用すると、縦・横・斜めの移動速度を一定にすることができます。 | |
// | |
// Vector2d型 | |
// | |
Type Vector2d | |
x as float | |
y as float |
This file contains hidden or 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
■関数名 | |
ファイル名_関数名 | |
■変数名 | |
変数名はハンガリアン記法。 | |
変数名には型を示すプレフィックスを付ける。 | |
■型プレフィックス | |
・文字列変数:ch | |
例:chTitle |
This file contains hidden or 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
AppGameKit | |
Basicの基本の基 | |
Basic言語では、大文字小文字は区別されない。 | |
Print( 1 ) | |
pRiNt( 1 ) | |
どちらも 1 が表示される。 | |
変数の大文字小文字は区別されない。 |
This file contains hidden or 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.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Numerics; | |
using System.Runtime.InteropServices.WindowsRuntime; | |
using System.Threading.Tasks; | |
using Windows.Foundation; | |
using Windows.Foundation.Collections; | |
using Windows.Graphics; |
This file contains hidden or 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
namespace LibCoreStitcher | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Drawing; | |
using System.IO; | |
using Emgu.CV; | |
using Emgu.CV.Stitching; | |
using Emgu.CV.Structure; | |
using Emgu.CV.Util; |
NewerOlder