Skip to content

Instantly share code, notes, and snippets.

  1. https://rubyinstaller.org/downloads/
  2. https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-2.5.3-1/rubyinstaller-devkit-2.5.3-1-x64.exe
  3. Install with DevKit (will run ridk)
  4. Select option 3
  5. ridk exec pacman -S mingw-w64-x86_64-sqlite3 mingw-w64-x86_64-libxslt mingw-w64-x86_64-libxml2
  6. gem install rails --no-ri --no-rdoc
  7. rails new APP. The installation will fail. So...
  8. Edit Gemfile
  9. Change gem sqlite to gem 'sqlite3', git: "https://github.com/larskanis/sqlite3-ruby", branch: "add-gemspec"
  10. cd APP
@DanDiplo
DanDiplo / JS-LINQ.js
Last active October 14, 2025 22:02
JavaScript equivalents of some common C# LINQ methods. To help me remember!
// JS array equivalents to C# LINQ methods - by Dan B.
// First: This version using older JavaScript notation for universal browser support (scroll down for ES6 version):
// Here's a simple array of "person" objects
var people = [
{ name: "John", age: 20 },
{ name: "Mary", age: 35 },
{ name: "Arthur", age: 78 },
{ name: "Mike", age: 27 },