Skip to content

Instantly share code, notes, and snippets.

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

YBR Dev ybrdev

🏠
Working from home
View GitHub Profile
@ybrdev
ybrdev / ng build
Created November 17, 2017 08:43
Build angular app on a hostname within a folder
ng build --prod --base-href "http://localhost/folder/" -d "/folder"
@ybrdev
ybrdev / minmax.js
Last active December 31, 2015 00:19
Function to find maximum and minimum value on JavaScript Array.
// Get maximum value from array
function findMax(array) {
var max = 0;
var a = array.length;
for (counter=0; counter<a; counter++) {
if (array[counter] > max) {
max = array[counter];
}
}
return max;
@ybrdev
ybrdev / 0_reuse_code.js
Created November 8, 2013 10:24
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console