This file contains hidden or 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
| #include <iostream> | |
| #include <random> | |
| #include <ctime> | |
| int main() { | |
| std::random_device rd; | |
| std::mt19937_64 gen(rd()); | |
| std::uniform_real_distribution<double> dis(0.0, 1.0); | |
| double y = 1.0 / 100.0; |
This file contains hidden or 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
| local wezterm = require("wezterm") | |
| local default_keybinds = { | |
| { key = "c", mods = "CTRL|SHIFT", action = wezterm.action({ CopyTo = "Clipboard" }) }, | |
| { key = "v", mods = "CTRL|SHIFT", action = wezterm.action({ PasteFrom = "Clipboard" }) }, | |
| { key = "Insert", mods = "SHIFT", action = wezterm.action({ PasteFrom = "PrimarySelection" }) }, | |
| { key = "=", mods = "CTRL", action = "ResetFontSize" }, | |
| { key = "+", mods = "CTRL", action = "IncreaseFontSize" }, | |
| { key = "-", mods = "CTRL", action = "DecreaseFontSize" }, | |
| { key = " ", mods = "CTRL|SHIFT", action = "QuickSelect" }, |
This file contains hidden or 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
| # Conky, a system monitor, based on torsmo | |
| # | |
| # Any original torsmo code is licensed under the BSD license | |
| # | |
| # All code written since the fork of torsmo is licensed under the GPL | |
| # | |
| # Please see COPYING for details | |
| # | |
| # Copyright (c) 2004, 2013, Hannu Saransaari and Lauri Hakkarainen | |
| # Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS) |
This file contains hidden or 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
| /** Qt5を使ってSVGをPNGに描画してみるテスト */ | |
| #include "QtSvg/QtSvg" | |
| #include <iostream> | |
| #include <memory> | |
| int main(int argc, char **argv) | |
| { | |
| if (argc != 2) { | |
| std::cerr << argv[0] << " <svg filename>" << std::endl; |
This file contains hidden or 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
| #include "param.h" | |
| enum class FooFlag : int { | |
| A = 1, | |
| B = 1 << 1 | |
| }; | |
| void bar(Param<FooFlag> param) { | |
| return; | |
| } |