Skip to content

Instantly share code, notes, and snippets.

View fajarlabs's full-sized avatar
💭
loved technology & learn anything

Fajar Rizki Dwi Prasetya fajarlabs

💭
loved technology & learn anything
View GitHub Profile
@fajarlabs
fajarlabs / vigenere-cipher.py
Created September 1, 2020 09:38 — forked from gowhari/vigenere-cipher.py
vigenere cipher
# encoding: utf8
# vigenere cipher
# https://stackoverflow.com/a/2490718/1675586
def encode(key, string):
encoded_chars = []
for i in range(len(string)):
key_c = key[i % len(key)]
encoded_c = chr(ord(string[i]) + ord(key_c) % 256)
encoded_chars.append(encoded_c)
@discdiver
discdiver / jupyterlab_shortcuts.md
Last active May 25, 2024 16:19
Common Jupyter Lab Keyboard Shortcuts

If you are on a Mac, substitute command for control. Don't type the + (it means press both keys at once).

Shortcuts when in either command mode (outside the cells) or edit mode (inside a cell):

  • Shift + Enter run selected cell or cells - if no cells below, insert a code cell below

  • Ctrl + B toggle hide/show left sidebar

  • Ctrl + S save and checkpoint

  • Ctrl + Shift + S save as