Skip to content

Instantly share code, notes, and snippets.

@YujiSODE
YujiSODE / errorBarLength_gnuplot.md
Last active September 12, 2023 04:15
Sample result of error bar lengths in gnuplot.

Error bar length sample in a log scale

Sample result of error bar lengths in gnuplot.

error bar length = y*0.5
@YujiSODE
YujiSODE / dirCSV.tcl
Created March 3, 2023 14:57
It generates a CSV file based on shallow structure in the target directory.
#dirCSV
#dirCSV.tcl
##===================================================================
# Copyright (c) 2023 Yuji SODE <yuji.sode@gmail.com>
#
# This software is released under the MIT License.
# See LICENSE or http://opensource.org/licenses/mit-license.php
##===================================================================
#It generates a CSV file based on shallow structure in the target directory.
#
@YujiSODE
YujiSODE / gnuplot_changeView_sample.gp
Created June 19, 2022 03:27
Memo: gnuplot_changeView_sample
#gnuplot_changeView_sample.gp
#to change viewing angle for splot
#
#show default view
show view
#splot sin(x)
#
#view: 0,0
#set view 0,0
#show view
@YujiSODE
YujiSODE / gnuplot_savePng_sample.gp
Last active June 21, 2022 10:35
Memo: gnuplot_savePng_sample
#gnuplot_savePng_sample.gp
#output png format in 2000x2000 px
set terminal png size 2000,2000
set output 'gnuplot_savePng_sample.png'
#
#plot sample: y=sin(x)
f(x)=sin(x)
plot f(x)
#
@YujiSODE
YujiSODE / logCount.tcl
Last active September 11, 2021 10:49
Tool to count frequencies of logarithm to a base
#logCount
#logCount.tcl
##===================================================================
# Copyright (c) 2021 Yuji SODE <yuji.sode@gmail.com>
#
# This software is released under the MIT License.
# See LICENSE or http://opensource.org/licenses/mit-license.php
##===================================================================
#Tool to count frequencies of logarithm to a base
#=== Synopsis ===
@YujiSODE
YujiSODE / imaginaryLandform_20180601.js
Created March 19, 2021 10:34
It can be used as a free landform map data (implementation in JavaScript). This is a map showing imaginary landform that expressed by heights in 19x26 grid on 1/25000 scaled map.
/*imaginaryLandform
* imaginaryLandform_20180601.js
*===================================================================
* Copyright (c) 2018-2021 Yuji SODE <yuji.sode@gmail.com>
*
* This software is released under the MIT License.
*===================================================================
* It can be used as a free landform map data (implementation in JavaScript).
* This is a map showing imaginary landform that expressed by heights in 19x26 grid on 1/25000 scaled map.
*----------------------------------------------
@YujiSODE
YujiSODE / memo_favicon.md
Last active March 24, 2021 10:43
memo about favicon

memo: Favicon

Examples

<link rel="icon" href="favicon.png">

from MDN Web Docs

A favicon (favorite icon) is a tiny icon included along with a website, which is displayed in places like the browser's address bar, page tabs and bookmarks menu. Note, however, that most modern browsers replaced the favicon from the address bar by an image indicating whether or not the website is using HTTPS. Usually, a favicon is 16 x 16 pixels in size and stored in the GIF, PNG, or ICO file format. They are used to improve user experience and enforce brand consistency. When a familiar icon is seen in the browser's address bar, for example, it helps users know they are in the right place. >

@YujiSODE
YujiSODE / consoleRGB.js
Created January 27, 2021 03:05
Tool to investigate color frequency of a canvas element through debugging console.
/*consoleRGB
* consoleRGB.js
*===================================================================
* Copyright (c) 2021 Yuji SODE <yuji.sode@gmail.com>
*
* This software is released under the MIT License.
* See LICENSE or http://opensource.org/licenses/mit-license.php
*===================================================================
* Tool to investigate color frequency of a canvas element through debugging console.
*
@YujiSODE
YujiSODE / truthyAndFalsy_JS.md
Last active January 23, 2021 10:33
memo: Truthy values and falsy values in JavaScript

memo: Truthy values and falsy values in JavaScript

Truthy values

Value Boolean value Example
true true !!(true); //true
1 true !!(1); //true
-1 true !!(-1); //true
3.14 true !!(3.14); //true
-3.14 true !!(-3.14); //true
@YujiSODE
YujiSODE / hexFromCanvas.js
Created January 16, 2021 08:49
Tool to extract RGB values from canvas element.
/*hexFromCanvas
* hexFromCanvas.js
*===================================================================
* Copyright (c) 2021 Yuji SODE <yuji.sode@gmail.com>
*
* This software is released under the MIT License.
* See LICENSE or http://opensource.org/licenses/mit-license.php
*===================================================================
* Tool to extract RGB values from canvas element.
* Returned value is csv text map, that is composed of hexadecimal numbers, comma (,) and newline character