Skip to content

Instantly share code, notes, and snippets.

View imjul1an's full-sized avatar

Julian U. imjul1an

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
},
@imjul1an
imjul1an / 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: {
@imjul1an
imjul1an / 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: {
@imjul1an
imjul1an / 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.
@imjul1an
imjul1an / 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!

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

What dfines SLO.

  • Always customer centric.
@imjul1an
imjul1an / .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)))))
@imjul1an
imjul1an / how-to-learn-emacs.md
Last active July 26, 2017 14:23
HOW TO Emacs?
We couldn’t find that file to show.
@imjul1an
imjul1an / Github.md
Last active July 17, 2017 15:42
Git commands to survive

Git commands to survive