applyTo |
---|
** |
- Think through edge cases before implementing
- Ask as many clarifying questions as needed to avoid unnecessary iterations
# PowerShell script to update DuckDNS IP address | |
param ( | |
[Parameter(Mandatory=$true)] | |
[string]$Domain, | |
[Parameter(Mandatory=$true)] | |
[string]$Token | |
) | |
# Get current public IP address from Akamai | |
try { |
What are some ways to increase the performance of Antlr
Here are several effective ways to improve ANTLR performance:
Use the SLL prediction mode first - Set your parser to use PredictionMode.SLL
initially, which is faster than the default LL mode. Fall back to LL mode only when SLL fails:
parser.getInterpreter().setPredictionMode(PredictionMode.SLL);
From my experience, a Chromebook is so locked down to protect your account, it's not worth trying to boot another Linux version onto it. You can run a Linux image inside its VM, although the performance is a bit poor:
sudo apt update
quickget linuxmint 22 cinnamon
quickemu --vm ...
[CmdletBinding()] | |
param ( | |
[Parameter(Mandatory=$true)] | |
[string]$FileName | |
) | |
# This script converts an ePub to Markdown, removing formatting that something like 11reader can't read. | |
# Then it converts the Markdown to HTML, and finally the HTML to PDF, if you want to retain the images. | |
# Needs Chrome and NodeJS installed, and Windows. |
<body> | |
<ul id="titles"></ul> | |
<div id="root"></div> | |
</body> |
Based on https://openrouter.ai/settings/integrations
See the "Cited By" section at the bottom for other trust score systems - most notably Microsoft's 2005 "Determination of a reputation of an on-line game player".
FIG. 2 illustrates examples of other behaviors, besides cheating, which can
import requests | |
import isodate # To parse ISO 8601 durations | |
# Create an API key in Google Cloud: API/Service Details/Credentials | |
API_KEY = 'mykey' | |
VIDEO_IDS = [ | |
'KZSD3lauzDo', 'puddZhRgRNI', 'YJTjtoKGCYo', '-PjtJeMvsFI', 'KZSD3lauzDo', | |
'puddZhRgRNI', 'YJTjtoKGCYo', '-PjtJeMvsFI', 'KZSD3lauzDo', 'puddZhRgRNI', | |
'YJTjtoKGCYo', '-PjtJeMvsFI' | |
] |
# Tested on Ubuntu, use 'apt-get install jq' | |
cat ./bookmarks.json | jq '.. | select(.type?=="text/x-moz-place") | "\(.title?), \(.uri)"?' | |
cat ./bookmarks.json | jq -r '.. | select(.type?=="text/x-moz-place") | "- [\(.title?)](\(.uri?))"' > uris.md | |
# The second prints a markdown file using the title and uri |