Skip to content

Instantly share code, notes, and snippets.

https://docs.google.com/presentation/d/e/2PACX-1vTzLV-Jr4hkaJyxoks5D9f0XsBjnSQ0tzuZ1tp6OInwiRp2R8isGf3eEAr3RlO8sx5OG8HJdghOv2vW/pub?start=false&loop=false&delayms=3000
@sampolgar
sampolgar / gist:6fe6351ea505e06bf56d5d9a58344d60
Created December 16, 2023 01:44
Overleaf + Git integration
https://www.reddit.com/r/LaTeX/comments/mac1rf/vscodelatex_workshopoverleafbuiltin_git_is_a/
Edit: To those who want to know how I set it up, this is what I did (I hope I didn't miss out on anything).
I use a MacBook so I installed git and mactex-no-gui via brew. The latter takes quite a lot of time so brew (heh) some coffee.
So the way I remember doing it was cloning one of my Overleaf projects via the terminal. I then installed the Latex Workshop and Git extensions in VSCode and opened the cloned repo in VSCode as a folder.
After making changes, committing stuff, and pushing, the Git extension prompts for the Overleaf username and password. I think it caches the credentials (I believe the git credential helper is activated by default for me) because it has never asked me for the credentials ever again. Now all I need to do is keep editing and pushing commits and it immediately reflects online on Overleaf!
@sampolgar
sampolgar / .prettierrc.json
Created November 5, 2023 21:56
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.18+commit.87f61d96.js&optimize=false&runs=200&gist=
{
"overrides": [
{
"files": "*.sol",
"options": {
"printWidth": 80,
"tabWidth": 4,
"useTabs": false,
"singleQuote": false,
"bracketSpacing": false
@sampolgar
sampolgar / .prettierrc.json
Created November 4, 2023 03:21
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.18+commit.87f61d96.js&optimize=false&runs=200&gist=
{
"overrides": [
{
"files": "*.sol",
"options": {
"printWidth": 80,
"tabWidth": 4,
"useTabs": false,
"singleQuote": false,
"bracketSpacing": false
https://github.com/thealpa/SaneSideButtons / brew install --cask sanesidebuttons / enable to autostart in Login Items -> Applications

Keybase proof

I hereby claim:

  • I am sampolgar on github.
  • I am 0xsamp (https://keybase.io/0xsamp) on keybase.
  • I have a public key ASCbOe964HaEsvN7yU6PdbF4EQpDo8WRrYe4zqqLoMJTgwo

To claim this, I am signing this object: