Skip to content

Instantly share code, notes, and snippets.

View leon-joel's full-sized avatar

nori leon-joel

View GitHub Profile
@leon-joel
leon-joel / Program.cs
Last active June 1, 2020 16:17
[C#] 様々なロック方法のパフォーマンス検証
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
//
// ★元ネタは @tadokoro さんのQiita記事です!感謝!★
@leon-joel
leon-joel / ChronoHelper.h
Last active October 9, 2018 12:20
C++11 auto is much faster than std::function.
#pragma once
#include <chrono>
using namespace std::chrono;
inline double get_time_sec(void) {
return static_cast<double>(duration_cast<nanoseconds>(steady_clock::now().time_since_epoch()).count()) / 1000000000;
}
// ref: [(c++11)chronoを用いた時間計測(タイムスタンプのとり方) - Qiita](https://qiita.com/hurou927/items/a2d63837e731713c7a22)
@leon-joel
leon-joel / userChrome.css
Created September 8, 2018 00:21
userChrome.css for Windows
@charset "UTF-8";
/* https://stackoverflow.com/questions/47361535/how-can-i-have-multiple-rows-with-tabs-on-firefox-57-tab-mix-plux-add-on-no-lo */
/* If you find the first row of tabs is invisible, open about:config and change the value of browser.tabs.drawInTitlebar from the default value of true to false. */
#tabbrowser-tabs .tabbrowser-arrowscrollbox,
#tabbrowser-tabs .arrowscrollbox-scrollbox {
display: block;
}
@leon-joel
leon-joel / userChrome.css
Created September 8, 2018 00:16
userChrome.css for Firefox62 for macos
@charset "UTF-8";
/* https://stackoverflow.com/questions/47361535/how-can-i-have-multiple-rows-with-tabs-on-firefox-57-tab-mix-plux-add-on-no-lo */
/* If you find the first row of tabs is invisible, open about:config and change the value of browser.tabs.drawInTitlebar from the default value of true to false. */
/* 効かない */
/* :root {
--tab-min-height: 30px; /* タブの高さ ※配布元のものより少し大きくしています */
} */