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/ymd.sh 2020-06-19 13:42:58.453048740 +0900 | |
@@ -0,0 +1,4 @@ | |
+#!/bin/sh | |
+BUILD_DIR=`find dictionary/mecab-ipadic-neologd/build -type d -regex ".*-neologd-[0-9]+" -print` | |
+NEW_BUILD_DIR=`echo $BUILD_DIR | perl -pe 's/-\d+$//g'` | |
+ln -s `basename $BUILD_DIR` $NEW_BUILD_DIR | |
--- kuromoji/kuromoji-ipadic-neologd/src/test/java/com/atilika/kuromoji/ipadic/neologd/TokenizerTest.java.ORG 2020-06-19 14:11:39.984931179 +0900 | |
+++ kuromoji/kuromoji-ipadic-neologd/src/test/java/com/atilika/kuromoji/ipadic/neologd/TokenizerTest.java 2020-06-19 14:11:48.113053245 +0900 | |
@@ -290,6 +290,7 @@ |
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-face-attribute 'default nil :family "HackGenNerd" :height 110) | |
(set-fontset-font nil '(#x80 . #x10ffff) (font-spec :family "HackGenNerd")) |
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 | |
import sys | |
import math | |
args = sys.argv | |
x = float(args[1]) | |
n = math.floor(math.log10(x)) | |
y = math.floor(x/math.pow(10,n))*math.pow(10,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
<?php | |
$x = intval($argv[1]); | |
$n = floor(log10($x)); | |
$y = floor($x/pow(10,$n))*pow(10,$n); | |
echo $y."\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=6259 for details. | |
// | |
package info.pandanote.nbonaccitest | |
import scopt.OParser | |
import org.slf4j.LoggerFactory | |
import scala.collection.mutable.ListBuffer |
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://sidestory.pandanote.info/nbonacci.html for details. | |
# | |
import sys | |
import re | |
if (len(sys.argv) < 3 or re.match(r'^[1-9]\d*$',sys.argv[1]) == None or re.match(r'^[1-9]\d*$',sys.argv[2]) == None): | |
print("Usage: nbonacci.py <number of terms to compute the next term> <number of terms to calculate>") |
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
package info.pandanote.scalajhttptest | |
// See https://pandanote.info/?p=6186 for details. | |
import java.net.{ URLEncoder, URLDecoder } | |
import scalaj.http._ | |
import play.api.libs.json._; | |
case class CustomResponse(statusCode: Int, status: String, body: String) |
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://sidestory.pandanote.info/php_get_class.html for details. | |
*/ | |
class Hoge { | |
public function name() { | |
return get_class($this); | |
} | |
} |
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=5966 for details. | |
# | |
import sys | |
import os | |
import re | |
import json | |
import httplib2 | |
from datetime import datetime |
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=5966 for details. | |
drop table if exists crypto_currency_info_cache; | |
create table crypto_currency_info_cache ( | |
id int (11) not null auto_increment, | |
product_code varchar(40) unique, | |
info_at datetime, | |
tick_id int, | |
best_bid double, | |
best_ask double, | |
best_bid_size double(20,8), |