Skip to content

Instantly share code, notes, and snippets.

View user01010011's full-sized avatar

user01010011

  • San Francisco, CA
  • 22:04 (UTC -12:00)
View GitHub Profile
@user01010011
user01010011 / gist:438378d5f1dba89ba48b739d638e6491
Created January 16, 2023 08:32 — forked from arjunvenkat/gist:1115bc41bf395a162084
Seeding a Rails database with a CSV file

How to seed a Rails database with a CSV file

1. Setup

First, Create a folder inside of lib called seeds

Put your CSV file example.csv into the lib/seeds folder. In the example below, the file is called real_estate_transactions.csv

Make sure you've created a resource with the appropriate columns to match your seed data. The names don't have to match up.

@user01010011
user01010011 / 0-startup-overview.md
Created March 25, 2022 01:11 — forked from dideler/0-startup-overview.md
Startup Engineering notes
@user01010011
user01010011 / FrontendFrameworksPopularity.md
Created June 27, 2021 04:34 — forked from tkrotoff/FrontendFrameworksPopularity.md
Front-end frameworks popularity (React, Vue and Angular)

Findings: React is by far the most popular front-end framework/library (and continues to grow faster), except for the GitHub stars. In addition, React is more loved and "wanted" than other front-end frameworks (although it is more used: satisfaction tends to decrease with popularity).

Charts are from different sources and thus colors are inconsistent, please carefully read the chart's legends.

Stack Overflow trends

https://insights.stackoverflow.com/trends?tags=reactjs%2Cvue.js%2Cangular%2Cangularjs

insights.stackoverflow.com