Skip to content

Instantly share code, notes, and snippets.

View JohnLyu94's full-sized avatar
🐈
Coding, day in and day out

Suxing JohnLyu94

🐈
Coding, day in and day out
  • Japan
  • 07:04 (UTC -12:00)
View GitHub Profile
@JohnLyu94
JohnLyu94 / iterm2.md
Created April 1, 2022 02:18 — forked from squarism/iterm2.md
An iTerm2 Cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@JohnLyu94
JohnLyu94 / batch.py
Created March 16, 2022 01:25
Batch Generator
import pickle
import random
import time
import itertools
import networkx as nx
import numpy as np
import tensorflow as tf
random.seed(42)
@JohnLyu94
JohnLyu94 / README.md
Created November 9, 2020 03:48 — forked from philwo/README.md
How to build TensorFlow 2.0 on Ubuntu 18.04 (x86_64) with Bazelisk

This is how I managed to build TensorFlow 2.0 on Ubuntu 18.04 (x86_64) with Bazelisk:

$ sudo apt update
$ sudo apt full-upgrade
$ sudo apt install curl

# Install Bazelisk.
$ sudo curl -Lo /usr/local/bin/bazel https://github.com/bazelbuild/bazelisk/releases/download/v1.1.0/bazelisk-linux-amd64
$ sudo chmod +x /usr/local/bin/bazel
@JohnLyu94
JohnLyu94 / ohmyzsh.md
Created November 9, 2020 02:44 — forked from yovko/ohmyzsh.md
ZSH (using Oh My ZSH) on Manjaro Linux

ZSH (using Oh My ZSH) on Manjaro Linux

0. If ZSH is not already installed on your Manjaro system you can do it with the command:

sudo pacman -Syu zsh

You do not need to install manjaro-zsh-config and all the other related packages like zsh-syntax-highlighting, zsh-history-substring-search, zsh-autosuggestions, etc., as we will use Oh My Zsh.