Skip to content

Instantly share code, notes, and snippets.

View cynthiahqy's full-sized avatar

Cynthia Huang cynthiahqy

View GitHub Profile
@selfawaresoup
selfawaresoup / apple-health-to-rda.r
Last active April 7, 2024 10:20
Make Apple Health data available for analysis in R as an RDA file.
# This can take quite a long time to run
library(xml2)
library(tidyverse)
read_xml("apple_health_export/export.xml") -> x
x %>% xml_find_all(".//Record") %>%
xml_attrs %>%
bind_rows %>%
@veekaybee
veekaybee / normcore-llm.md
Last active April 27, 2025 07:05
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models

#### ---------------------------------------------
## Edit via: RStudio > Tools > Edit Code Snippets
# Released under a MIT license
snippet fragment
[${1:text}]{.${2:type}}
snippet aside
[${1:text}]{.aside}

ZSH CheatSheet

This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.

Strings

Description Syntax
Get the length of a string ${#VARNAME}
Get a single character ${VARNAME[index]}
@hjertnes
hjertnes / doom.txt
Created April 6, 2018 08:28
Doom Emacs Cheatsheet
SPC
SPC: find file
, switch buffer
. browse files
: MX
; EX
< switch buffer
` eval
u universal arg
x pop up scratch
@ahmed-musallam
ahmed-musallam / compress_pdf.md
Last active April 24, 2025 05:36
How to compress PDF with ghostscript

How to compress PDF using ghostscript

As a developer, it bothers me when someone sends me a large pdf file compared to the number of pages. Recently, I recieved a 12MB scanned document for just one letter-sized page... so I got to googlin, like I usually do, and found ghostscript!

to learn more abot ghostscript (gs): https://www.ghostscript.com/

What we are interested in, is the gs command line tool, which provides many options for manipulating PDF, but we are interested in compressign those large PDF's into small yet legible documents.

credit goes to this answer on askubuntu forum: https://askubuntu.com/questions/3382/reduce-filesize-of-a-scanned-pdf/3387#3387?newreg=bceddef8bc334e5b88bbfd17a6e7c4f9

@yurifrl
yurifrl / cheat-sheet.org
Last active January 25, 2023 21:48
Emacs Evil-Mode Cheat Sheet

Emacs Evil-Mode Cheat Sheet

Workflow

  • Open emacs, Use terminal with tmux for shell things, use emacs to file processing

Base

  • `C-x`, `SPC` Shortcuts
  • `M-x`, `S-:` Commands