- Copy
jupyter-lab.desktop
to~/.local/share/applications
- Copy
jupyter-lab.svg
to~/.local/share/icons
- Restart gnome-desktop session (Alt+F2 ->
restart
)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @param {{ model: DOMWidgetModel, el: HTMLElement }} context */ | |
export function render({ model, el }) { | |
const pull = () => { | |
const key = model.get("key"); | |
const value = model.get("value"); | |
if (localStorage.getItem(key) != value) { | |
if (value === null) { | |
localStorage.removeItem(key); | |
} else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
const QueryContext = React.createContext(); | |
export function QueryClientProvider({ children, client }) { | |
React.useEffect(() => { | |
const onFocus = () => { | |
client.queries.forEach((query) => { | |
query.subscribers.forEach((subscriber) => { | |
subscriber.fetch(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from argparse import ArgumentParser | |
huffman_table = [ | |
"1111110101100100000010", | |
"1111110101100100000011", | |
"1111110101100100000100", | |
"1111110101100100000101", | |
"1111110101100100000110", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ocaml/opam2:4.07 | |
# Avoid warnings by switching to noninteractive | |
ENV DEBIAN_FRONTEND=noninteractive | |
# Install dependencies | |
RUN sudo apt-get update \ | |
&& sudo apt-get install -y --no-install-recommends m4 gcc-multilib \ | |
&& sudo rm -rf /var/lib/apt/lists/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
check_installed() { | |
command -v "$1" >/dev/null 2>&1 || { | |
echo >&2 "$1 required but it's not installed. Aborting." | |
exit 1 | |
} | |
} | |
# Check required commands |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://minecraft.gamepedia.com/Tutorials/Server_startup_script | |
# https://gist.github.com/justinjahn/4fe65b552b0622662420928cc8ffc7c0 | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" | |
exit 1 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/lib/jvm/java-1.11.0-openjdk-amd64/bin/java -javaagent:/home/egor/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/192.6817.14/lib/idea_rt.jar=44289:/home/egor/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/192.6817.14/bin -Dfile.encoding=UTF-8 -classpath /home/egor/Documents/Bioinformatics/Bachelor/solver/target/classes:/home/egor/.m2/repository/com/ibm/cplex/12.9.0/cplex-12.9.0.jar:/home/egor/.m2/repository/com/ibm/cplex-native/12.9.0/cplex-native-12.9.0.jar:/home/egor/.m2/repository/org/sbml/libsbml/5.16.0/libsbml-5.16.0.jar:/home/egor/.m2/repository/net/sf/jopt-simple/jopt-simple/6.0-alpha-3/jopt-simple-6.0-alpha-3.jar:/home/egor/.m2/repository/org/ejml/ejml-all/0.38/ejml-all-0.38.jar:/home/egor/.m2/repository/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar:/home/egor/.m2/repository/org/ejml/ejml-core/0.38/ejml-core-0.38.jar:/home/egor/.m2/repository/org/ejml/ejml-fdense/0.38/ejml-fdense-0.38.jar:/home/egor/.m2/repository/org/ejml/ejml-ddense/0.38/ejml-ddense-0.38.jar:/home/egor/.m2/repository/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE OR REPLACE FUNCTION check_group() RETURNS TRIGGER AS | |
$BODY$ | |
DECLARE | |
group_count integer; | |
musician_count integer; | |
BEGIN | |
SELECT COUNT(*) FROM artist | |
WHERE artist.id = NEW."groupId" AND is_group = TRUE | |
LIMIT 1 | |
INTO group_count; |
NewerOlder