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
;; Set template for GitHub Pages. | |
;; See https://pandanote.info/?p=6871 for details. | |
(defun markdown-insert-github-pages-template (page-title) | |
"Insert template for GitHub Pages." | |
(interactive "sTitle: ") | |
(let () | |
(insert (concat | |
"---\n" | |
"title: " page-title " - panda大学習帳外伝\n" | |
"description: \n" |
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=6855 for details. | |
class PandanoteLinkElement extends HTMLElement { | |
constructor() { | |
super(); | |
} | |
connectedCallback() { | |
this.innerHTML = '<a href="https://pandanote.info/">panda大学習帳</a> | <a href="https://sidestory.pandanote.info/">panda大学習帳外伝</a> | <a href="https://vsse.pandanote.info/">panda大学習帳(第三倉庫(仮))</a>←今ここ!! | <a href="https://pandanote.info/?page_id=69">プライバシーポリシー</a>'; | |
} | |
} |
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
<?php | |
/* | |
See https://pandanote.info/?p=6619 for details. | |
*/ | |
function pineleaf($atts) { | |
global $wpdb; | |
$atts = shortcode_atts(array( | |
"lat" => 35.45585, | |
"lon" => 139.64204, | |
"zoom" => 16, |
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=6619 for details. | |
drop table if exists leaflet_markers; | |
create table leaflet_markers ( | |
id int(11) not null auto_increment, | |
lat float not null, | |
lon float not null, | |
popup varchar(4096) not null, | |
primary key(id) | |
); |
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
<script> | |
new Vue({ | |
el: '#app', | |
data: { | |
msg: null, | |
rawmsg: "", | |
newad: "", | |
status: "" | |
}, | |
methods: { |
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
const mariadb = require('mariadb'); | |
const pool = mariadb.createPool({ | |
host: "(ホスト名またはホストのIPアドレス)", | |
user: "(ユーザ名)", | |
password: "(パスワード)", | |
database: "(データベース名)", | |
connectionLimit: 5 | |
}); | |
const server = http.createServer |
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
const fs = require('fs'); | |
const server = http.createServer | |
(function (request, response) { | |
var urlp = request.url; | |
if (別のURLの場合) { | |
// 中略 | |
} else { | |
if (urlp == "/") { | |
urlp += "index.html"; | |
} |
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=6505 for details. | |
const http = require('http'); | |
const server = http.createServer | |
(function (request, response) { | |
response.writeHead(200, {"Content-Type": "text/plain"}); | |
if (!request.url.endsWith('/')) { | |
response.end("Hello World!!, ("+request.url+")\n"); | |
} else { | |
response.end("Hello World!!\n"); |
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=6505 for details. | |
const http = require('http'); | |
const server = http.createServer | |
(function (request, response) { | |
response.writeHead(200, {"Content-Type": "text/plain"}); | |
if (!request.url.endsWith('/')) { | |
response.end("Hello World!!, ("+request.url+")\n"); | |
} else { | |
response.end("Hello World!!\n"); |
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
--- /dev/null 2020-06-19 08:45:04.478343399 +0900 | |
+++ kuromoji/kuromoji-ipadic-neologd/dictionary/mecab-ipadic-neologd/misc/patch/Noun.proper.reiwa.csv 2020-06-19 14:27:02.321778120 +0900 | |
@@ -0,0 +1 @@ | |
+令和,1288,1288,5904,名詞,固有名詞,一般,*,*,*,令和,レイワ,レイワ | |
--- kuromoji/kuromoji-ipadic-neologd/dictionary/mecab-ipadic-neologd/libexec/make-mecab-ipadic-neologd.sh.ORG 2020-06-19 14:37:24.771121187 +0900 | |
+++ kuromoji/kuromoji-ipadic-neologd/dictionary/mecab-ipadic-neologd/libexec/make-mecab-ipadic-neologd.sh 2020-06-19 12:27:44.056021722 +0900 | |
@@ -227,6 +227,8 @@ | |
patch < ${BASEDIR}/../misc/patch/Noun.csv.20170317.diff | |
patch < ${BASEDIR}/../misc/patch/Noun.name.csv.20170317.diff | |