Skip to content

Instantly share code, notes, and snippets.

View vipinkrishna's full-sized avatar
🙃
coding is !hard!

vipinkrishna vipinkrishna

🙃
coding is !hard!
  • Kerala
View GitHub Profile
@vipinkrishna
vipinkrishna / webdev_online_resources.md
Created August 19, 2021 07:54 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
@vipinkrishna
vipinkrishna / sw_cached_site.js
Created August 19, 2021 07:54 — forked from bradtraversy/sw_cached_site.js
Service Worker To Cache Response
const cacheName = 'v2';
// Call Install Event
self.addEventListener('install', e => {
console.log('Service Worker: Installed');
});
// Call Activate Event
self.addEventListener('activate', e => {
console.log('Service Worker: Activated');
@vipinkrishna
vipinkrishna / sw_cached_pages.js
Created August 19, 2021 07:54 — forked from bradtraversy/sw_cached_pages.js
Service worker to cache pages
const cacheName = 'v1';
const cacheAssets = [
'index.html',
'about.html',
'/css/style.css',
'/js/main.js'
];
// Call Install Event
@vipinkrishna
vipinkrishna / docker-help.md
Created August 19, 2021 07:54 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@vipinkrishna
vipinkrishna / rethinkdb_cheat_sheet.MD
Created August 19, 2021 07:52 — forked from bradtraversy/rethinkdb_cheat_sheet.MD
RethinkDB Query Cheat Sheet

RethinkDB Cheat Sheet

Create database

r.dbCreate('mydb')

List databases

@vipinkrishna
vipinkrishna / js_linked_list.js
Created August 19, 2021 07:52 — forked from bradtraversy/js_linked_list.js
JS Linked List Class
// Construct Single Node
class Node {
constructor(data, next = null) {
this.data = data;
this.next = next;
}
}
// Create/Get/Remove Nodes From Linked List
class LinkedList {

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@vipinkrishna
vipinkrishna / node_redis_cache.js
Created August 19, 2021 07:51 — forked from bradtraversy/node_redis_cache.js
Node.js & Redis Caching
const express = require('express');
const fetch = require('node-fetch');
const redis = require('redis');
const PORT = process.env.PORT || 5000;
const REDIS_PORT = process.env.PORT || 6379;
const client = redis.createClient(REDIS_PORT);
const app = express();
@vipinkrishna
vipinkrishna / devcamper_specs.md
Created August 19, 2021 07:51 — forked from bradtraversy/devcamper_specs.md
Specs for Devcamper Udemy course project

DevCamper Backend API Specifications

Create the backend for a bootcamp directory website. The frontend/UI will be created by another team (future course). The html/css template has been created and can be used as a reference for functionality. All of the functionality below needs to be fully implmented in this project.

Bootcamps

  • List all bootcamps in the database
    • Pagination
    • Select specific fields in result
    • Limit number of results
  • Filter by fields