Skip to content

Instantly share code, notes, and snippets.

View crazy4pi314's full-sized avatar
🔮

Sarah Kaiser crazy4pi314

🔮
View GitHub Profile
@crazy4pi314
crazy4pi314 / README.md
Created June 12, 2023 19:28
How to get ical feed from embedded Google calendar
  1. On the page with the embedded calendar you want the ical feed for, you use browser tools to inspect the page. Find the iframe element for the calenar and look for the src property:

image

2. Copy that src url and then use the tip [here](https://stackoverflow.com/questions/30766477/google-calendar-ical-url-for-public-calendar) to transform it:

the src address in an embed link - either email or calendar group account ([email protected]) - is part of the ical url

https://calendar.google.com/calendar/embed?src=**[email protected]**

>to

@crazy4pi314
crazy4pi314 / Notepad.code-profile
Last active February 27, 2023 21:46
VS Code Profiles
{"name":"Notepad","settings":"{\"settings\":\"{\\r\\n \\\"window.zoomLevel\\\": 3,\\r\\n \\\"editor.inlineSuggest.enabled\\\": true,\\r\\n \\\"github.copilot.enable\\\": {\\r\\n \\\"*\\\": true,\\r\\n \\\"yaml\\\": false,\\r\\n \\\"plaintext\\\": false,\\r\\n \\\"markdown\\\": true\\r\\n },\\r\\n \\\"workbench.colorTheme\\\": \\\"Witch Hazel\\\",\\r\\n \\\"cSpell.userWords\\\": [\\r\\n \\\"Codespace\\\",\\r\\n \\\"Codespaces\\\",\\r\\n \\\"conda\\\",\\r\\n \\\"cuda\\\",\\r\\n \\\"devcontainer\\\",\\r\\n \\\"Ferrie\\\",\\r\\n \\\"liveshare\\\",\\r\\n \\\"matplotlib\\\",\\r\\n \\\"Micromamba\\\",\\r\\n \\\"Miniconda\\\",\\r\\n \\\"Miniforge\\\",\\r\\n \\\"navivage\\\",\\r\\n \\\"nbconvert\\\",\\r\\n \\\"pyenv\\\",\\r\\n \\\"Pylance\\\",\\r\\n \\\"screencast\\\",\\r\\n \\\"screencasts\\\",\\r\\n \\\"tetris\\\"\\r\\n ],\\r\\n \\\"workbenc
@crazy4pi314
crazy4pi314 / README.md
Last active February 15, 2023 18:27
OpenAI assisted git commit msg

How to use:

  1. Make sure you have your OpenAI API key set as an environment variable (OPENAI_API_KEY)
  2. Set up the pre-commit message prep hook bu adding the other two files here in the ./git/hooksdirectory.

Test using it by staging some changes to commit and then running git commit in the command line. The file it pops up for you to edit now should have the suggested summary of the changes from the OpenAI api commented out like this:

# Here is a suggested commit message from code-davinci-002.
# ---
@crazy4pi314
crazy4pi314 / Dockerfile
Created December 6, 2022 20:48
Fast mamba containers
FROM mcr.microsoft.com/devcontainers/miniconda:latest
# Copy environment.yml (if found) to a temp location so we update the environment. Also
# copy "noop.txt" so the COPY instruction does not fail if no environment.yml exists.
RUN conda install -n base -c conda-forge mamba
COPY environment.yml* .devcontainer/noop.txt /tmp/conda-tmp/
RUN if [ -f "/tmp/conda-tmp/environment.yml" ]; then umask 0002 && /opt/conda/bin/mamba env update -n base -f /tmp/conda-tmp/environment.yml; fi \
&& rm -rf /tmp/conda-tmp
# [Optional] Uncomment this section to install additional OS packages.
@crazy4pi314
crazy4pi314 / README.md
Last active September 13, 2022 22:27
qat tutorial/sample use in Codespaces
@crazy4pi314
crazy4pi314 / copilot-IntelliSense.ipynb
Created August 9, 2022 16:38
Copilot IntelliSense bug
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@crazy4pi314
crazy4pi314 / outline-nav.ipynb
Created August 9, 2022 03:27
Outline scrolling repro
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@crazy4pi314
crazy4pi314 / container-settings.json
Created August 2, 2022 19:22
VS Code Screencast Settings
// Configure properties specific to VS Code.
"vscode": {
// Set *default* container specific settings.json values on container create.
"settings": {
"editor.fontSize": 14,
"editor.lineHeight": 22,
"window.zoomLevel": 4,
"editor.formatOnSave": false,
"editor.lineNumbers": "off",
"editor.quickSuggestionsDelay": 1000,
@crazy4pi314
crazy4pi314 / Templates.md
Last active August 2, 2022 18:29
logseq-settings
  • Daily Log template:: Daily Log template-including-parent:: false
    • 📃Tasks

    • 👋Meetings

    • ✏️Notes

  • 1v1 template:: 1v1 template-including-parent:: false