=LET(a,1,l,10,a*POWER(-1,MOD(SEQUENCE(l,1,0),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
| # (Generated by GPT-5) | |
| # Returns the directory of a script file, resolving any symlinks, | |
| # and normalizing to the physical path (no symlink components). | |
| # Usage: | |
| # SCRIPT_DIR="$(script_dir)" # when function is defined in the same script | |
| # SCRIPT_DIR="$(script_dir "${BASH_SOURCE[0]}")" # get caller's script dir (recommended if sourced from a lib) | |
| # Notes: | |
| # - Bash only (uses BASH_SOURCE and [[ ]]). | |
| # - Works on macOS and Linux without relying on 'readlink -f'. | |
| # - For process substitution or stdin execution, there may be no real file path. |
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
| an example to show how to include module only once in Julia |
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
| #!/usr/bin/env python3 | |
| import os | |
| import numpy as np | |
| import numpy.typing as npt | |
| import juliacall | |
| def main(): | |
| jl = juliacall.newmodule('Glob') | |
| jl.println('Hello, world! from Julia.') |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| { | |
| "latex-workshop.latex.recipes": [ | |
| { | |
| "name": "lualatex", | |
| "tools": [ | |
| "lualatex" | |
| ] | |
| }, | |
| { | |
| "name": "lualatex -> pythontex -> lualatex", |
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
| /* for EJJE Weblio */ | |
| div#sentence-index-foot-banner {display: none} | |
| #fv_ad_sp {display: none} | |
| div[class*="gliaplayer-container"] {display: none !important;} | |
| #content > aside:nth-child(1) {display: none} | |
| div.ads-loader {display: none} | |
| #content > div.division2 img {display: none} | |
| aside {display: none !important;} | |
| /* for https://www.weblio.jp/ */ |
NewerOlder