Skip to content

Instantly share code, notes, and snippets.

View MiguelCamilo's full-sized avatar
💻
Building

Miguel C. MiguelCamilo

💻
Building
View GitHub Profile
@MiguelCamilo
MiguelCamilo / README.md
Last active July 31, 2023 16:33
ALL STEPS ON HOW TO CHANGE MAIN BRANCH NAME AND MAKE YOUR CUSTOM BRANCH THE DEFAULT BRANCH

ALL STEPS ON HOW TO CHANGE MAIN BRANCH NAME AND MAKE YOUR CUSTOM BRANCH THE DEFAULT BRANCH

Changing the default branch in GITHUB SETTING

Here are a few ways to rename the main branch in Git:

1. Rename the local branch:

git branch -m main new-main-branch
@MiguelCamilo
MiguelCamilo / CREATE_REPO_GIT_COMMAND.html
Last active February 18, 2023 23:41
How to create a REPO with out leaving VSCODE using GIT COMMANDS✨
<!--
DON'T USE ASTERISKS !
USER_NAME = enter your github user name
REPO_NAME = enter the name of what you'll call that repo
-->
gh repo create *USER_NAME*/*REPO_NAME* --source=. --public --push
@MiguelCamilo
MiguelCamilo / META_TAGS.html
Last active February 18, 2023 23:42
How to set up Meta Tags and Favicons ! 👇🏼
<!-- REMEMBER TO CHANGE THE LINKS AND DESCRIPTION OF EACH META TAGS -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Meta: General -->
@MiguelCamilo
MiguelCamilo / CountClass.jsx
Created February 10, 2023 15:38
Classes Component in JS vs React || Quick Reference 💻
import { Component } from "react";
// old method of class in react
class CountClass extends Component {
constructor(props) {
super(props);
this.state = {
count: 0,
title: "Welcome",
};
@MiguelCamilo
MiguelCamilo / EXPRESS_SERVER_SETUP.js
Last active February 18, 2023 23:42
How to set up basic express server 💻
import express from "express"
const app = express()
const port = 3030
app.use(express.json())
app.listen(port, () => {
console.log(`Server listening on port ${port}`)
})