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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>モニター配置シミュレーター</title> | |
<style> | |
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans JP", sans-serif; } | |
.row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .5rem; } | |
label { white-space: nowrap; } | |
input[type="number"] { width: 5rem; } |
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
function checkDuplicatesInColumnA() { | |
const sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(); | |
const values = sheet.getRange("A1:A" + sheet.getLastRow()).getValues().flat(); | |
const seen = new Set(); | |
const duplicates = []; | |
for (const value of values) { | |
if (seen.has(value)) { | |
duplicates.push(value); |
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
import os | |
from PIL import Image | |
# 定義カラー(RGB) | |
COLOR_454351 = (0x45, 0x43, 0x51) # #454351 | |
COLOR_DCDCE0 = (0xdc, 0xdc, 0xe0) # #dcdce0 | |
TRANSPARENT = (0, 0, 0, 0) # 完全透過 | |
# 入力・出力ディレクトリの指定 | |
input_dir = './lagtrain/2' |
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
\documentclass{ltjsarticle} | |
\usepackage[top = 10truemm, bottom = 20truemm, left = 15truemm, right = 15truemm]{geometry} | |
\usepackage{luacode} | |
\usepackage{tikz, pgfplots} | |
\pgfplotsset{compat = 1.16} | |
\begin{luacode*} |
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
!rm -rf ./all | |
!mkdir -p all | |
# Gnuplot スクリプト | |
# 出力形式の設定 | |
set terminal pngcairo size 1600,1200 enhanced font 'Verdana,20' | |
set output 'all/frame_%04d.png' | |
# グラフの範囲設定 |
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
#define N 1260L | |
#include <stdio.h> | |
#include <math.h> | |
#include <stdbool.h> | |
double yokogaki(double y, double x) { | |
return (x-1)*y + sqrt(pow(x-1, 2)+1.0)*(y-1); | |
} |
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
<html> | |
<body> | |
<canvas id='canvas'></canvas> | |
<div id="square"></div> | |
<style> | |
html,body { | |
overflow: hidden; |
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
set terminal pdfcairo color enhanced font "Arial,12" | |
set samples 1000 | |
set ylabel 'Intensity' | |
set xlabel 'energy transfer / meV' | |
#set style fill transparent solid 0.50 noborder | |
set style fill solid 0.50 noborder | |
set key vertical maxrows 2 right top | |
set noautoscale xy | |
set noytics |
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
#forward-button, #back-button, #context-sendpagetodevice, #context-inspect-a11y, #context-savepage, #context-selectall, #context-viewsource, #context-inspect, #context-screenshot, #context-openlinkintab, #context-openlink, #context-openlinkprivate, #context-bookmarklink, #context-sendlinktodevice, #context-viewpartialsource-selection, #context-sendimage, #context-setDesktopBackground, #unified-extensions-button, #star-button, #PanelUI-menu-button, menuseparator { display: none !important; } | |
:root { | |
--tab-min-height: 25px !important; | |
--urlbar-min-height: 20px !important; | |
} | |
.browserContainer > findbar { | |
position: fixed; | |
top: 1; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
</head> | |
<body> | |
<form> | |
<table> | |
<tr> | |
<td align="right"><label for="input_targets">targets :</label></td> |
NewerOlder