Skip to content

Instantly share code, notes, and snippets.

View halka9000stg's full-sized avatar
🧑‍💻
Needed Co-Researcher/Co-Developer

佐藤陽花 halka9000stg

🧑‍💻
Needed Co-Researcher/Co-Developer
  • was Dev. of CE, CST, Nihon Univ.
  • Tokyo & Soma, Japan
  • 10:53 (UTC +09:00)
  • X @Distr_to_Yonder
View GitHub Profile
@halka9000stg
halka9000stg / fimacs_About.md
Last active April 11, 2021 18:53
Plans: FIMACS (FunCobal Inter-Macro Application-Cooperative Script Language)

FIMACS(FunCobal Inter-Macro Application-Cooperative Script Language)

コンピュータ言語/コンストラクション言語/スクリプト言語/マクロ言語/アプリケーションマクロ

VBA(Visual Basic for Applications)、GAS(Google Application Script)、TACL(TRON Application Control-Flow Language)などと同じような、汎用的アプリケーションマクロ言語である。VBAやGASと違って特定アプリケーション(VBAの場合はMS Office、GASの場合はGoogle Apps)に限った対応ではなく、TACLのような全アプリケーションへの対応が可能な仕組みとなっている。

以下に構文/使用例を示す。

pair {
 SpreadSheet,
class AccountingBooks{
AccountingBook journal;
AccountingBook generalLedger;
AccountingBooks(){
this.journal = AccountingJournal();
this.generalLedger = GeneralLedger();
}
void posting(){
this.generalLedger.postingFrom(this.journal as AccountingJournal);
}
#!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
都議会議員選挙2021の議席状況を取得して、円グラフを描画する
Seleniumで強引に取ってきてるので、時間がかかる。
TODO: BeautifulSoupでスクレイピングしてみる
"""
#!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
都議会議員選挙2021の議席状況を取得して、円グラフを描画する
Seleniumで強引に取ってきてるので、時間がかかる。
TODO: BeautifulSoupでスクレイピングしてみる
"""
#!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
都議会議員選挙2021の議席状況を取得して、円グラフを描画する
Seleniumで強引に取ってきてるので、時間がかかる。
TODO: BeautifulSoupでスクレイピングしてみる
ちなみに、東京議会選挙は英語で"Tokyo Metropolitan Assembly Election"らしい。
"""
@halka9000stg
halka9000stg / index.html
Last active October 15, 2021 13:14
DartPad.dev
<html></html>
@halka9000stg
halka9000stg / main.dart
Created November 8, 2021 03:46
IMEP: Integrated Mincraft Enhanced Pack
void main() => print([tools.mc.mod,tools.mc.gl].join("\n"));
Tool tools = Tool();
class Tool{
MC mc = MC();
}
class MC{
String mod = """
IMEP: Integrated Mincraft Enhanced Pack
@halka9000stg
halka9000stg / main.dart
Last active November 19, 2021 10:12
オエル世界の暦の計算
void main(){
int year4m1q3 = ffezCalendar.sys["year4m1q3"]!;
int year4d1m1q3 = ffezCalendar.sys["year4d1m1q3"]!;
int year4d1m1q4= ffezCalendar.sys["year4d1m1q4"]!;
print(365 - year4m1q3);
print((365 * 10 + 2) - (year4d1m1q3 * 4) - (year4d1m1q4 * 6));
print((365 * 9 + 2) - (year4d1m1q3 * 4) - (year4d1m1q4 * 5));
print((365 * 19 + 3) - (year4d1m1q3 * 8) - (year4d1m1q4 * 11));
int startYear = 1482;
List<bool> lps = [true, true, false,
@halka9000stg
halka9000stg / keyboardShortcutLib.dart
Created December 21, 2021 19:27
キーボードショートカットとそのフォーカス管理のためのスニペット/ライブラリ(まだ正しい挙動はしない)
import 'package:flutter/services.dart';
import 'package:flutter/widgets.dart';
class ShortcutPrefer{
LogicalKeyboardKey key;
void Function(Event) asNew;
static void Function(BuildContext) defaultHandler = (BuildContext context){};
ShortcutPrefer(this.key, this.asNew);
}
class ShortcutPreferAfresh extends ShortcutPrefer{