Skip to content

Instantly share code, notes, and snippets.

View sujaykundu777's full-sized avatar
🚀
focusing

Sujay Kundu sujaykundu777

🚀
focusing
View GitHub Profile
@sujaykundu777
sujaykundu777 / gallery_creator.py
Created January 2, 2020 18:00 — forked from opieters/gallery_creator.py
Python script to generate configuration for a lightGallery photo gallery in Jekyll.
@sujaykundu777
sujaykundu777 / domain-to-aws-ec2-instance.md
Created December 8, 2019 16:18 — forked from keithweaver/domain-to-aws-ec2-instance.md
Point Domain to Amazon Web Services (AWS) EC2 Instance

Point Domain to Amazon Web Services (AWS) EC2 Instance

  1. Open the Amazon Route 53 console at https://console.aws.amazon.com/route53/.
  2. If you are new to Amazon Route 53, you see a welcome page; choose Get Started Now for DNS Management. Otherwise, choose Hosted Zones in the navigation pane.
  3. Choose Create Hosted Zone.
  4. For Domain Name, type your domain name.
  5. Choose Create.
  6. Click the Hosted Zone, edit record set.
  7. In the value, add ec2-54-152-134-146.compute-1.amazonaws.com.
  8. Change your DNS file to point to the IPv4 address (This would be in something like GoDaddy).
@sujaykundu777
sujaykundu777 / aggregation_lookup.md
Created June 20, 2019 09:31 — forked from bertrandmartel/aggregation_lookup.md
MongoDB $lookup aggregation example

MongoDB $lookup aggregation

SO link

db.votes.aggregate([{
    $lookup: {
        from: "users",
        localField: "createdBy",
        foreignField: "_id",
/* (320x480) iPhone (Original, 3G, 3GS) */
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
/* insert styles here */
}
/* (320x480) Smartphone, Portrait */
@media only screen and (device-width: 320px) and (orientation: portrait) {
/* insert styles here */
}
@sujaykundu777
sujaykundu777 / horizontal menu using CSS Inline.html
Created January 13, 2019 17:05 — forked from stavrossk/horizontal menu using CSS Inline.html
An horizontal html navigation menu using CSS inline. In this example, we let the ul element and the a element float to the left. The li elements will be displayed as inline elements (no line break before or after the element). This forces the list to be on one line. The ul element has a width of 100% and each hyperlink in the list has a width of…
<html>
<head>
<style>
ul

Setting up Babel and nodemon

Inital set-up

Set up project:

mkdir project
cd project
npm init -y
@sujaykundu777
sujaykundu777 / Install WordPress Blog.md
Created July 27, 2018 17:21 — forked from janikvonrotz/Install WordPress Blog.md
Step by Step: Install WordPress Blog #PHP #MySQL #Nginx #phpMyAdmin #WordPress #Markdown #Ubuntu

Finishing this guide you'll get:

  • A running WordPress installation
  • Nginx proxy with PHP and Fast CGI
  • MySQL server accessible with phpMyAdmin

Specification of latest running installation:

  • Date: 03.03.2014
@sujaykundu777
sujaykundu777 / README.md
Created July 23, 2018 11:17 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet
@sujaykundu777
sujaykundu777 / js-concepts.md
Created July 5, 2018 11:13 — forked from ericelliott/js-concepts.md
Seven JS Concepts You Must Understand Before Your Next Job Interview

Here are seven JavaScript concepts you must understand before you go into your next JavaScript job interview:

  1. Prototypes - JavaScript is a prototype-based language. Even more, it's a delegation-based system, which means that each object has a prototype chain. When you try to access a property on an object, and that property is not found, JavaScript looks at the object's prototype. The prototype is a delegate object, which means that the property lookup is delegated to the prototype object. That object, in turn, may have its own prototype. The search continues up the prototype chain until it reaches the root prototype, which is usually Object.prototype. The best feature of this system is that many object instances can share the same methods on a prototype object, which conserves memory and enables easy code reuse. To assign a prototype to a new object, you can use Object.create(prototypeObject). Prototypal OO is the first course being offered in the "Learn JavaScript" series.

  2. Functional Programming

@sujaykundu777
sujaykundu777 / media-query.css
Created June 5, 2018 09:48 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS