Skip to content

Instantly share code, notes, and snippets.

@papinianus
papinianus / read.json
Created December 14, 2023 15:17
既読管理のサイトパッケージ
{
"HeaderInfo": {
"AssemblyVersion": "1.3.49.0",
"BaseSiteId": 9538878,
"Server": "https://demo.pleasanter.org",
"CreatorName": "テナント管理者",
"PackageTime": "2023-12-14T15:16:15.8933625+00:00",
"Convertors": [
{
"SiteId": 9538878,
@papinianus
papinianus / worktime.json
Created December 13, 2023 17:12
勤怠管理のサイトパッケージ
{
"HeaderInfo": {
"AssemblyVersion": "1.3.49.0",
"BaseSiteId": 9534841,
"Server": "https://demo.pleasanter.org",
"CreatorName": "テナント管理者",
"PackageTime": "2023-12-13T17:10:00.2559769+00:00",
"Convertors": [
{
"SiteId": 9534841,
@papinianus
papinianus / test.ps1
Created December 28, 2022 11:56
assign to pscustomobject
# PowerShell 7.3.1
$csv = "A,B`n1,2`n11,12`n21,22";
$file = "./test.csv";
if (Test-Path $file) {
Remove-Item $file;
}
Out-File -InputObject $csv -FilePath $file -NOClobber
$Object = [PSCustomObject]@{ A = 0; B = 0 }
Import-Csv $file | ForEach-Object { $Object.A += $_.A; $Object.B = $_.B }
Write-Host $Object
@papinianus
papinianus / FormApp.json
Last active December 16, 2022 18:25
google form create
{
"HeaderInfo": {
"AssemblyVersion": "1.3.26.1",
"BaseSiteId": 7167230,
"Server": "https://demo.pleasanter.org",
"CreatorName": "テナント管理者",
"PackageTime": "2022-12-16T18:24:21.8499706+00:00",
"Convertors": [
{
"SiteId": 7167230,
@papinianus
papinianus / uselessmachine.json
Created December 8, 2022 12:32
shannon's hand
{
"HeaderInfo": {
"AssemblyVersion": "1.3.25.2",
"BaseSiteId": 7140333,
"Server": "https://demo.pleasanter.org",
"CreatorName": "テナント管理者",
"PackageTime": "2022-12-08T12:25:58.5422043+00:00",
"Convertors": [
{
"SiteId": 7140333,
@papinianus
papinianus / dailyReport.json
Created December 4, 2022 15:01
日報を作ってみる
{
"HeaderInfo": {
"AssemblyVersion": "1.3.25.2",
"BaseSiteId": 7122237,
"Server": "https://demo.pleasanter.org",
"CreatorName": "テナント管理者",
"PackageTime": "2022-12-04T15:00:44.1705214+00:00",
"Convertors": [
{
"SiteId": 7122237,
@papinianus
papinianus / csvimportscript.json
Created December 2, 2022 15:18
Pleasanter:リンク項目のCSVインポート
{
"HeaderInfo": {
"AssemblyVersion": "1.3.25.2",
"BaseSiteId": 7011464,
"Server": "https://demo.pleasanter.org",
"CreatorName": "テナント管理者",
"PackageTime": "2022-12-02T15:17:55.744909+00:00",
"Convertors": [
{
"SiteId": 7011464,
@papinianus
papinianus / treefy.ts
Created May 10, 2021 16:39
treefy chapter index
// Of https://twitter.com/suin/status/1390626681547751429
interface Chapter {
level: number;
text: string;
}
interface ChapterNode extends Chapter {
children: ChapterNode[];
}
const input = [
{ level: 1, text: "1章" },
@papinianus
papinianus / japanese-dvorakjp.scm
Last active January 26, 2021 13:22 — forked from yoh2/japanese-dvorakjp.scm
uim-skk と DvorakJP を組み合わせて使う ref: http://qiita.com/yoh2/items/66d70e33e47d6fb68d2f
(define ja-dvorakjp-rule-basic
'(
((("c" "a"). ())("か" "カ" "カ"))
((("c" "i"). ())("き" "キ" "キ"))
((("c" "u"). ())("く" "ク" "ク"))
((("c" "e"). ())("け" "ケ" "ケ"))
((("c" "o"). ())("こ" "コ" "コ"))
((("c" "y"). ("y" "k"))("" "" ""))
((("c" "n"). ("y" "k"))("" "" ""))