npm outdated --parseable --depth=0 | cut -d: -f4 | xargs npm install
Per the official documentation, here's what yarn upgrade --latest
does:
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset='utf-8'> | |
</head> | |
<body> | |
<script> | |
var xhr = new XMLHttpRequest(); | |
xhr.open('GET', 'https://archive.mozilla.org/pub/mobile/nightly/latest-mozilla-central-android-api-15/'); | |
xhr.onload = function() { |
#!/usr/bin/env python3 | |
import hashlib | |
def hash_string(string): | |
""" | |
Return a SHA-256 hash of the given string | |
""" | |
return hashlib.sha256(string.encode('utf-8')).hexdigest() |
npm outdated --parseable --depth=0 | cut -d: -f4 | xargs npm install
Per the official documentation, here's what yarn upgrade --latest
does:
This is an example grading script I use for more easily reviewing survey responses. It spins up a webpage showing all the responses that still need to be reviewed, with Approve/Reject buttons for each one.
This particular script assumes the survey being graded is being run on the Prolific platform. It therefore looks for a separate Prolific export file (in ~/Downloads
) and joins it with the provided data file (on the PROLIFIC_PID
field) in order to only show responses that (1) are associated with a Prolific submission and (2) have not already been graded. This portion can be removed, if needed.
When you approve or reject a response through this script, the associated ID gets added to approved.txt
or rejected.txt
, respectively. The contents of these files can then by copied into the bulk action interface on Prolific.
#!/usr/bin/env python | |
""" | |
This script patches the .tex generated by Quarto to replace usage of \longtable with vanilla tables, and then compiles that. | |
This is necessary because longtable doesn't support two-column layouts, and even after applying the hacky solution, the PDF output is mangled in such a way that entire pages are skipped. | |
""" | |
import os | |
import shutil |
#let template( | |
content, | |
) = [ | |
#set page( | |
paper: "us-letter", | |
margin: 1in, | |
) | |
#set text( | |
font: ( |