Skip to content

Instantly share code, notes, and snippets.

@4NAN10
4NAN10 / taiyodo_tips.txt
Last active April 13, 2021 23:47
【taiyodo】tips
テスト更新
★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
フォントの標準設定
★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
▼2020年定番のフォント
font-family: -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", HelveticaNeue, "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", "Sogoe UI", Verdana, "メイリオ", Meiryo, sans-serif;
@4NAN10
4NAN10 / JavaScriptメモ
Created December 13, 2020 11:10
JavaScriptメモ
○JavaScript
○DOM
HTML構造をJSから制御できるように、ツリー構造で表現したオブジェクト
○仮想DOM
JSから直接DOMを制御せず、仮想DOMを通じてDOMを操作する手法
// ノードを操作するオブジェクト
@4NAN10
4NAN10 / XMLMain.cs
Created February 9, 2019 16:17
XMLクラスの使い方
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace XmlTest
{
class XmlTest
{
@4NAN10
4NAN10 / XMLFile.cs
Last active February 9, 2019 16:22
XMLのクラス
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace XmlTest
{
/// <summary>
/// ドメイン一覧(ルート)
@4NAN10
4NAN10 / XMLTest.xml
Created February 9, 2019 16:15
階層化された繰り返しするXML
<?xml version="1.0" encoding="utf-8"?>
<Domains>
<Domain name="ドメインその1">
<Files>
<File name="XML.csv">
<item name="AAA" value="true" />
<item name="BBB" value="true"/>
<item name="CCC" value="false"/>
</File>
</Files>
@4NAN10
4NAN10 / log4netTest.exe.config
Created February 3, 2019 12:34
実行環境でもlog4netでエラーを出力するようにしたい。
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<!-- log4netを使うため必要な宣言-->
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
</startup>
@4NAN10
4NAN10 / CsvToInsert.py
Created January 27, 2019 05:49
CSVをINSERT文に変換する
# 仕様
# ・1行目がテーブル名
# ・2行目がデータのヘッダ
# ・3行目からデータ
import os
import csv
from pathlib import Path
# カレントディレクトリにあるcsvファイルを全部取得