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
with open(inputfile, encoding='utf-8') as fh: | |
freqlist = json.load(fh) | |
words = [] | |
articleids = [] | |
for k,v in freqlist.items(): | |
words.append(k) | |
for vv in v: | |
a,f = vv.split(",") |
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
#!/bin/bash | |
# | |
# See https://pandanote.info/?p=8205 for details. | |
# | |
MODE="start" | |
if [ -n "$1" ]; then | |
MODE="stop" | |
fi |
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
Option Explicit | |
Public WithEvents CreateTableStatementForSQLite3 As Application | |
Private Sub Workbook_Open() | |
Set CreateTableStatementForSQLite3 = Application | |
End Sub | |
Private Sub Workbook_BeforeClose(Cancel As Boolean) | |
Set CreateTableStatementForSQLite3 = Nothing |
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=8075 for details. | |
'SQLのCreate文を作る。 | |
Option Explicit | |
Sub Create_CreateClause() | |
Dim columnname() As Variant | |
columnname = Array() | |
Dim rownum As Integer | |
rownum = Range(Selection.Address).Row | |
Dim rightMost As Integer |
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/env python3 | |
# | |
# See https://pandanote.info/?p=7456 | |
# | |
import bpy | |
import bmesh | |
import math | |
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
PORT=3000 | |
MODE_ENV=production | |
PASSWORD_SEED="openssl rand -base64 128 | head -1`" | |
MONGO_URI="mongodb://localhost:27017/growi" | |
FILE_UPLOAD=local | |
MATHJAX=1 |
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.exports = { | |
NODE_ENV: 'production', | |
// FORMAT_NODE_LOG: false, | |
NODE_OPTIONS: '--max_old_space_size=768', | |
MATHJAX: 1 | |
}; |
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
{ | |
"key1": ["a1","a2","a3"], | |
"key2": ["b1","b2","b3","b4"], | |
"key3": ["c1","c2","c3","c4","c5"], | |
"key4": ["d1","d2","d3","d4","d5","d6"], | |
"key5": ["e1","e2","e3"], | |
"key6": ["f1","f2","f3"], | |
"key7": ["a1","a2","a3"], | |
"key8": ["b1","b2","b3","b4"], | |
"key9": ["c1","c2","c3","c4","c5"], |
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
#!/bin/sh | |
# | |
# See https://pandanote.info/?p=3842 for details. | |
# | |
PATH=/usr/bin:/bin:/usr/sbin | |
DRY_RUN="" | |
LASTCHECK_DIR=/var/run/letsencrypt | |
LASTCHECK_FILE=${LASTCHECK_DIR}/lastcheck.txt | |
LOG_DIR=/var/log/letsencrypt |
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
28 23 * * 6 root /var/adm/bin/letsencrypt.sh <domain name(comma-separated)> 2>&1 1>/dev/null |