Please note that the implementations here are simple PoCs, and is subject to implementation errors, bugs, over simplifications etc..
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
| #http://jupyter-notebook.readthedocs.io/en/stable/examples/Notebook/Importing%20Notebooks.html | |
| import io, os, sys, types | |
| from typing import override | |
| import importlib, importlib.abc, importlib.util | |
| from IPython import get_ipython | |
| from nbformat import read | |
| from IPython.core.interactiveshell import InteractiveShell |
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
| // ==UserScript== | |
| // @name Disable Back Button | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description Disables the back button for specified URLs | |
| // @author You | |
| // @match https://app.dataannotation.tech/workers/tasks/* | |
| // @grant none | |
| // ==/UserScript== | |
| // Replace "your-target-website-url-here" with the actual URLs you want to target |
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 os | |
| import math | |
| import tempfile | |
| import numpy as np | |
| from CSXCAD import ContinuousStructure, AppCSXCAD_BIN | |
| from CSXCAD.CSProperties import CSPropMetal | |
| from openEMS import openEMS | |
| from openEMS.physical_constants import C0 | |
| unit = 1e-3 |
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 os | |
| import math | |
| import tempfile | |
| from pprint import pprint, pformat | |
| import numpy as np | |
| from matplotlib import pyplot | |
| from CSXCAD import ContinuousStructure, AppCSXCAD_BIN | |
| from CSXCAD.CSProperties import CSPropMetal |
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
| PROJECT(LatexProject NONE) | |
| CMAKE_MINIMUM_REQUIRED(VERSION 3.11) | |
| FIND_PACKAGE(LATEX) | |
| IF(LATEX_FOUND) | |
| IF(LUALATEX__FOUND) | |
| MESSAGE(STATUS "lualatex found - ${LUALATEX_COMPILER}") | |
| ENDIF() | |
| IF(BIBTEX_FOUND) | |
| MESSAGE(STATUS "bibtex found - ${BIBTEX_COMPILER}") |
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/zsh | |
| # A version of the 'timeout' command that works with shell functions | |
| # | |
| # Usage: | |
| # source timeout_fn.sh | |
| # timeout_fn DURATION COMMAND [ARG]... | |
| timeout_fn () { | |
| local timeout=$1 | |
| shift |
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
| # Local: | |
| # https://stackoverflow.com/questions/21151178/shell-script-to-check-if-specified-git-branch-exists | |
| # test if the branch is in the local repository. | |
| # return 1 if the branch exists in the local, or 0 if not. | |
| function is_in_local() { | |
| local branch=${1} | |
| local existed_in_local=$(git branch --list ${branch}) | |
| if [[ -z ${existed_in_local} ]]; then | |
| echo 0 |
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
| # First, we need to find our device. BEFORE inserting your USB drive, run the | |
| # following: | |
| diskutil list | |
| # This will output a bunch of info about all of the disk drives connected to | |
| # your Mac. Each entry will have a header in the form "/dev/diskX", where X is | |
| # some number starting at 0. Now, insert your USB drive and run the command | |
| # again. You should see a new entry. Make note of the name (ie, /dev/diskX). | |
| diskutil list |
NewerOlder