Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Meditating

Harry Dbrandy devdbrandy

🎯
Meditating
View GitHub Profile
View ngx-charts-combo-chart-tutorial.md

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 Feb 4, 2022
Sequelize migration add/drop multiple columns (transacting)
View 20181118235404-some-migration.js
// 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 Sep 5, 2019
Generate and add github ssh to linux machine
View get-github-ssh.md

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 May 17, 2022
Online Resources For Web Developers (No Downloading)
View webdev_online_resources.md
@MollyJeanB
MollyJeanB / Chorely-User-Stories.md
Created Mar 22, 2018
React capstone user stories
View Chorely-User-Stories.md

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.
@vapurrmaid
vapurrmaid / README.md
Last active May 18, 2022
Sequelize + Express + Migrations + Seed Starter
View README.md
@LucienLee
LucienLee / anomalies.js
Last active Aug 6, 2021
JavaScript Anomalies
View anomalies.js
/* 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 May 10, 2022
Laravel HTTP status code
View Response.php
<?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 17, 2022 — forked from sgnl/postgres-brew.md
Installing Postgres via Brew (OSX)
View postgres-brew.md

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
@hygull
hygull / LICENSE KEY FOR SUBLIME TEXT 3 BUILD 3143.md
Last active Mar 30, 2022
LICENSE KEY FOR SUBLIME TEXT 3 BUILD 3143
View LICENSE KEY FOR SUBLIME TEXT 3 BUILD 3143.md

STEPS

  • Click on Help menu

  • Select Enter License

  • Then paste given KEY given at bottom

  • Finally click on Use License