Skip to content

Instantly share code, notes, and snippets.

View eiennohito's full-sized avatar

Arseny Tolmachev eiennohito

  • Hakuhodo Technologies
  • Osaka, Japan
View GitHub Profile
@eiennohito
eiennohito / oom.html
Created August 29, 2023 22:45
This doc gives an OOM error
HTTP/1.1 200 OK
Server: nginx
Date: Sun, 15 Sep 2019 16:06:58 GMT
Content-Type: text/html; charset=UTF-8
X-Crawler-Content-Length: 33203
Content-Length: 690436
Connection: keep-alive
Keep-Alive: timeout=20
X-Powered-By: PHP/5.3.29-pl0-gentoo
Set-Cookie: PHPSESSID=cce5cdd583ae618129097dcbb8d9e5de; path=/
import com.worksap.nlp.sudachi.Config
import com.worksap.nlp.sudachi.DictionaryFactory
import com.worksap.nlp.sudachi.Tokenizer
import java.nio.file.Path
fun main() {
val config = Config.defaultConfig()
config.systemDictionary(Path.of("/path/to/system/dictionary"))
val dic = DictionaryFactory().create(config)
val tokenizer = dic.create()
~ wget https://wg21.link/P2674
--2023-02-15 18:59:48-- https://wg21.link/P2674
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving wg21.link (wg21.link)... 149.210.133.119
Connecting to wg21.link (wg21.link)|149.210.133.119|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2674r1.pdf [following]
--2023-02-15 18:59:49-- http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2674r1.pdf
Resolving www.open-std.org (www.open-std.org)... 192.38.78.170
Connecting to www.open-std.org (www.open-std.org)|192.38.78.170|:80... connected.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
global lang_ru := DllCall("LoadKeyboardLayout", "Str", "00000419", "Int", 0x3)
;MsgBox % Format("{:X} {:X}", lang_ru, ErrorLevel)
global lang_ja := DllCall("LoadKeyboardLayout", "Str", "00000411", "Int", 0x3)
;MsgBox % Format("{:X} {:X}", lang_ja, ErrorLevel)
SwitchLang() {
➜ jmh java -jar jmh.jar ".*DoubleArray.*" -prof=gc
# JMH version: 1.34
# VM version: JDK 17-testing, OpenJDK 64-Bit Server VM, 17-testing+0-builds.shipilev.net-openjdk-jdk17-b12-20210925
# VM invoker: /home/arseny/work/tools/jdk/jdk-17/bin/java
# VM options: <none>
# Blackhole mode: compiler (auto-detected, use -Djmh.blackhole.autoDetect=false to disable)
# Warmup: 3 iterations, 5 s each
# Measurement: 7 iterations, 5 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
diff --git a/054.supy b/062.supy
index f6784c8..38fdc44 100644
--- a/054.supy
+++ b/062.supy
@@ -2379,7 +2379,7 @@ EOS
いう 動詞,一般,*,*,五段-ワア行,終止形-一般 言う
。 補助記号,句点,*,*,*,* 。
EOS
-ぬ 助動詞,*,*,*,助動詞-ヌ,終止形-一般 ず
+ぬ 名詞,普通名詞,一般,*,*,* ぬ
diff --git a/054.supy b/062.supy
index f6784c8..43f4e6e 100644
--- a/054.supy
+++ b/062.supy
@@ -1034,7 +1034,7 @@ EOS
の 助詞,格助詞,*,*,*,* の
指定 名詞,普通名詞,サ変可能,*,*,* 指定
に 助詞,格助詞,*,*,*,* に
-teal 名詞,普通名詞,一般,*,*,* teal
+teal 補助記号,一般,*,*,*,* teal
Initialize engine version: 2018.2.20f1 (cef3e6c0c622)
GfxDevice: creating device client; threaded=1
Boolean HIDBuildMultiDeviceList(const UInt32 *, const UInt32 *, int): Couldn’t open IOHIDManager.Renderer: AMD Radeon Pro 560 OpenGL Engine
Vendor: ATI Technologies Inc.
Version: 4.1 ATI-2.11.20
GLES: 0
GL_ARB_blend_func_extended GL_ARB_draw_buffers_blend GL_ARB_draw_indirect GL_ARB_ES2_compatibility GL_ARB_explicit_attrib_location GL_ARB_gpu_shader_fp64 GL_ARB_gpu_shader5 GL_ARB_instanced_arrays GL_ARB_internalformat_query GL_ARB_occlusion_query2 GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_separate_shader_objects GL_ARB_shader_bit_encoding GL_ARB_shader_subroutine GL_ARB_shading_language_include GL_ARB_tessellation_shader GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_cube_map_array GL_ARB_texture_gather GL_ARB_texture_query_lod GL_ARB_texture_rgb10_a2ui GL_ARB_texture_storage GL_ARB_texture_swizzle GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_vertex_attrib
import tensorflow as tf
import os
sess = tf.Session()
x = tf.placeholder(tf.float32, shape=[])
y = tf.sin(x)
tf.summary.scalar('y', y)
merged = tf.summary.merge_all()
os.makedirs('/tmp/tf-sin', exist_ok=True)
#include "core/impl/feature_impl_combine.h"
#include "core/impl/feature_impl_ngram_partial.h"
#include "core/impl/feature_impl_prim.h"
#include "core/impl/feature_impl_ngram_partial_kernels.h"
#include "t9_mini.cg.h"
namespace jumanpp_generated {
namespace {
class NgramFeatureStaticApply_JppT9Mini final : public ::jumanpp::core::features::impl::NgramFeatureApplyImpl < NgramFeatureStaticApply_JppT9Mini > {
public :