This file contains 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
class CopyrightLinkElement extends HTMLElement { | |
static get observedAttributes() { | |
return ['established']; | |
} | |
constructor() { | |
super(); | |
} | |
connectedCallback() { | |
} |
This file contains 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
# See https://pandanote.info/?p=9956 for details. | |
class Expense: | |
amount = 0 | |
reason = "" | |
remark = "" | |
def __init__(self, amount, reason, remark): | |
self.amount = amount | |
self.reason = reason | |
self.remark = remark |
This file contains 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
// Inside a Vue instance... | |
dragOver(event) { | |
event.preventDefault(); | |
}, | |
dropFile(event) { | |
event.preventDefault(); dropFile() { | |
if (event.dataTransfer.files.length != 1) { | |
alert("Only one file can be dropped"); | |
return; | |
} |
This file contains 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
// Inside a Vue instance... | |
dragOver(event) { | |
event.preventDefault(); | |
}, | |
dropFile(event) { | |
event.preventDefault(); | |
if (event.dataTransfer.files.length != 1) { | |
alert("Only one file can be dropped"); | |
return; | |
} |
This file contains 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/python | |
# | |
# See https://sidestory.pandanote.info/datetime_in_iso8601.html | |
# | |
from datetime import datetime | |
print(datetime.now().astimezone().isoformat()) |
This file contains 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/python | |
# | |
# See https://sidestory.pandanote.info/datetime_in_iso8601.html | |
# | |
import datetime | |
print(datetime.datetime.now().astimezone().isoformat()) |
This file contains 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
.related-post { | |
display: inline-block; | |
} | |
a.related-post { | |
color: #1e3e8a | |
} | |
.related-post img { | |
float: left; |
This file contains 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
<h2>Related Posts / 関連ページ</h2> | |
<?php if(have_posts()):?> | |
<div class="related-post-list"> | |
<?php $adpos = 0; ?> | |
<?php while(have_posts()) : the_post(); ?> | |
<?php if ($adpos == 1): ?> | |
<!-- Insert your infeed ad --> | |
<?php endif; ?> | |
<a href="<?php the_permalink() ?>" | |
title="<?php the_title_attribute(); ?>" |
This file contains 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
Sub regexp_test() | |
Dim reg As Object | |
Set reg = CreateObject("VBScript.RegExp") | |
reg.Global = True | |
reg.Pattern = "^([^\(]+)\(([^\)]+)\)" | |
Dim output As String | |
output = reg.Replace("京急1000形1890番台(Le Ciel)", "$2 $1") | |
Debug.Print output | |
End Sub |
This file contains 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
module mongodb_var_lib_nfs 1.0; | |
require { | |
type mongod_t; | |
type var_lib_nfs_t; | |
class dir search; | |
class file { getattr read open }; | |
} | |
#============= mongod_t ============== |
NewerOlder