Skip to content

Instantly share code, notes, and snippets.

View devdbrandy's full-sized avatar
🎯
Meditating

Harry Dbrandy devdbrandy

🎯
Meditating
View GitHub Profile
@marcoandre1
marcoandre1 / SSH-configuration-github-gitlab.md
Last active April 17, 2024 14:51
Managing SSH keys for Github and Gitlab

Managing SSH keys for Github and Gitlab

NOTICE: This guide will help you set ssh keys for GitHub and GitLab. However, this is not going to change your commit user.name or user.email. If you need to change those for specific repositories, just run the following commands while in your repository:

git config user.name "Your Name Here"
git config user.email your@email.com

For more info, see this answer. Also, keep in mind this only changes the .git folder inside your repository which never gets added/committed/pushed/uploaded.

I recently had to manage two ssh keys (one for Github and one for Gitlab). I did some research to find the best solution. I am justing putting the pieces together here.

ngx-charts: Custom Bar/Line Combo Chart Tutorial


I've been using ngx-charts when building my Angular apps and its definitely one of the best free charting frameworks available for Angular (that I've tried at least). However, one thing I noticed is the lack of documentation or guides when it comes to creating or even using custom charts. Therefore I decided to create a simple walkthrough on how to use the bar/line combo-chart avaiable as one of their demos.

Walkthrough

Source Code

StackBlitz Link: You can refer to this link to see the final product/overview of how to use the custom chart in your project.

@s1moe2
s1moe2 / 20181118235404-some-migration.js
Last active February 4, 2022 17:34
Sequelize migration add/drop multiple columns (transacting)
// NOTE: MySQL does not support transactional DDL (https://dev.mysql.com/doc/internals/en/transactions-notes-on-ddl-and-normal-transaction.html)
// You should use this with a (cool) DBMS such as PostgreSQL.
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.sequelize.transaction((t) => {
return Promise.all([
queryInterface.addColumn('table_name', 'column_name1', {
type: Sequelize.STRING
}, { transaction: t }),
@akhilome
akhilome / get-github-ssh.md
Last active September 5, 2019 12:21
Generate and add github ssh to linux machine

First run ...

ssh-keygen -t rsa -b 4096 -C 'email@domain.com'

... from terminal, then run ...

eval "$(ssh-agent -s)"
@bradtraversy
bradtraversy / webdev_online_resources.md
Last active April 30, 2024 17:23
Online Resources For Web Developers (No Downloading)
@MollyJeanB
MollyJeanB / Chorely-User-Stories.md
Created March 22, 2018 16:35
React capstone user stories

User Stories

  • As a user, I should be able to view a demo account
  • As a user, I should be able to create an account
  • As a user, I should be able to login to my existing account if I enter the proper credentials
  • As a user, I should be able to create household members, give them names, and select their corresponding colors.
  • As a user, I should be able to create chores, give them names, assign point values, and specify the number of times they should be completed each week.
  • As a user, I should be able to update and delete chores.
  • As a user, I should be able to edit household members' names and colors. I should also be able to delete household members.
  • As a user, I should be able to check off who as completed a chore and see that member's score incremented.
@greyscaled
greyscaled / README.md
Last active September 19, 2022 08:59
Sequelize + Express + Migrations + Seed Starter
@LucienLee
LucienLee / anomalies.js
Last active August 6, 2021 07:14
JavaScript Anomalies
/* Closure */
const buttons = document.getElementsByClassName('three-buttons');
for (var i = 0; i < 3; i++) {
buttons[i].addEventListener(function(){
console.log(i)
});
}
// Click 1st button -> 2
// Click 2nd button -> 2
// Click 3rd button -> 2
@jeffochoa
jeffochoa / Response.php
Last active April 30, 2024 10:45
Laravel HTTP status code
<?php
// This can be found in the Symfony\Component\HttpFoundation\Response class
const HTTP_CONTINUE = 100;
const HTTP_SWITCHING_PROTOCOLS = 101;
const HTTP_PROCESSING = 102; // RFC2518
const HTTP_OK = 200;
const HTTP_CREATED = 201;
const HTTP_ACCEPTED = 202;
@ibraheem4
ibraheem4 / postgres-brew.md
Last active May 1, 2024 09:43 — forked from sgnl/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update