Skip to content

Instantly share code, notes, and snippets.

View terasakisatoshi's full-sized avatar

Satoshi Terasaki terasakisatoshi

View GitHub Profile
@Juanvulcano
Juanvulcano / imagenet_label_to_wordnet_synset.json
Last active June 10, 2021 21:30
ImageNet labels to wordnet synset identifier. JSON file parsed from: https://gist.github.com/fnielsen/4a5c94eaa6dcdf29b7a62d886f540372 . Can be used to organize Imagenet synsets to Wordnet's identifiers
{
"0": {
"id": "01440764-n",
"label": "tench, Tinca tinca",
"uri": "http://wordnet-rdf.princeton.edu/wn30/01440764-n"
},
"1": {
"id": "01443537-n",
"label": "goldfish, Carassius auratus",
"uri": "http://wordnet-rdf.princeton.edu/wn30/01443537-n"
@aviatesk
aviatesk / collectgen.jl
Last active May 4, 2020 12:21
`@collect` and `@generator` macro -- might be useful in competitive programming, etc...
using MacroTools
function decompose_forblk(forblk)
spec, body = forblk.args
i, itr = spec.args
return i, itr, body
end
"""
@tsuemura
tsuemura / cursor.ahk
Last active December 20, 2019 05:45
Windows買ったとき用メモ
F13 & A::Send,{Blind}{Left}
F13 & S::Send,{Blind}{Down}
F13 & W::Send,{Blind}{Up}
F13 & D::Send,{Blind}{Right}
F13 & J::Send,{Esc}
~j up::
Input, jout, I T0.1 V L1, {j}
if(ErrorLevel == "EndKey:J"){
SendInput, {BackSpace 2}
Send,{Esc}
@tikuta
tikuta / how-to-build-a-machine-with-four-gpus.md
Last active October 22, 2021 06:09
GPU を 4 枚積んだマシンをビルドする

GPU が 4 枚刺さるマシンが欲しい

さらに 10 GbE も欲しい、という要望が研究室であり、2 台ほど組んで知見を得たのでメモ

GPU は GTX 1080 Ti を前提としている

選択肢は 2 つある

  • Supermicro のラックマウントサーバーを買う(例えば、SYS-1029GQ-TRT)
    • 200 万円程度 (GTX 1080 Ti 想定)
    • ただし Geforce を搭載して売ってはくれないので自分で組み込む、または Quadro/Tesla/Titan などを買うことになり、その場合はさらに高くなる
  • Threadripper で自作する
@fevangelou
fevangelou / install_nano_on_macos_without_homebrew.sh
Last active February 18, 2025 16:51
Install Nano Editor (with syntax highlighting) on MacOS without using Homebrew [updated Jan 2024]
#!/bin/bash
# Install Nano Editor (with syntax highlighting) on MacOS without using Homebrew
# You can get the latest version number from https://www.nano-editor.org
# Instructions:
# - First off, download this Bash script from the browser & make it executable:
# $ chmod +x install_nano_on_macos_without_homebrew.sh
# - If you have "wget" installed (you most likely do), just run the script with:
# $ ./install_nano_on_macos_without_homebrew.sh
@rtaori
rtaori / idx_to_wnid.sh
Created March 18, 2019 08:02
Convert an Imagenet directory with folders labeled as indices to folders labeled as word net ids
mv 999/ n15075141/
mv 998/ n13133613/
mv 997/ n13054560/
mv 996/ n13052670/
mv 995/ n13044778/
mv 994/ n13040303/
mv 993/ n13037406/
mv 992/ n12998815/
mv 991/ n12985857/
mv 990/ n12768682/
.ipynb_checkpoints/
@LambdaNote
LambdaNote / writing.md
Last active May 18, 2025 16:18
ラムダノートでの原稿の書き方

ラムダノートでの原稿の書き方

記事の執筆には、Markdown形式を利用してください。 Markdownにはさまざまな流派がありますが、GitHub Flavored Markdown(https://github.github.com/gfm/ )をベースとした書式を採用します。

書籍を執筆するための形式として考えると、Markdownには不足している機能が多々あります。 しかし、次のような利点があるので、Markdownを採用することにします。

  • 最低限の構造しかないので、見た目でごまかせる余地が少ない
  • 原稿を著者自身が再利用してもらいやすくしたい
@lyakaap
lyakaap / debug.py
Created November 3, 2018 07:02
For debugging at the point exception raised without modifying scripts
import sys
import traceback
import pdb
"""
This module is for debugging without modifying scripts.
By just adding `import debug` to a script which you want to debug,
automatically pdb debugger starts at the point exception raised.
"""
@nulledge
nulledge / MPI-INF-3DHP.ipynb
Created October 29, 2018 07:49
MPI-INF-3DHP
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.