Skip to content

Instantly share code, notes, and snippets.

View j16h's full-sized avatar

Julian U. j16h

View GitHub Profile
const addTableHeader = () => {
// get table header
const patientHeader = document.querySelectorAll('.head th')[1]
// create new th element
const th = document.createElement('th')
// name th
th.innerText = 'Treatment Planning'
th.style = 'display: table-cell; padding-left: 70px; padding-right: 20px'
{
"items": [
{
"id": "collabary::outfit::2018-05-424-05",
"images": [
{
"url": "https://mosaic01.ztat.net/prm/pcs/images/640x924/collabary::image::8dd5dcb2-68df-4157-a19b-1b4e782b41ee.jpeg",
"width": 640,
"height": 924
},
@j16h
j16h / bst-in-order-traversal.js
Last active June 3, 2018 23:55
Traversing In-order BST
/* input: [2,3,4,5,2,3,4]
2
/ \
3 4
/ \ / \
5 2 3 4
*/
const input = {
val: 2,
right: {
@j16h
j16h / bst-pre-order-traversal.js
Last active June 3, 2018 19:08
Traversing Pre-order BST
/* input: [2,3,4,5,2,3,4]
2
/ \
3 4
/ \ / \
5 2 3 4
*/
const input = {
val: 2,
right: {
@j16h
j16h / Concepts.md
Last active September 4, 2017 12:14
Quick intro the main concepts of the Node.js

Event Loop.

Event Loop does a simple job - it orchestrates the work between the Call Stack and Event Queue untill the Event Queue is empty.

Call Stack

  • It is a simple list of functions.
  • A Stack is a simple FILO (First In Last Out) data structure.
  • The top element that we can pop out, is the last element that we pushed into it (stack).
  • Since Node is a Single Threaded, we have only one stack.
@j16h
j16h / readme.md
Last active July 31, 2017 21:55
20 HEALTHIEST FOODS YOU NEED TO HAVE ON YOUR GROCERY LIST

Meat/Proteins:

1 Chicken Breast

Chicken breast is one amazing source of lean protein. No secret that chicken breast is every bodybuilder’s best friend. That is because it is filled with lean protein and has no carbs at all. Hence, it aids muscle growth and fat loss!

2 Eggs

Eggs… well, this list wouldn’t be complete without them! The richest form of digestible protein hides in eggs. Everybody knows that they are very beneficial - that’s why they are included in so many diets. Consuming eggs on a regular basis is proved to help improve your cardiovascular health and your cholesterol levels!

3 Salmon

Salmon is another great source of lean protein. It contains omega-3 fats in impressive quantities, which can lead to a healthy and well-functioning heart. So the next time you’re wondering what fish to choose, salmon is the way to go!

@j16h
j16h / readme.md
Created July 28, 2017 14:51
SLO/SLI

What dfines SLO.

  • Always customer centric.
@j16h
j16h / .spacemacs
Created July 28, 2017 12:35 — forked from rhalukongor/.spacemacs
Use ESLint from project folder
(defun my/use-eslint-from-node-modules ()
(let ((root (locate-dominating-file
(or (buffer-file-name) default-directory)
(lambda (dir)
(let ((eslint (expand-file-name "node_modules/eslint/bin/eslint.js" dir)))
(and eslint (file-executable-p eslint)))))))
(when root
(let ((eslint (expand-file-name "node_modules/eslint/bin/eslint.js" root)))
(setq-local flycheck-javascript-eslint-executable eslint)))))
@j16h
j16h / how-to-learn-emacs.md
Last active July 26, 2017 14:23
HOW TO Emacs?
We couldn’t find that file to show.
@j16h
j16h / Github.md
Last active July 17, 2017 15:42
Git commands to survive

Git commands to survive