Skip to content

Instantly share code, notes, and snippets.

View RMcNeely's full-sized avatar
💭
I'm in the middle of some calibrations

Ryan McNeely RMcNeely

💭
I'm in the middle of some calibrations
View GitHub Profile
@buddylindsey
buddylindsey / coc-settings.json
Last active December 4, 2019 16:04
Neovim init
{
"coc.preferences.formatOnType": true,
"coc.preferences.formatOnSaveFiletypes": ["python"],
"coc.preferences.jumpCommand": "tab drop",
"diagnostic.displayByAle": true,
"diagnostic.errorSign": "⛔️ ",
"diagnostic.warningSign": "⚠️ ",
"diagnostic.infoSign": "ℹ️ ",
"diagnostic.hintSign": "",
"list.source.grep.command": "ag",
@paulirish
paulirish / what-forces-layout.md
Last active September 22, 2024 14:48
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
@svallory
svallory / Deploying Sharetribe to Heroku.md
Last active August 12, 2023 21:09
Deploying Sharetribe to Heroku

Deploying to Heroku

  1. Deploy the app to heroku following heroku normal instructions (add link to heroku help)

  2. Set heroku environment variables

    Make sure all the options in config.yml are properly set then run:

     bundle exec rake heroku:config
    
@yoavniran
yoavniran / ultimate-ut-cheat-sheet.md
Last active September 22, 2024 14:57
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai, Sinon, and Jest
@dshaw
dshaw / nodebook.md
Last active November 17, 2022 14:50
Running Node on a Samsung 303C Chromebook

Running Node on a Samsung 303C Chromebook

Motivation

After @mikeal and @lyle purchased Chromebooks for kids activities at NodeConf 2014, I was very impressed with the device and decided to explore this as a laptop and hacking device for my kids (7 & 8). I'd love to retain the simplicity of the web-focused ChromeOS experience while letting my kids hack on NodeBots and learn how to program.

It seems like the platforms that ChromeOS runs on are quite diverse. The Samsung 303C hit the right balance of being an aesthetically pleasing looking device, having respectable build quality and the amazing $250 price point. The 303C has an ARM processor. Not all Chromebooks do. I'm writing the below step-by-step very specifically for this system.

Resources