Skip to content

Instantly share code, notes, and snippets.

View fujii's full-sized avatar

Fujii Hironori fujii

View GitHub Profile
@fujii
fujii / Reduced DFGArgumentsEliminationPhase.cpp
Created February 27, 2018 06:06
DFGArgumentsEliminationPhase.cpp can't compile with clang -fdelayed-template-parsing
#include <type_traits>
#include <utility>
#include <functional>
template<typename Functor>
class RecursableLambda {
public:
explicit RecursableLambda(Functor&& functor)
: m_functor(std::forward<Functor>(functor))
{
diff --git a/Tools/gtk/jhbuild.modules b/Tools/gtk/jhbuild.modules
index 9c32942720f..8ee13132ad2 100644
--- a/Tools/gtk/jhbuild.modules
+++ b/Tools/gtk/jhbuild.modules
@@ -91,7 +91,7 @@
</cmake>
<autotools id="cairo"
- autogen-sh="configure">
+ autogen-sh="autogen.sh">
@fujii
fujii / wincairo-build.txt
Created March 1, 2018 07:03
WebKit WinCairo port CMake Visual Studio build log
1>------ Build started: Project: ZERO_CHECK, Configuration: Release x64 ------
1>Checking Build System
1>CMake does not need to re-run because C:/webkit/gb/WebKitBuild/Release/CMakeFiles/generate.stamp is up-to-date.
1>CMake does not need to re-run because C:/webkit/gb/WebKitBuild/Release/Source/CMakeFiles/generate.stamp is up-to-date.
1>CMake does not need to re-run because C:/webkit/gb/WebKitBuild/Release/Source/WTF/CMakeFiles/generate.stamp is up-to-date.
1>CMake does not need to re-run because C:/webkit/gb/WebKitBuild/Release/Source/WTF/wtf/CMakeFiles/generate.stamp is up-to-date.
1>CMake does not need to re-run because C:/webkit/gb/WebKitBuild/Release/Source/JavaScriptCore/CMakeFiles/generate.stamp is up-to-date.
1>CMake does not need to re-run because C:/webkit/gb/WebKitBuild/Release/Source/JavaScriptCore/shell/CMakeFiles/generate.stamp is up-to-date.
1>CMake does not need to re-run because C:/webkit/gb/WebKitBuild/Release/Source/ThirdParty/ANGLE/CMakeFiles/generate.stamp is up-to-date.
1>CMake does not
#include <cstdio>
struct Foo {
Foo(int i) : x(i) { }
void test();
int x;
};
struct Wrap {
Wrap(Foo* p) : m_p(p) { }
@fujii
fujii / transparent.html
Created May 14, 2018 02:46
transparent test
<style>
div {
font: bold 24px serif;
text-align: center;
border-radius: 15px;
color: white;
background-color: rgba(200, 54, 54, 0.5);
}
.a {
background-color: rgba(54, 200, 54, 0.7);
@fujii
fujii / param.txt
Created May 23, 2018 22:18
XGBoost の hyper parameter
J:
自分はXGBoostですが、depthは5~10辺りを最初にサーチして、他は、
min_child_weight: 1
subsample: 0.9
colsample_bylevel: 0.2
lambda: 0.6
alpha: 0.4
辺りを初期値に探索するって感じです。
etaは序盤は0.1か0.05、最終的には0.02ぐらいまで下げるイメージですね。
(タスクやデータ量にもよりますが、上に書いてないその他のパラメータはそんなにいじらないことが多い。) (edited)
#
# Doing 'import nltk.corpus' in a fuction leaks all objects referred by all local variables.
# In this test case, lists referred by 'x' and 'y' will be leaked.
# python -X tracemalloc=20 nltk_corpus_leak.py
#
import tracemalloc
import gc
def foo():
import nltk.corpus
learning_rate num_leaves score
0.1 300.0 0.21891691699607926
0.1 200.0 0.2190053141118136
0.1 400.0 0.219054153823235
0.1 500.0 0.21909130174679087
0.1 100.0 0.2193034541565235
0.2 200.0 0.22002260939765125
0.2 300.0 0.22015521996136436
0.2 500.0 0.22016432901817892
0.2 400.0 0.220226759088758
@fujii
fujii / attr.txt
Last active July 12, 2018 04:18
UTF-16
'http://svn.webkit.org/repository/webkit/trunk/LayoutTests/dom/xhtml/level3/core/documentgetinputencoding03.xhtml' の属性:
svn:eol-style
native
'http://svn.webkit.org/repository/webkit/trunk/LayoutTests/dom/xhtml/level3/core/documentgetxmlencoding03.xhtml' の属性:
svn:mime-type
text/xml
'http://svn.webkit.org/repository/webkit/trunk/LayoutTests/dom/xhtml/level3/core/entitygetinputencoding02.xhtml' の属性:
svn:eol-style
native
'http://svn.webkit.org/repository/webkit/trunk/LayoutTests/dom/xhtml/level3/core/entitygetxmlversion02.xhtml' の属性:
@fujii
fujii / bug183788-log.txt
Created July 24, 2018 05:22
Build log of WebKit Bug 183788
fujii@fujihiro-ubuntu-vmw $ cmake --version
cmake version 3.10.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
fujii@fujihiro-ubuntu-vmw $ ninja --version
1.8.2
fujii@fujihiro-ubuntu-vmw $ ./Tools/Scripts/build-webkit --gtk --release --makeargs="-j1 Source/JavaScriptCore/CMakeFiles/LLIntOffsetsExtractor.dir/llint/LLIntOffsetsExtractor.cpp.o"
+ /home/fujii/work/webkit/ga/Tools/jhbuild/jhbuild-wrapper --gtk run cmake -DPORT="GTK" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Release -G Ninja -DDEVELOPER_MODE=ON -DENABLE_EXPERIMENTAL_FEATURES=ON "/home/fujii/work/webkit/ga"
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0