Debugging info for https://lichess.org/forum/lichess-feedback/stockfish-wasm-engine-never-loads
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
#!/usr/bin/env python3 | |
""" | |
Read a CSV file from stdin and write a fixed CSV file to stdout. | |
Example: | |
$ cat zenhub.csv | ./fix-zenhub-csv.py > fixed.csv | |
$ fix-zenhub-csv.py zenhub.csv > fixed.csv | |
""" |
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
# We first create a spreadsheet with the ZenHub Pipeline and GitHub Project Column mapping | |
# Then, we moved all the issues manually into an "Unsorted" column in our GitHub Project | |
# Read through each of the issues that is in the Unsorted column and move them to the correct column | |
# if it's in the spreadsheet. | |
# To run: | |
# pip install python-dotenv ghzh-clients | |
import csv | |
import os |
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
<!-- OctoLinker Enabled --> | |
<tr> | |
<td id="L4" class="blob-num js-line-number" data-line-number="4"></td> | |
<td id="LC4" class="blob-code blob-code-inner js-file-line highlighted"> | |
<span class="pl-k">from</span> | |
<a data-pjax="true" class="octolinker-link" href="https://www.djangoproject.com"> | |
<span class="pl-s1">django</span>. | |
<span class="pl-s1">apps</span> | |
<span class="pl-s1"> | |
<span class="pl-token" data-hydro-click="{"event_type":"code_navigation.click_on_symbol","payload":{"action":"click_on_symbol","repository_id":4164482,"ref":"a9a7421ab83361746549d574ca13438ba93c95fe","language":"Python","originating_url":"https://github.com/django/django/blob/a9a7421ab83361746549d574ca13438ba93c95fe/django/contrib/auth/checks.py","user_id":85895}}" data-hydro-click-hmac="a987f9b6fad47553f0ed81d9247442e2c673144f316ce4e8b99e506dae4ab0f5">apps</span> |
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
''' | |
put this in $PROJECT/.tmp/home/.config/ptpython/config.py | |
''' | |
from __future__ import unicode_literals | |
from prompt_toolkit.keys import Keys | |
from ptpython.layout import CompletionVisualisation |
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
# shellcheck shell=bash disable=SC2164,SC1117 | |
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# Note: PS1 and umask are already set in /etc/profile. You should not | |
# need this unless you want different defaults for root. | |
# PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ ' | |
# umask 022 | |
export TERM='xterm-256color' |
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
FROM python:3.7 | |
# Install the dependencies for R | |
RUN apt-get update && apt-get install -y r-base r-base-dev r-recommended | |
# Add all of the scripts to the /opt/app/ path inside of the image | |
ADD . /opt/app/ | |
# Change the working directory inside of the image to /opt/app/ | |
WORKDIR /opt/app/ |
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 time | |
import requests | |
MAX_UNICODE = 0x10ffff | |
def rand_bytes(): | |
resp = requests.get("https://en.wikipedia.org/wiki/Special:Random") | |
content = resp.content |
NewerOlder