Skip to content

Instantly share code, notes, and snippets.

View ronerlih's full-sized avatar
❤️

Ron Erlih ronerlih

❤️
View GitHub Profile
@ronerlih
ronerlih / chat_links.md
Last active January 30, 2024 06:04
SC teachers chat, Cryptography and decentralized computing today
@ronerlih
ronerlih / remove_node_modules.sh
Created September 8, 2021 17:03
Remove all node_modules subfolders.
# From: https://stackoverflow.com/questions/42950501/delete-node-modules-folder-recursively-from-a-specified-path-using-command-line
find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +
@ronerlih
ronerlih / map.js
Created May 25, 2021 14:54 — forked from xposedbones/map.js
Javascript Map range of number to another range
Number.prototype.map = function (in_min, in_max, out_min, out_max) {
return (this - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
}
@ronerlih
ronerlih / numberOfCombinations.md
Last active May 25, 2021 14:58
Number Of Combinations
@ronerlih
ronerlih / rotateArrXor.c
Created April 9, 2021 17:19 — forked from rupalbarman/rotateArrXor.c
Rotate an Array using XOR operations
/* The code allows rotation of an 1D array (right and left)
using XOR operator
ie. Shifts elements of an Array to left or right directions,
wraps the elements circularly.
*/
#include <stdio.h>
int arr[]={1,2,3,4,5,6,7,8,9,10};
@ronerlih
ronerlih / README-Template.md
Created April 3, 2021 03:39 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites