Skip to content

Instantly share code, notes, and snippets.

@rnmp
rnmp / vim_the_guide.md
Last active April 8, 2020 15:36
Vim: The Guide

Why I switched?

  1. VSCode can get so fucking slow sometimes
  2. VSCode-like tooling is available for vim (typescript autoimport, autofixes, etc): E.g. https://github.com/neoclide/coc-tsserver
  3. Vim has way better navigational features built-in: you can move a lot faster in a file once you get used to the commands. More on that later.

How to get started?

  1. Get familiar with vim commands: Run vimtutor on your terminal
  2. Download a decent terminal app if you haven’t already. A lot of people use iTerm2, I prefer Kitty (way faster): https://sw.kovidgoyal.net/kitty/
  3. Install NeoVim
  4. Be prepared to google things you want in vim and add them to your vimconfig, I can’t tell you which ones you should get bc that’s kinda up to you and you should understand which ones work for you, but here’s mine (very messy): https://github.com/rnmp/dotfiles/blob/master/.config/nvim/init.vim
@rnmp
rnmp / index.html
Last active January 9, 2020 19:03
Get screen + window resolutions
<html>
<body><script>document.body.innerHTML = `
<h1>Alright, alright, alright</h1>
<p>Screen resolution: ${window.screen.width}x${window.screen.height}
<p>Window resolution: ${window.innerWidth}x${window.innerHeight}
`;
</script></body>
</html>
@rnmp
rnmp / deets.md
Last active November 18, 2019 17:05
Friendsgiving Deets

When?

Wednesday, November 27th

Dinner will commence at 7pm, but appetizers and food will be served starting 4pm. If you can't come at that time that's alright, there will be plenty of food.

Where?

124 Storms Ave 3H
Jersey City, NJ 07306

Call or text Rolando when you get there: +1 561 398 7213

@rnmp
rnmp / 1 - description.md
Last active December 19, 2018 19:59
Small Rm in 2BR Apt with Office Space for working professionals in Bed-Stuy

TBA

@rnmp
rnmp / SketchSystems.spec
Last active June 8, 2018 20:24
Org Profile
Org Profile
Public
Logo
Mission
Cover Photo
What We Do
Org Name
Website Address
Causes
Links
@rnmp
rnmp / cloudSettings
Created February 18, 2018 03:23
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-02-18T03:24:11.868Z","extensionVersion":"v2.8.7"}
@rnmp
rnmp / launch_agent.plist
Last active April 6, 2017 15:43
Append Notes Count to Task Folders
<!-- Runs script every 5 minutes -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>notes-app-tasks-pending-count.job</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/osascript</string>
@rnmp
rnmp / ABOUT.md
Created September 23, 2012 02:06
DATA-COLUMNS

For more information about this project, follow this link.

(function(){
var i = 0;
var count = $('.Album.unavailable,.Album.preview').length;
console.log('Found ' + count + ' albums to remove');
var timeout = 0;
$('.Album.unavailable,.Album.preview').each(function(){
var instance_i = i++;
var album = $(this);
album.trigger('mouseover').mouseenter();
album.find('a,div,span,image').trigger('mouseover').mouseenter();
@rnmp
rnmp / index.html
Created March 25, 2013 14:50
A CodePen by Rolando Murillo. Vertical and horizontal centering - No width required!
<h1 class="center-x">X</h1>
<h1 class="center-y">Y</h1>
<h1 class="center-xy">XY</h1>