Skip to content

Instantly share code, notes, and snippets.

View velotiotech's full-sized avatar

Velotio Technologies velotiotech

View GitHub Profile
// src/index.js
import React from 'react';
import ReactDOM from 'react-dom';
const App = () => {
return <h1>Hello, React with Webpack!</h1>;
};
ReactDOM.render(<App />, document.getElementById('root'));
|- src
|- index.js
|- public
|- index.html
npm install react react-dom
npm init # if you are patient enough to answer the prompts :)
Or
npm init -y
mkdir react-webpack-way
cd react-webpack-way
mkdir react-webpack-way
cd react-webpack-way
package main
import (
"fmt"
"time"
)
func main() {
ch := make(chan int)
go func() {
time.Sleep(1 * time.Second)
ch <- 42
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: nginx-ingress-controller
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: nginx-ingress-controller
minReplicas: 1
apiVersion: v1
kind: ServiceAccount
metadata:
name: cluster-autoscaler
annotations:
eks.amazonaws.com/role-arn: arn:aws:iam::000000000000:role/my_role_name
fn main() {
let s1 = String::from("hello");
let s2 = s1;
println!("{}, world!", s1);
println!("{}, world!", s2);
}