Skip to content

Instantly share code, notes, and snippets.

View jurnalanas's full-sized avatar
🏠
Working from home

Muhammad Nasrurrohman jurnalanas

🏠
Working from home
View GitHub Profile
@jurnalanas
jurnalanas / Install-Node-using-NVM.md
Created March 27, 2024 16:07
Installing Node.js using NVM (macOS/Linux)

Here's a simple tutorial on installing Node.js using NVM (Node Version Manager) and getting the LTS (Long-Term Support) version:

Prerequisites

  • macOS or Linux-based system
  • Text editor
  • Terminal/Command Line

Steps

  • Make a directory called fullstack-course
  • cd into directory
  • list the directory contents
  • cd back out
  • delete the directory
:root {
--font-size: 15.5px;
--font-color: hsl(205, 23%, 16%);
--font-color-lighter: hsl(0, 0%, 40%);
--font-color-placeholder: hsl(0, 0%, 70%);
--link-color: hsl(203, 82%, 35%);
--selection-color: hsl(203, 100%, 74%);
--ref-hover-bg-color: hsl(204, 33%, 97%);
--border-color: rgba(0, 0, 0, 0.12);
--subtle-border-color: rgba(0, 0, 0, 0.07);
// Second Great Low
function secondGreatLow(arr) {
let result = [];
let sortedArr = arr.sort((a,b) => a-b);
// turn into Set data structure first, then convert it again to array
sortedArr = [...new Set(sortedArr)];
const length = sortedArr.length;
// need more info on how many numbers minimum that must be returned
@jurnalanas
jurnalanas / .block
Last active April 25, 2018 04:54 — forked from tvalentius/.block
HDI Indonesia Choropleth Map
border: no
license: MIT
@jurnalanas
jurnalanas / .block
Created February 9, 2018 07:12
Film Flowers Petal Starter Code
license: gpl-3.0
@jurnalanas
jurnalanas / .block
Last active February 9, 2018 07:01
Chord diagram showing co-occurrences.
license: mit
@jurnalanas
jurnalanas / .block
Last active January 26, 2018 13:47
Film Flowers, Single Complete
license: gpl-3.0
@jurnalanas
jurnalanas / .block
Created January 26, 2018 07:53
Film Flowers, Single Starter Code
license: gpl-3.0
@jurnalanas
jurnalanas / .block
Created January 26, 2018 06:05
Film Flowers Petal Starter Code
license: gpl-3.0