Skip to content

Instantly share code, notes, and snippets.

View jonathanmza's full-sized avatar
📚
Learning everyday

jonathanmza

📚
Learning everyday
View GitHub Profile
@jonathanmza
jonathanmza / gitflow-breakdown.md
Created February 7, 2019 09:14 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

import { Pipe, PipeTransform } from '@angular/core';
/**
* Iterable Pipe
*
* It accepts Objects and [Maps](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map)
*
* Example:
*
* <div *ngFor="let keyValuePair of someObject | iterable">
@jonathanmza
jonathanmza / DatabaseHealthCheck.java
Created October 8, 2019 15:35
Simple database health check with Spring
package your.package;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.SingleColumnRowMapper;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.List;
@Component
@jonathanmza
jonathanmza / typescript-web-components.md
Created January 19, 2022 16:12 — forked from aelbore/typescript-web-components.md
Step by Step creating web components in typescript using rollup

Getting Started

  • Install Dependencies
    npm init
    npm install --save-dev ts-node typescript tslib express @types/express
    

Create your web server

  • Create server.ts in root folder of your app.
local map = vim.keymap.set
map("n", "<S-f>", "<Cmd>Telescope find_files<CR>", { desc = "Find File/Class" })
map("n", "<C-b>", "gd", { desc = "Navigate to Class/Definition" })
map("n", "<A-S-Up>", ":m-2<CR>", { desc = "Move Line Up (Alt + Shift + Up)" })
map("n", "<A-S-Down>", ":m+<CR>", { desc = "Move Line Down (Alt + Shift + Down)" })
map("v", "<A-S-Up>", ":move '<-2<CR>gv", { desc = "Move Selected Block Up (Alt + Shift + Up)" })
map("v", "<A-S-Down>", ":move '>+1<CR>gv", { desc = "Move Selected Block Down (Alt + Shift + Down)" })
map("n", "<A-Up>", "<Plug>(expand_region_expand)", { desc = "Expand Selection" })
map("v", "<A-Up>", "<Plug>(expand_region_expand)", { desc = "Expand Selection" })