Skip to content

Instantly share code, notes, and snippets.

View iamlearning1's full-sized avatar
:octocat:
Focusing

Deepak Kumar iamlearning1

:octocat:
Focusing
  • Madrid
View GitHub Profile
@iamlearning1
iamlearning1 / .eslintrc.js
Created September 26, 2019 06:21
Eslint React Rules
module.exports = {
env: {
browser: true,
es6: true,
jest: true
},
extends: 'airbnb',
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly'
@iamlearning1
iamlearning1 / package.json
Created September 26, 2019 06:24
Concurrently scripts for running client and server simultaneously
"scripts": {
"start": "node index.js",
"lint": "eslint server/**/*.js",
"start:server": "env-cmd -f .env nodemon server/index.js",
"start:client": "cd client && yarn start",
"dev": "concurrently \"yarn run start:server\" \"yarn run start:client\"",
"build": "cd client && yarn build"
},
@iamlearning1
iamlearning1 / circleci-2.0-eb-deployment.md
Created November 5, 2019 09:50 — forked from ryansimms/circleci-2.0-eb-deployment.md
Deploying to Elastic Beanstalk via CircleCi 2.0

Deploying to Elastic Beanstalk via CircleCi 2.0

I got to here after spending hours trying to deploy to an Elastic Beanstalk instance via CircleCi 2.0 so I thought I'd write up what worked for me to hopefully help others. Shout out to RobertoSchneiders who's steps for getting it to work with CircleCi 1.0 were my starting point.

For the record, I'm not the most server-savvy of developers so there may be a better way of doing this.

Setup a user on AWS IAM to use for deployments

FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

@iamlearning1
iamlearning1 / refine.sql
Created January 13, 2020 06:24
Refine queries for MySQL
SHOW DATABASES;
USE learning_db;
SHOW tables;
SELECT *
FROM books;
SELECT DISTINCT released_year
@iamlearning1
iamlearning1 / aggregate.sql
Created January 13, 2020 06:25
aggregate queries for MySQL
USE learning_db;
SELECT Count(*)
FROM books;
SELECT Count(DISTINCT author_fname)
FROM books;
SELECT Count(DISTINCT author_fname, author_lname)
FROM books;
@iamlearning1
iamlearning1 / joins.sql
Last active January 13, 2020 16:00
Joins for MySQL
SHOW DATABASES;
CREATE DATABASE relations;
USE relations;
CREATE TABLE customers
(
id INT auto_increment,
first_name VARCHAR(100),
@iamlearning1
iamlearning1 / tvdata.sql
Created January 14, 2020 04:35
sql many to many relations
SHOW DATABASES;
CREATE DATABASE imdb;
USE imdb;
CREATE TABLE reviewers
(
id INT auto_increment,
first_name VARCHAR(100),
@iamlearning1
iamlearning1 / App.css
Created March 12, 2020 07:54
React Refs
.inputs {
display: flex;
align-items: flex-end;
justify-content: center;
height: 500px;
}
input {
padding: 20px;
width: 14px;
@iamlearning1
iamlearning1 / launch.json
Created May 1, 2020 09:45
launch.json for typescript
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}/src/index.ts",
"preLaunchTask": "tsc: build - tsconfig.json",
"outFiles": ["${workspaceFolder}/build/**/*.js"]