Skip to content

Instantly share code, notes, and snippets.

View shivrajbadu's full-sized avatar

Shiv Raj Badu shivrajbadu

  • Kathmandu, Nepal
View GitHub Profile
@shivrajbadu
shivrajbadu / Windows rails deployment.md
Created November 15, 2017 04:42
Deployment steps for rails in windows
@shivrajbadu
shivrajbadu / notes.md
Created October 26, 2017 04:20 — forked from matthewjberger/notes.md
How to make an electron app using Create-React-App and Electron with Electron-Builder.
require 'rails_helper'
RSpec.describe EducationsController, :type => :controller do
let(:candidate) { create(:candidate, archetype_score: 200)}
let(:state) { create(:state)}
let(:employer) {create(:employer, first_name: 'user', last_name: 'test')}
let(:employer_profile) { create(:employer_profile, employer_id: @employer.id, state_id: @state.id, city: 'Wichita', zip: 5520, website: 'www.mywebsite.org') }
let(:college) { create(:college)}
let(:education_level) { create(:education_level)}
let(:education) { create(:education, education_level_id: education_level.id, college_id: college.id, candidate_id: candidate.id)}
@shivrajbadu
shivrajbadu / .eslintrc.json
Created September 21, 2017 04:29 — forked from przbadu/.eslintrc.json
Eslint for react with prettier
{
"extends": ["airbnb", "prettier", "prettier/react"],
"plugins": ["prettier"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2016,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
@shivrajbadu
shivrajbadu / mysql.database.yml
Created June 14, 2017 13:47 — forked from jwo/mysql.database.yml
Sample config/database.yml from Rails. Postgres, MySQL, and SQLite
#
# Install the MYSQL driver
# gem install mysql2
#
# Ensure the MySQL gem is defined in your Gemfile
# gem 'mysql2'
#
# And be sure to use new-style password hashing:
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
development: