This file contains 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 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
#Copyright 2022 Bryan J. Lunt <[email protected]> | |
# | |
#Licensed under the Apache License, Version 2.0 (the "License"); | |
#you may not use this file except in compliance with the License. | |
#You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
#Unless required by applicable law or agreed to in writing, software | |
#distributed under the License is distributed on an "AS IS" BASIS, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 | |
#SBATCH --time=04:00:00 | |
#SBATCH --nodes=1 | |
#SBATCH --ntasks-per-node=12 | |
#SBATCH --exclusive | |
#SBATCH --job-name subjob-sched-test | |
#SBATCH -p secondary | |
module load openmpi/4.1.0-gcc-7.2.0-pmi2 gcc cmake |
This file contains 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 numpy as np | |
def LU_recursive(A): | |
"""LU factorization without pivoting. Will fail if any diagonal is 0. | |
Recursive implementation. | |
""" | |
L = np.zeros_like(A,dtype=np.float_) | |
U = np.eye(*A.shape,dtype=np.float_) | |
a = A[0,0] |
This file contains 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
#include <iostream> | |
#include <cstdio> | |
#include <cstdlib> | |
#include <cmath> | |
#include <cassert> | |
#include <random> | |
#include <omp.h> |
This file contains 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
# for gist naming purposes |
This file contains 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
\documentclass[12pt]{amsart} | |
\usepackage{geometry} % see geometry.pdf on how to lay out the page. There's lots. | |
\geometry{a4paper} % or letter or a5paper or ... etc | |
% \geometry{landscape} % rotated page geometry | |
% See the ``Article customise'' template for come common customisations | |
\title{An example of using bibtex} | |
\author{Bryan Lunt} | |
\date{2017-6-20} % delete this line to display the current date |
This file contains 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 matplotlib | |
matplotlib.use('webagg') | |
import numpy as np | |
from scipy.special import binom | |
import matplotlib.pyplot as plt | |
from matplotlib.lines import Line2D |
This file contains 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
class FigHolder(object): | |
"""Base class for all the figure holders we might implement.""" | |
def __init__(self, thefig): | |
self.fig = thefig | |
def add_subplot(self): | |
pass | |
def show(self): | |
self.fig.tight_layout() |
NewerOlder