Skip to content

Instantly share code, notes, and snippets.

View coolbrg's full-sized avatar

Budh Ram Gurung (BRG) coolbrg

View GitHub Profile
@coolbrg
coolbrg / nicdata.yml
Last active December 2, 2019 07:53
NIC Database Gist
- story: |
One of the major reasons Nepal is economically a least developed country is that there is little happening in our country to promote economic ...
- mission: "text"
- vision: "text"
- values: "text"
- board_members:
- name: Mahabir Pun
designation: Chairperson
- name: Dr. Dinesh Bhuju
designation: Board Member
@coolbrg
coolbrg / python-vs-ruby.md
Last active November 23, 2019 06:11
Python vs Ruby Differences

NOTE: P -> Python, R -> Ruby

1. Float Division

P: >>> 13/4 # 3.25

R: > 13/4 => 3  
@coolbrg
coolbrg / railsgirlsktm-notes.md
Last active July 26, 2019 08:19
Rails Girls App Dry Run
  1. Create Idea Scaffold and run server

    rails generate scaffold idea name:string description:text picture:string
    rails db:migrate
    rails server
    
  2. Add Bootstrap 4 CSS & JS

    <!-- CSS -->
    
@coolbrg
coolbrg / eh-hack-projects.md
Last active July 24, 2019 16:34
Everest Hack Project Details post Ghumfir

GHUMFIR


Elevator Pitch: Click your trip

The problem it solves: Our website is focussed for wanderers willing to take up an adventure and explore new places. It provides a platform to connect with like minds and form an active travel community and share experiences. One can add their desired trips and others can voluntarily join in different trips of their choce and enjoy their travel. One can also add their home stays located at their local areas so that travellers find it easy to access lodging, and also learn about the locality they are travelling.

Team name: Team Stack

@coolbrg
coolbrg / essential-vscode-extensions.md
Created July 15, 2019 00:00
Essential VSCode Extensions for Web Development
  1. Debugger for chrome https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-chrome

Chrome has features built in that make debugging a much better experience. This extension gives you all (or close to all) of those debugging features right inside of VS Code!

  1. Auto Rename Tag https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-rename-tag

Need to rename an element in HTML? Well, with Auto Rename Tag, you just need to rename either the opening or closing tag, and the other will be renamed automatically. Simple, but effective!

@coolbrg
coolbrg / social-icon-colors.css
Last active July 21, 2020 04:07
Social Icon Color Code
.fa-twitter-square {
color: #38A1F3;
}
.fa-facebook-square {
color: #4267b2;
}
.fa-github-square {
color: #333;
}
.fa-linkedin {
@coolbrg
coolbrg / iterm2.md
Created June 4, 2019 12:56 — forked from squarism/iterm2.md
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@coolbrg
coolbrg / full-stack-internship.md
Last active April 16, 2019 06:42
Internship - Full Stack Developer (4 Openings)

Internship as Full Stack Developer in Averon Media Pvt Ltd

About Averon Media

Averon Media Pvt Ltd is a company specialized in Web Design & Developement and Digital Marketing in Pune, Maharashtra. It's target is to become the India's #1 Web Development company in coming years. More details can be found in company website here.

About the Internship

Selected intern's day-to-day responsibilities include:

@coolbrg
coolbrg / powershell.go
Last active March 1, 2024 09:35
Playing PowerShell command via Golang
package main
import (
"bytes"
"fmt"
"os/exec"
"strings"
)
// PowerShell struct
@coolbrg
coolbrg / heroku_pg_db_reset.md
Created September 26, 2018 16:17 — forked from zulhfreelancer/heroku_pg_db_reset.md
How to reset PG Database on Heroku?

How to reset PG Database on Heroku?

  • Step 1: heroku restart
  • Step 2: heroku pg:reset DATABASE (no need to change the DATABASE)
  • Step 3: heroku run rake db:migrate
  • Step 4: heroku run rake db:seed (if you have seed)

One liner

heroku restart; heroku pg:reset DATABASE --confirm APP-NAME; heroku run rake db:migrate