Skip to content

Instantly share code, notes, and snippets.

View 74th's full-sized avatar

Atsushi Morimoto 74th

View GitHub Profile
@tatzyr
tatzyr / image.md
Last active July 5, 2023 12:19
Markdownで画像を表示する

Markdownで画像を表示する

Markdownでは文書中に画像ファイルを表示することができる。GitHubでReadmeに使うと見栄えがいい。

エビフライトライアングル

Markdown記法で書くならこんな感じ。"サンプル"の部分は省略可能。

![エビフライトライアングル](http://i.imgur.com/Jjwsc.jpg "サンプル")
@mamemomonga
mamemomonga / macvim-kaoriya-cli.md
Last active February 24, 2018 17:16
macvim-kaoriyaをコンソールで起動する

macvim-kaoriyaをターミナルから起動する

OSX El CapitanのデフォルトのVimは7.3で、7.4に依存するdeinを使いたくなったのでKaoriYa Vimをコンソールから利用する方法。

前提

  • macvim-kaoriya 導入済み
  • /bin にスクリプトを入れる。/bin へパスが通っていて、それが優先的に読み込まれていること

.bashrcの例

export PATH=$HOME/bin:$PATH

@eshelman
eshelman / latency.txt
Last active May 7, 2024 17:49 — forked from jboner/latency.txt
HPC-oriented Latency Numbers Every Programmer Should Know
Latency Comparison Numbers
--------------------------
L1 cache reference/hit 1.5 ns 4 cycles
Floating-point add/mult/FMA operation 1.5 ns 4 cycles
L2 cache reference/hit 5 ns 12 ~ 17 cycles
Branch mispredict 6 ns 15 ~ 20 cycles
L3 cache hit (unshared cache line) 16 ns 42 cycles
L3 cache hit (shared line in another core) 25 ns 65 cycles
Mutex lock/unlock 25 ns
L3 cache hit (modified in another core) 29 ns 75 cycles
@smitshilu
smitshilu / Tensorflow_Build_GPU.md
Last active June 9, 2020 18:27
Tensorflow 1.4 Mac OS High Sierra 10.13 GPU Support

Tensorflow

System information

  • OS - High Sierra 10.13
  • Tensorflow - 1.4
  • Xcode command line tools - 8.2 (Download from here: Xcode - Support - Apple Developer & Switch to different clang version: sudo xcode-select --switch/Library/Developer/CommandLineTools & check version: clang -v)
  • Cmake - 3.7
  • Bazel - 0.7.0
@MatthiasWinkelmann
MatthiasWinkelmann / Tensorflow_Build_GPU.md
Last active May 20, 2019 15:21 — forked from smitshilu/Tensorflow_Build_GPU.md
Tensorflow 1.7 Mac OS Sierra 10.12 GPU Support

Tensorflow

System information

  • OS - Sierra 10.12
  • Tensorflow - 1.7.0
  • Xcode command line tools - 8.2 (Download from here: Xcode - Support - Apple Developer & Switch to different clang version: sudo xcode-select --switch/Library/Developer/CommandLineTools & check version: clang -v)
  • Cmake - 3.11
  • Bazel - 0.11.1
@zidizei
zidizei / toggle-terminal.sh
Created May 23, 2019 20:58
Toggle your GNOME Terminal window with a keyboard shortcut under Linux.
#!/bin/bash
function toggle_terminal () {
Terminal_Window_ID=`xdotool search --all --onlyvisible --classname gnome-terminal`
# echo $Terminal_Window_ID
if [[ -z "$Terminal_Window_ID" ]]
then
@niw
niw / README.en.md
Last active July 5, 2024 14:28
How to run Windows 10 on ARM or Ubuntu for ARM64 in QEMU on Apple Silicon Mac

How to run Windows 10 on ARM or Ubuntu for ARM64 in QEMU on Apple Silicon Mac

Here is easy steps to try Windows 10 on ARM or Ubuntu for ARM64 on your Apple Silicon Mac. Enjoy!

NOTE: that this is current, 10/1/2021 state.

Running Windows 10 on ARM

  1. Install Xcode from App Store or install Command Line Tools on your Mac