Skip to content

Instantly share code, notes, and snippets.

View kalpak92's full-sized avatar
:octocat:
Look at the Stars. Look how they shine for you

Kalpak Seal kalpak92

:octocat:
Look at the Stars. Look how they shine for you
  • Seattle, WA
  • 03:36 (UTC -07:00)
View GitHub Profile
@kalpak92
kalpak92 / jupyterlab_shortcuts.md
Created September 6, 2020 21:45 — forked from discdiver/jupyterlab_shortcuts.md
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

import java.util.*;
//contains the Node class for creating the node object
public class Node
{
Node left, right, child, parent;
int degree = 0;
boolean mark = false;
private String hash;
int key;
@kalpak92
kalpak92 / hello_server.ex
Created September 3, 2019 13:30
A simple Server tutorial to understand the GenServer
defmodule HelloServer do
use GenServer
## Server API
def init(initial_value) do # initailizing the state with the value passed
{:ok, initial_value}
end
# add the value to the state and return ok
def handle_call({:add, value}, _from, state) do