Generally, to import a python module programatically when you know the file's path, you could do something like this:
import importlib.util
import sys| ESD to ISO on macOS | |
| https://gist.github.com/b0gdanw/e36ea84828dbd19e03eff6158f1fc77c | |
| Converting ESD files to ISO images on macOS | |
| - download Parallels Desktop 18 for Mac Image from https://www.parallels.com/products/desktop/download/ | |
| - at the moment https://download.parallels.com/desktop/v18/18.2.0-53488/ParallelsDesktop-18.2.0-53488.dmg | |
| - open/mount the dmg | |
| - copy prl_esd2iso and libwimlib.1.dylib from /Volumes/Parallels\ Desktop\ 18/Parallels\ Desktop.app/Contents/ to /usr/local/bin/ and /usr/local/lib/ | |
| sudo ditto /Volumes/Parallels\ Desktop\ 18/Parallels\ Desktop.app/Contents/MacOS/prl_esd2iso /usr/local/bin/prl_esd2iso |
Step 1. Lower axpy.mlir to axpy.ll
mlir-opt -lower-affine -convert-loop-to-std -convert-std-to-llvm='emit-c-wrappers=1' axpy.mlir | mlir-translate --mlir-to-llvmir -o axpy.ll
Step 2. Get bitcode for the caller C.
clang -emit-llvm call_axpy.c -S -o call_axpy.bc
| 使用方法:Ctrl + F 直接輸入題目關鍵字搜尋即可 | |
| 請大家留言補充更多解答 或是修正答案,感謝各位的貢獻! | |
| 臺灣學術倫理教育資源中心 | |
| https://ethics.moe.edu.tw/exam/ | |
| 其他資源: |
写在前面
现在很多人都有魔法上网手段,常用的魔法上网工具有 SSR 和 V2rayN 两种。
这两种工具已经相当强大,能够使我们坐地日行八万里,访问我们喜爱的网站。
但是这两种工具也有美中不足之处:似乎它们只支持浏览器访问网页时走代理,
而对于除了浏览器以外的应用程序,就并没有通过代理,导致一些被墙的软件不能很好地使用。
| ######################### | |
| # ON SERVER # | |
| ######################### | |
| # install openssh-server | |
| sudo apt install openssh-server | |
| # start openssh-server | |
| sudo service ssh start |
| # BetterTouchTool reset trial time | |
| # ** All preference will reset | |
| echo "remove ~/Library/Preferences/com.hegenberg.BetterTouchTool.plist" | |
| rm -rf ~/Library/Preferences/com.hegenberg.BetterTouchTool.plist | |
| echo "Done" | |
| echo "remove ~/Library/Application\ Support/BetterTouchTool/" | |
| rm -rf ~/Library/Application\ Support/BetterTouchTool/ | |
| echo "Done" |