Snippets Collections
"repository": {
  "type": "git",
  "url": "git://github.com/username/repository.git"
}
const str = "Saturday night plans";
const res = str.startsWith("Sat");
console.log(res); //> true 
function palindrome(str) {
    const alphanumericOnly = str
        // 1) Lowercase the input
        .toLowerCase()
        // 2) Strip out non-alphanumeric characters
        .match(/[a-z0-9]/g);
        
    // 3) return string === reversedString
    return alphanumericOnly.join('') ===
        alphanumericOnly.reverse().join('');
}



palindrome("eye");

[1, 2, 3].join('my separator');
// "1my separator2my separator3"

[1, 2, 3].join(',');
// "1,2,3"

[1, 2, 3].join(', ');
// "1, 2, 3"

[1, 2, 3].join('sandwich');
// "1sandwich2sandwich3"
myName = 'yazeed';

myName.match(/e/);
// ["e", index: 3, input: "yazeed", groups: undefined]
myName = 'yazeed';

myName.match('e');
// ["e", index: 3, input: "yazeed", groups: undefined]
var str = "How are you doing today?";

var res = str.split(" ");
 
var str = "Hello World!";
var res = str.toLowerCase();
// `a` and `b` are arrays
const isEqual = (a, b) => JSON.stringify(a.sort()) === JSON.stringify(b.sort());
document.querySelectorAll('img')
    .forEach((img) =>
        img.addEventListener('load', () =>
            AOS.refresh()
        )
    );
const object1 = {
  name: 'Flavio'
}

const object2 = {
  age: 35
}

const object3 = {...object1, ...object2 }
        //Gets the Current Date and Time
        var todayDate = new Date();

        //Gets the Date Values
        var dd = ("0" + todayDate.getDate()).slice(-2);
        var mm = ("0" + (todayDate.getMonth() + 1)).slice(-2);
        var yyyy = todayDate.getFullYear();
        document.getElementById('currentDate').innerHTML = mm + " / " + dd + " / " + yyyy;

        //Gets the Time Values
        var hh = ("0" + todayDate.getHours()).slice(-2);
        var min = ("0" + todayDate.getMinutes()).slice(-2);
        var ss = ("0" + todayDate.getSeconds()).slice(-2);
        document.getElementById('currentTime').innerHTML = hh + " : " + min + " : " + ss;

        //Sets the Current Data
        var currentMonth = ("0" + (todayDate.getMonth() + 1)).slice(-2);
        var currentHour = (("0" + todayDate.getHours()).slice(-2)) * 100;
const x = [
    [
        1, 2, 3
    ],
    [
        5, 6, 7
    ],
    [
        'a','b'
    ]
]
const y = [].concat(...x)

console.log(y)
import React, { useState, useEffect } from 'react';

function Example() {
  const [count, setCount] = useState(0);


  // Similar to componentDidMount and componentDidUpdate:
  useEffect(() => {
    // Update the document title using the browser API
    document.title = `You clicked ${count} times`;
  });

  return (
    <div>
      <p>You clicked {count} times</p>
      <button onClick={() => setCount(count + 1)}>
        Click me
      </button>
    </div>
  );
}
const async = require("async");
async.eachSeries(updates, (up, next) => {
  techEntriesList.push(up.entryId);
  if (up.subJobType && up.userId) {
    up.jobId = jobId;
    updatePeopleWithCallback(jobId, up, jobUpdates, (err, technician) => {
      if (technician) technicianList.push(technician);
      console.log(Date.now());
      next();
      return;
    });
  }
});
var today = new Date().toISOString().slice(0, 10);
Date.prototype.addDays = function(days) {
    var date = new Date(this.valueOf());
    date.setDate(date.getDate() + days);
    return date;
}

var date = new Date();

alert(date.addDays(5));
const date1 = new Date('7/13/2010');
const date2 = new Date('12/15/2010');
const diffTime = Math.abs(date2 - date1);
const diffDays = Math.ceil(diffTime / (1000 * 60 * 60 * 24)); 
console.log(diffTime + " milliseconds");
console.log(diffDays + " days");
var groupedCars = _.groupBy(cars, function(car) { return car.make; });
axios.get('api/mesas/ListarTodos').then(function(response){
    //console.log(response);
    me.mesas=response.data;
    me.loading=false;
}).catch(function(error){
    console.log(error);
}).finally(function(){
    setTimeout(/*call listen in a function*/, 30 * 1000);
});
{{#each myObject}}
    Key: {{@key}} Value = {{this}}
{{/each}}
setTimeout(function(){
   window.location.reload(1);
}, 5000);
     let images = document.getElementsByClassName('thumb-image');
     $('#search_templates').keyup(function (e) { 
         let search = $('#search_templates').val().toLowerCase();
         for (let i = 0; i < images.length; i++) {
             let searchVal = images[i].getAttribute('data-search');
             if (searchVal.toLowerCase().indexOf(search) > -1) {
                 images[i].style.display = "";
             }else{
                 images[i].style.display = "none";
             }
             
         }
         
     });
     
     //#search_templates is input and each image has keywords in data-search="" attribute
function createElement(type, attributes) {
  var element = document.createElement(type);
  for (var key in attributes) {
    if (key == "class") {
        element.classList.add.apply(element.classList, attributes[key]); // add all classes at once
    } else {
      element[key] = attributes[key];
    }
  }
  someElement.appendChild(element);
}
@post(%27/files%27, {
    responses: {
      %27204%27: {
        description: %27Uploaded%27,
      },
    },
  })
  async fileUpload(
    @requestBody.file()
    request: Request,
    @inject(RestBindings.Http.RESPONSE) response: Response,
  ): Promise<string> {
    console.log(request.file.filename);

    const storage = multer.diskStorage({
      destination: %27./public/uploads%27,
      filename: function (req, file, cb) {
        cb(null, %27image-%27 + Date.now() + path.extname(file.filename));
      },
    });

    const upload = multer({storage: storage}).single(%27image%27);

    upload(request, response, (err: unknown) => {
      if (err) console.log(err);
      else {
        console.log(request.file.filename);
      }
    });

    return %27Yes%27;
  }
    btns = document.getElementsByClassName("saveBtn");
    for (var i = 0; i < btns.length; i++) {
        btns[i].addEventListener("click", function () {
			//Add function here
        });
    }
var hasVScroll = document.body.scrollHeight > document.body.clientHeight;
$(document).ready(function() {
    // Check if body height is higher than window height :)
    if ($("body").height() > $(window).height()) {
        alert("Vertical Scrollbar! D:");
    }

    // Check if body width is higher than window width :)
    if ($("body").width() > $(window).width()) {
        alert("Horizontal Scrollbar! D:<");
    }
});
   window.onbeforeunload = function() {
    return "Data will be lost if you leave the page, are you sure?";
  };
<div class="fixed-action-btn show-mobile-only">
  <a class="btn-floating btn-large light-green" title="Back to Top" onclick="scrolltoTop()" id="scrollBtn">
    <i class="material-icons">keyboard_arrow_up</i>
  </a>
</div>

<script>
  // When the user scrolls down 100px from the top of the document, show the button
  window.onscroll = function () { scrollFunction() };

  function scrollFunction() {
    if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) {
      document.getElementById("scrollBtn").style.display = "inline-block";
    } else {
      document.getElementById("scrollBtn").style.display = "none";
    }
  }

  // When the user clicks on the button, scroll to the top of the document
  function scrolltoTop() {
    document.body.scrollTop = 0; // For Safari
    document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
  }
</script>
const a = [
    {
        k: 1, me: false, prim: false
    }, {
        k: 2, me: false, prim: false
    }, {
        k: 3, me: false, prim: false
    }, {
        k: 4, me: false, prim: false
    }, {
        k: 5, me: true, prim: true
    }, {
        k: 6, me: false, prim: false
    }
]

a
    .sort((x, y) => (x.prim === y.prim) ? 0 : x.prim ? -1 : 1)
    .sort((x, y) => (x.me === y.me) ? 0 : x.me ? -1 : 1)

console.log(a)
const myFunc = (...data) => (data.map((curVal,index,arr) => console.log(curVal,index,arr)))

myFunc('mango', 'apple', 'orange')
$("#slideshow > div:gt(0)").hide();

setInterval(function() { 
  $('#slideshow > div:first')
    .fadeOut(1000)
    .next()
    .fadeIn(1000)
    .end()
    .appendTo('#slideshow');
},  3000);
var specifiedElement = document.getElementById(%27a%27);

//I%27m using "click" but it works with any event
document.addEventListener(%27click%27, function(event) {
  var isClickInside = specifiedElement.contains(event.target);

  if (!isClickInside) {
    //the click was outside the specifiedElement, do something
  }
});
if (navigator.userAgent.indexOf('Mac OS X') != -1) {
  $("body").addClass("mac");
} else {
  $("body").addClass("pc");
}
buttons.forEach((button) => {
  button.addEventListener('click', () => {
    console.log("forEach worked");
  });
});
import uuid from 'uuid/v4'

export default function getTestIDs() {
  if (process.env.NODE_ENV !== 'test') return {}

  let ids = new Map()
  let proxy = new Proxy({}, {
    get: function(obj, prop) {
      if (ids.has(prop) === false) {
        ids.set(prop, uuid())
      }
      return ids.get(prop)
    }
  })
  return proxy
}
function getOffset( el ) {
    var _x = 0;
    var _y = 0;
    while( el && !isNaN( el.offsetLeft ) && !isNaN( el.offsetTop ) ) {
        _x += el.offsetLeft - el.scrollLeft;
        _y += el.offsetTop - el.scrollTop;
        el = el.offsetParent;
    }
    return { top: _y, left: _x };
}
var x = getOffset( document.getElementById(%27yourElId%27) ).left; 
function bookRentData(bookData) {

   bookData.forEach((book) => {

      //generate random sku number

      const sku = book.sku
      var random = sku[Math.floor(Math.random() * sku.length - 1)];
      document.getElementById("message").innerHTML = sku[random];   

      });
        wrap.innerHTML += `<tr>
                             <td>${book.sku}</td>
                             <td>${book.price}</td>
                          </tr>`
   }
const playThe = (funky) => {
  return funky + " music";
}

const playThe = funky => {
  return funky + " music";
}

const playThe = funky => funky + " music";

// You can call all of these functions like: `playThe('blues')`
var fullUrl = req.protocol + '://' + req.get('host') + req.originalUrl;
   var Person = mongoose.model('Person', yourSchema);
   // find each person with a name contains 'Ghost'
   Person.findOne({ "name" : { $regex: /Ghost/, $options: 'i' } },
          function (err, person) {
                 if (err) return handleError(err);
                 console.log('%s %s is a %s.', person.name.first, person.name.last, person.occupation);

   });
function getDistanceFromLatLonInKm(lat1,lon1,lat2,lon2) {
  var R = 6371; // Radius of the earth in km
  var dLat = deg2rad(lat2-lat1);  // deg2rad below
  var dLon = deg2rad(lon2-lon1); 
  var a = 
    Math.sin(dLat/2) * Math.sin(dLat/2) +
    Math.cos(deg2rad(lat1)) * Math.cos(deg2rad(lat2)) * 
    Math.sin(dLon/2) * Math.sin(dLon/2)
    ; 
  var c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a)); 
  var d = R * c; // Distance in km
  return d;
}

function deg2rad(deg) {
  return deg * (Math.PI/180)
}
items = [ {id:1, value:3, perc:0.5}, {id:2, value:2, perc:0.3}, {id:3, value:1, perc:0.2} ]
items.sort(function (a, b){
    return (b.value - a.value)
})

Ordenar ascendentemente por perc
items.sort(function (a, b) {
    return (a.perc - b.perc)
})
function toObject(arr) {
  var rv = {};
  for (var i = 0; i < arr.length; ++i)
    rv[i] = arr[i];
  return rv;
}
amount
	.toFixed(2)
    .toString()
    .replace(/\B(?=(\d{3})+(?!\d))/g, ",")
    
// or

amount
	.toLocaleString('en-US', { style: 'currency', currency: 'USD' });
var fs = require('fs');

fs.createReadStream('test.log').pipe(fs.createWriteStream('newLog.log'));
<ol><li><a href="#return">I want to return my purchase! What do I do?</a></li><li><a href="#return-a-gift">I would like to return a gift that was sent to me. How do I do that?</a></li><li><a href="#exchange">Can I exchange my order instead of returning it?</a></li><li><a href="#label-and-misplaced">I printed out my label and misplaced it. How can I retrieve it again?</a></li><li><a href="#does-it-take">How long does it take for me to get a refund?</a></li><li><a href="#international-returns">Do your pre-paid labels cover international returns?</a></li><li><a href="#gift-card-cert-return">I am returning an item purchased with a Gift Certificate or Gift Card, how does that work?</a></li><li><a href="#I only see the option to return my order through UPS on the website. Am I able to return through USPS instead?">I only see the option to return my order through UPS on the website. Am I able to return through USPS instead?</a></li></ol>
var t0 = performance.now();

for (let i = 0; i < 10000; i++) {   
    // Do stuff here 
}  

// Do some other stuff here

var t1 = performance.now();
console.log("Call to doSomething took " + (t1 - t0) + " ms.")
let old_arr = ["A", "A", "B", "C", "D", "E", "F", "F"]
let new_arr = [...new Set(old_arr)];

new_arr
["A", "B", "C", "D", "E", "F"]

// 社区优秀解法
var lengthOfLIS = function(nums) {
    let n = nums.length;
    if(n <= 1){
        return n;
    }

    let tail = [nums[0]];
    for(let i = 0;i < n;i++){
        // 比tail数组最后一个元素大,则添加到数组尾部
        if(nums[i] > tail[tail.length-1]){
            tail.push(nums[i]);
        }else{
            let left = 0;
            let right = tail.length-1;
            while(left < right){
                let mid = (left + right) >> 1;
                if(tail[mid] < nums[i]){
                    left = mid + 1;
                }else{
                    right = mid;
                }
            }

            // 上面二分查找代码,不断逼近与nums[i]最靠近的tail元素
            // 最后left位置的元素是比nums[i]大的最小元素,则调整tail数组
            // 显然根据逻辑推理,将nums[left]替换为nums[i]并不会改变
            // 原来tail的升序列状态,同时尽量降低tail中"山峰"出现
            tail[left] = nums[i];
        }
    }

    return tail.length;
};
// Coupon Env
		$( 'div.woocommerce' ).on( 'click', '.coupon-env .coupon-enter', function( ev ) {
			ev.preventDefault();
			
			var $couponEnv = $( this ).parent(),
				$input = $couponEnv.find('.form-control');
			
			$couponEnv.addClass('coupon-visible');

			setTimeout(function(){ $input.focus(); }, 200);
		} ).on( 'click', '.coupon-env .close-coupon', function( ev ) {
			ev.preventDefault();
			
			$( this ).closest( '.coupon-env' ).removeClass('coupon-visible');
		} );
const mySet = new Set();
// adding items
mySet.add("a new item");
// searching for a item
mySet.has("a new item");
// getting the set  size
mySet.size()
// getting all items inside a set
mySet.values()
// removing item
mySet.delete("a new item");
// removing all items inside a set
mySet.clear()
// from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set
function isSuperset(set, subset) {
    for (var elem of subset) {
        if (!set.has(elem)) {
            return false;
        }
    }
    return true;
}
function union(setA, setB) {
    var _union = new Set(setA);
    for (var elem of setB) {
        _union.add(elem);
    }
    return _union;
}

function intersection(setA, setB) {
    var _intersection = new Set();
    for (var elem of setB) {
        if (setA.has(elem)) {
            _intersection.add(elem);
        }
    }
    return _intersection;
}


function difference(setA, setB) {
    var _difference = new Set(setA);
    for (var elem of setB) {
        _difference.delete(elem);
    }
    return _difference;
}

//Examples
var setA = new Set([1, 2, 3, 4]),
    setB = new Set([2, 3]),
    setC = new Set([3, 4, 5, 6]);

isSuperset(setA, setB); // => true
union(setA, setC); // => Set [1, 2, 3, 4, 5, 6]
intersection(setA, setC); // => Set [3, 4]
difference(setA, setC); // => Set [1, 2]
var mySet = new Set();

mySet.add(1); // Set [ 1 ]
mySet.add(5); // Set [ 1, 5 ]
mySet.add(5); // Set [ 1, 5 ]
mySet.add('some text'); // Set [ 1, 5, 'some text' ]
var o = {a: 1, b: 2};
mySet.add(o);

mySet.add({a: 1, b: 2}); // o is referencing a different object so this is okay

mySet.has(1); // true
mySet.has(3); // false, 3 has not been added to the set
mySet.has(5);              // true
mySet.has(Math.sqrt(25));  // true
mySet.has('Some Text'.toLowerCase()); // true
mySet.has(o); // true

mySet.size; // 5

mySet.delete(5); // removes 5 from the set
mySet.has(5);    // false, 5 has been removed

mySet.size; // 4, we just removed one value
console.log(mySet);// Set [ 1, "some text", Object {a: 1, b: 2}, Object {a: 1, b: 2} ]
subset(secondSet) {
  if (secondSet.size() < this.size()) {
    return false
  }
  
  return this.values().every(value => secondSet.has(value))
}
difference(secondSet) {
  const differenceSet = new Set()
  const firstSetValues = this.values()
  firstSetValues.forEach(value => {
    if (!secondSet.has(value)) {
      differenceSet.add(value)
    }
  })
  return differenceSet
}
intersection(secondSet) {
  const intersectionSet = new Set()
  const firstSetValues = this.values()
  const secondSetValues = secondSet.values()
  const allValues = [...firstSetValues, ...secondSetValues]
  allValues.forEach(
    value =>
      secondSet.has(value) && 
      this.has(value) && 
      intersectionSet.add(value),
  )
  return intersectionSet
}
union(secondSet) {
  const unionSet = new Set()
  const firstSetValues = this.values()
  const secondSetValues = secondSet.values()
  const allSetValues = [...firstSetValues, ...secondSetValues]
  allSetValues.forEach(value => unionSet.add(value))
  return unionSet
}
values(){
  let valuesList = []
  for(let value in items){
    valuesList.push(value)
  }
  return valuesList
}
delete(item){
  if(!this.has(item)){
    return false
  }
  delete items[item]
  size--
  return true
}
delete(item){
  if(!this.has(item)){
    return false
  }
  delete items[item]
  size--
  return true
}
add(item){
  if(this.has(item)){
    return false
  }
  items[item] = item
  size++
  return true
}
<script>
var year = new Date();
year = year.getFullYear();
jQuery(function($){
	$('#footer-info').html('&copy; ' + year + ' <a href="https://thisweekinworcester.com">This Week In Worcester</a> | All Rights Reserved');
});
</script>
<?php 
  
function startsWith($string, $startString) { 
  $len = strlen($startString); 
  return (substr($string, 0, $len) === $startString); 
} 

// usage
echo startsWith("cat", "c"); // true
echo startsWith("dog", "x"); // false

?> 
var str = " a b    c d e   f g   ";
var newStr = str.trim();
// "a b    c d e   f g"
$(document).ready(function(){
        $('.btnWrapper button').click(function(){
            $('.btnWrapper button').removeClass('active');
            $(this).addClass('active');
            var realtion = $(this).data('relation');
            $('.translatedText>div').removeClass('active');
            $('.translatedText').find('#' + realtion).addClass('active');
        });
        
    });
function startsWith($string, $startString) {
  return strncmp($string, $startString, strlen($startString)) === 0;
}
The includes array method checks whether the string "Gold" is contained as an item in the array, not whether one of the array items contains the substring. You'd want to use some with the includes string method for that:

Ressources.some(res => res.includes("Gold"))
filteredList() {
      return this.postList.filter(post => {
        return post.title.toLowerCase().includes(this.search.toLowerCase())
      })
    }
for (let step = 0; step < 5; step++) {
  // Runs 5 times, with values of step 0 through 4.
  console.log('Walking east one step');
}
await sleep(1000)
function sleep(ms) {
  return new Promise((resolve) => {
    setTimeout(resolve, ms);
  });
} 
import PropTypes from 'prop-types'
render() {
  return 'Look ma, no spans!';
}

 
import React from 'react';
import Card from './Card';

function CardList ({jobs}) {
  return (
    jobs.map((job,i) => {
      return (
        <Card
          key={i}
          id={jobs[i].id}
          name={jobs[i].name}
          langs={jobs[i].langs} 
        />
     );
  );
}

export default CardList;
db.Foo.aggregate(
  {$unwind: "$bars"},
  {$lookup: {
    from:"bar",
    localField: "bars",
    foreignField: "_id",
    as: "bar"

   }},
   {$match: {
    "bar.testprop": true
   }}
)
chrome.tabs.executeScript( {
	code: "window.getSelection().toString();"
}, function(selection) {
	// selected contains text including line breaks
	var selected = selection[0];
});
let fruits = ['Banana', 'Orange', 'Lemon', 'Apple', 'Mango']
let citrus = fruits.slice(1, 3)

// fruits contains ['Banana', 'Orange', 'Lemon', 'Apple', 'Mango']
// citrus contains ['Orange','Lemon']
function moveCursorToEnd(el) {
    if (typeof el.selectionStart == "number") {
        el.selectionStart = el.selectionEnd = el.value.length;
    } else if (typeof el.createTextRange != "undefined") {
        el.focus();
        var range = el.createTextRange();
        range.collapse(false);
        range.select();
    }
}
  scalar DateTime
  scalar Upload

  input addUser {
    Email: String!
    Password: String
    FirstName: String!
    LastName: String!
    Age: DateTime!
    JobTitle: String!
    File: Upload
  }

  type Mutation {
    register(input: addUser!): Boolean
  }
buttons.forEach((button) => {
  button.addEventListener('click', () => {
    console.log("forEach worked");
  });
});
//Replace the closeSelf() function in iframe page to the following

function closeSelf() {
   parent.window.postMessage("removetheiframe", "*");
}

//and on the parent page, add the following code to listen when the iframe sends a message :

function receiveMessage(event){
   if (event.data=="removetheiframe"){
      var element = document.getElementById('iframe-element');
      element.parentNode.removeChild(element);
   }
}
window.addEventListener("message", receiveMessage, false);
export function asyncWrap(promise) {
  return promise.then(result => [null, result]).catch(err => [err]);
}
<script type="text/javascript">
function loadXMLDoc() {
    var xmlhttp = new XMLHttpRequest();

    xmlhttp.onreadystatechange = function() {
        if (xmlhttp.readyState == XMLHttpRequest.DONE) {   // XMLHttpRequest.DONE == 4
           if (xmlhttp.status == 200) {
               document.getElementById("myDiv").innerHTML = xmlhttp.responseText;
           }
           else if (xmlhttp.status == 400) {
              alert('There was an error 400');
           }
           else {
               alert('something else other than 200 was returned');
           }
        }
    };

    xmlhttp.open("GET", "ajax_info.txt", true);
    xmlhttp.send();
}
</script>
let unboundSlice = Array.prototype.slice
let slice = Function.prototype.call.bind(unboundSlice)

function list() {
  return slice(arguments)
}

let list1 = list(1, 2, 3) // [1, 2, 3]
// Using slice, create newCar from myCar.
let myHonda = { color: 'red', wheels: 4, engine: { cylinders: 4, size: 2.2 } }
let myCar = [myHonda, 2, 'cherry condition', 'purchased 1997']
let newCar = myCar.slice(0, 2)

// Display the values of myCar, newCar, and the color of myHonda
//  referenced from both arrays.
console.log('myCar = ' + JSON.stringify(myCar))
console.log('newCar = ' + JSON.stringify(newCar))
console.log('myCar[0].color = ' + myCar[0].color)
console.log('newCar[0].color = ' + newCar[0].color)

// Change the color of myHonda.
myHonda.color = 'purple'
console.log('The new color of my Honda is ' + myHonda.color)

// Display the color of myHonda referenced from both arrays.
console.log('myCar[0].color = ' + myCar[0].color)
console.log('newCar[0].color = ' + newCar[0].color)
$.ajax({
  type: "POST",
  url: url,
  data: data,
  success: success,
  dataType: dataType
});
                                package com.rizki.mufrizal.belajar.spring.boot.domain

import org.springframework.data.annotation.Id
import org.springframework.data.mongodb.core.mapping.Document
import org.springframework.data.mongodb.core.mapping.Field

/**
 *
 * @Author Rizki Mufrizal <mufrizalrizki@gmail.com>
 * @Web <https://RizkiMufrizal.github.com>
 * @Since 12 January 2017
 * @Time 10:13 PM
 * @Project Belajar-Spring-Boot
 * @Package com.rizki.mufrizal.belajar.spring.boot.domain
 * @File Barang
 *
 */
@Document(collection = "tb_barang")
class Barang implements Serializable {

    @Id
    @Field(value = "id_barang")
    String idBarang

    @Field(value = "nama_barang")
    String namaBarang

    @Field(value = "jenis_barang")
    JenisBarang jenisBarang

    @Field(value = "tanggal_kadaluarsa")
    Date tanggalKadaluarsa

    @Field(value = "harga_satuan_barang")
    BigDecimal hargaSatuanBarang

    @Field(value = "jumlah_barang_tersedia")
    Integer jumlahBarangTersedia

}
                                
    let data = {"classA":[{"date":"01-01","present":49,"absent":14},{"date":"02-01","present":39,"absent":24},{"date":"03-01","present":35,"absent":28}],"classB":[{"date":"01-01","present":49,"absent":14},{"date":"02-01","present":39,"absent":24},{"date":"03-01","present":35,"absent":28}],"classC":[{"date":"01-01","present":49,"absent":14},{"date":"02-01","present":39,"absent":24},{"date":"03-01","present":35,"absent":28}]}

    let newData = [];

    for (let [key, value] of Object.entries(data)) {
        newData.push({class:key, ...value[value.length - 1]});
    }

    console.log(newData);
                                
const chunkIntoN = (arr, n) => {
  const size = Math.ceil(arr.length / n);
  return Array.from({ length: n }, (v, i) =>
    arr.slice(i * size, i * size + size)
  );
}
EXAMPLES
chunkIntoN([1, 2, 3, 4, 5, 6, 7], 4); // [[1,2], [3,4], [5,6], [7]]                                
                                
const renameKeys = (keysMap, obj) =>
  Object.keys(obj).reduce(
    (acc, key) => ({
      ...acc,
      ...{ [keysMap[key] || key]: obj[key] }
    }),
    {}
  );
EXAMPLES
const obj = { name: 'Bobo', job: 'Front-End Master', shoeSize: 100 };
renameKeys({ name: 'firstName', job: 'passion' }, obj); // { firstName: 'Bobo', passion: 'Front-End Master', shoeSize: 100 }
                             
                                
                                
function drawLine( color, xInit, yInit, xEnd, yEnd, canvas)
{
    canvas.beginPath();
    canvas.strokeStyle=color;
    canvas.lineWidth=grosorLinea;
    canvas.moveTo(xInit, yInit);
    canvas.lineTo(xEnd, yEnd);
    canvas.stroke();
    canvas.closePath();
}
const object1 = {
  a: 'somestring',
  b: 42
};

for (let [key, value] of Object.entries(object1)) {
  console.log(`${key}: ${value}`);
}
document.addEventListener('keydown', function (event) {
  var esc = event.which == 27,
      nl = event.which == 13,
      el = event.target,
      input = el.nodeName != 'INPUT' && el.nodeName != 'TEXTAREA',
      data = {};

  if (input) {
    if (esc) {
      // restore state
      document.execCommand('undo');
      el.blur();
    } else if (nl) {
      // save
      data[el.getAttribute('data-name')] = el.innerHTML;

      // we could send an ajax request to update the field
      /*
      $.ajax({
        url: window.location.toString(),
        data: data,
        type: 'post'
      });
      */
      log(JSON.stringify(data));

      el.blur();
      event.preventDefault();
    }
  }
}, true);

function log(s) {
  document.getElementById('debug').innerHTML = 'value changed to: ' + s;
}
                                
 foo += -bar + (bar += 5);
// foo and bar are now 15
                                
var newURL = window.location.protocol + "//" + window.location.host + "/" + window.location.pathname + window.location.search
                                
  function LightenDarkenColor(col, amt) {
  
    var usePound = false;
  
    if (col[0] == "#") {
        col = col.slice(1);
        usePound = true;
    }
 
    var num = parseInt(col,16);
 
    var r = (num >> 16) + amt;
 
    if (r > 255) r = 255;
    else if  (r < 0) r = 0;
 
    var b = ((num >> 8) & 0x00FF) + amt;
 
    if (b > 255) b = 255;
    else if  (b < 0) b = 0;
 
    var g = (num & 0x0000FF) + amt;
 
    if (g > 255) g = 255;
    else if (g < 0) g = 0;
 
    return (usePound?"#":"") + (g | (b << 8) | (r << 16)).toString(16);
  
}
                                
 var myArray = [
  "Apples",
  "Bananas",
  "Pears"
];

var randomItem = myArray[Math.floor(Math.random()*myArray.length)];
                                
const mapObject = (arr, fn) =>
  arr.reduce((acc, el, i) => {
    acc[el] = fn(el, i, arr);
    return acc;
  }, {});
  
EXAMPLES
mapObject([1, 2, 3], a => a * a); // { 1: 1, 2: 4, 3: 9 }                                
                                
const get = (from, ...selectors) =>
  [...selectors].map(s =>
    s
      .replace(/\[([^\[\]]*)\]/g, '.$1.')
      .split('.')
      .filter(t => t !== '')
      .reduce((prev, cur) => prev && prev[cur], from)
  );
EXAMPLES
const obj = { selector: { to: { val: 'val to select' } }, target: [1, 2, { a: 'test' }] };
get(obj, 'selector.to.val', 'target[0]', 'target[2].a'); // ['val to select', 1, 'test']                                
                                
const getURLParameters = url =>
  (url.match(/([^?=&]+)(=([^&]*))/g) || []).reduce(
    (a, v) => ((a[v.slice(0, v.indexOf('='))] = v.slice(v.indexOf('=') + 1)), a),
    {}
  );
EXAMPLES
getURLParameters('http://url.com/page?name=Adam&surname=Smith'); // {name: 'Adam', surname: 'Smith'}
getURLParameters('google.com'); // {}                                
                                
$("p").css("background-color", "yellow");
$.ajax({
  type: "POST",
  url: url,
  data: data,
  success: function (result) {
       alert("The result is "+result);
	}
});
                                
 const isRequired = () => { throw new Error('param is required'); };

const hello = (name = isRequired()) => { console.log(`hello ${name}`) };

// These will throw errors
hello();
hello(undefined);

// These will not
hello(null);
hello('David');
The idea here is that it uses default parameters, like how the b parameter here has a default if you don’t send it anything:
function multiply(a, b = 1) {
  return a * b;
}                               
                                
  document.body.innerHTML = string_of_html;

// Append it instead
document.body.innerHTML += string_of_html;

                                
var person = "Hege";
var person="Hege";

A good practice is to put spaces around operators ( = + - * / ):

var x = y + z;
<html>

<input id="contact" name="address">

<script>

    var x = document.getElementById("contact").getAttribute('name');

</script>

</html>
<html>	
   
   <input id="contact" name="address">
 
 <script>

    document.getElementById("contact").attribute = "phone";
	
    //ALTERNATIVE METHOD TO CHANGE
    document.getElementById("contact").setAttribute('name', 'phone');	

  </script>

</html>
<html>	
	<div id="target">
    	<p>This is some text</p>
    </div>

  <script>

    //GET
      var divElement = document.getElementById("target").innerHTML;

    //CHANGE
      var heading = '<h1>Example text</h1>';
      document.getElementById("target").innerHTML = heading;

    //TO MAKE DIV EMPTY
        document.getElementById("target").innerHTML = '';

  </script>
  
</html>
var profile = {
  name: 'John',
  age: 25,
  isAdmin: false,
  courses: ['html', 'css', 'js']
};

var person = JSON.stringify(profile);
var contacts = '{ "people" : [' +
'{ "firstName":"Joe" , "lastName":"Smith" },' +
'{ "firstName":"Tom" , "lastName":"Hardy" },' +
'{ "firstName":"Ben" , "lastName":"Stiller" } ]}';

var newObject = JSON.parse(contacts);

const compact = arr => arr.filter(Boolean);

compact([0, 1, false, 2, '', 3, 'a', 'e' * 23, NaN, 's', 34]); 
var url = "http://scratch99.com/web-development/javascript/";
var urlParts = url.replace('http://','').replace('https://','').split(/[/?#]/);
var domain = urlParts[0];
var x = 1.234;
 
var y = x.toExponential(2); 
// returns y = 1.23e+0
 
var y = x.toExponential(5);  
// returns y = 1.23450e+0
parseInt("10");         // returns 10
parseInt("10.33");      // returns 10
parseInt("10 20 30");   // returns 10
parseInt("10 years");   // returns 10
parseInt("years 10");   // returns NaN 
var x = 1.2345;

var y = x.toFixed(0);
//y equals 1;

var y = x.toFixed(2);
//y equals 1.23

var y = x.toFixed(5);
//y equals 1.23400
var x = 123;

//OPTION 1
var y = x.toString();           

//OPTION 2
var y = (123).toString();        

//OPTION 3
var y = (100 + 23).toString();   

// value of y is 123 in all 3 cases.
var x = 1234;
var y = x.valueOf(); 

var y = (1234).valueOf();

var y (1000+234).valueOf();

//y equals 1234 in all 3 cases
const arrAvg = arr => arr.reduce((a,b) => a + b, 0) / arr.length
// arrAvg([20, 10, 5, 10]) -> 11.25
const arrSum = arr => arr.reduce((a,b) => a + b, 0)
// arrSum([20, 10, 5, 10]) -> 45
const arrMax = arr => Math.max(...arr);
// arrMax([20, 10, 5, 10]) -> 20
const arrMin = arr => Math.min(...arr);
// arrMin([20, 10, 5, 10]) -> 5

import numpy as np

def pagerank(M, num_iterations=100, d=0.85):
    N = M.shape[1]
    v = np.random.rand(N, 1)
    v = v / np.linalg.norm(v, 1)
    iteration = 0
    while iteration < num_iterations:
        iteration += 1
        v = d * np.matmul(M, v) + (1 - d) / N
    return v
try {
  let hello = prompt("Type hello");
  if (hello !== 'hello'){
    throw new Error("Oops, you didn't type hello");
  }
}
catch(e) {
  alert(e.message);
}
finally {
  alert('thanks for playing!');
}
module.exports = leftpad;
function leftpad (str, len, ch){
   str = String(str);
   var i = -1;
   if (!ch && ch !== 0) ch = ' ';
   len = len - str.length;
   while (++i < len){
      str = ch + str;
   }
   return str;
}
<p id="copyrightyear"></p>

<script>
   document.getElementById('copyrightyear').innerHTML
</script>
    let findMargins = (maximum: number) => {
      const _sign = maximum < 0 ? -1 : 1;
      const _maximum = Math.abs(maximum);
      const _multiplier = Math.pow(10, Math.floor(_maximum).toString().length - 1);
      return Math.ceil(_maximum / _multiplier) * _multiplier * _sign;
    }
<p id="date-stamp">Sat Dec 14 2019 16:58:20 GMT+0500 (Pakistan Standard Time)</p>

<script>
        var dateStamp = document.getElementById("date-stamp");
        var date = dateStamp.innerHTML;
        var date2 = date.substr(4, 17);
        dateStamp.innerHTML = date2;
    
</script>
<main>
	<iframe src="https://www.youtube.com/embed/KQetemT1sWc"></iframe>   
    <a href="#!" onclick="stopThis()">Stop Playing</a>
</main>

<script>
  function stopThis(){
      var iframe = container.getElementsByTagName("iframe")[0];
      var url = iframe.getAttribute('src');
      iframe.setAttribute('src', '');
      iframe.setAttribute('src', url);
  }
</script>
db.students.update(
   { _id: 1 },
   { $push: { scores: 89 } }
)
<button id="open-sesame">Open</button>

                <script>
                    var openSesame = document.getElementById('open-sesame');
                    openSesame.addEventListener("click", function(){
                        $('.sidenav').sidenav('open');
                    });
                </script>
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var slug = require('mongoose-slug-generator');

mongoose.plugin(slug);

const pageSchema = new Schema({
    title: { type: String , required: true},
    slug: { type: String, slug: "title" }
});

var Page = mongoose.model('Page', pageSchema);
module.exports = Page;
const randomElement = document.getElementById('someElement');
randomElement.innerHTML = '<p>changing the DOM</p>'
//Link javascript file in your project
<script type="text/javascript" src="/javascripts/main.js"></script>

//Link javascript file from web (usually found in documentation)
 <script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script>
<h2 style="text-align:center">Modal Image Gallery</h2>
<div class="row">
  <div class="column">
    <img src="placeholder.png" style="width:100%" onclick="openModal();currentSlide(1)" class="hover-shadow cursor">
  </div>
  <div class="column">
    <img src="placeholder.png" style="width:100%" onclick="openModal();currentSlide(2)" class="hover-shadow cursor">
  </div>
  <div class="column">
    <img src="placeholder.png" style="width:100%" onclick="openModal();currentSlide(3)" class="hover-shadow cursor">
  </div>
  <div class="column">
    <img src="placeholder.png" style="width:100%" onclick="openModal();currentSlide(4)" class="hover-shadow cursor">
  </div>
</div>
<div id="myModal" class="modal">
  <span class="close cursor" onclick="closeModal()">&times;</span>
  <div class="modal-content">
    <div class="mySlides">
      <div class="numbertext">1 / 4</div>
      <img src="placeholder.png" style="width:100%">
    </div>
    <div class="mySlides">
      <div class="numbertext">2 / 4</div>
      <img src="placeholder.png" style="width:100%">
    </div>
    <div class="mySlides">
      <div class="numbertext">3 / 4</div>
      <img src="placeholder.png" style="width:100%">
    </div>
    <div class="mySlides">
      <div class="numbertext">4 / 4</div>
      <img src="placeholder.png" style="width:100%">
    </div>
    <a class="prev" onclick="plusSlides(-1)">&#10094;</a>
    <a class="next" onclick="plusSlides(1)">&#10095;</a>
    <div class="caption-container">
      <p id="caption"></p>
    </div>
    <div class="column">
      <img class="demo cursor" src="placeholder.png" style="width:100%" onclick="currentSlide(1)" alt="Sample image 1">
    </div>
    <div class="column">
      <img class="demo cursor" src="placeholder.png" style="width:100%" onclick="currentSlide(2)" alt="Sample image 2">
    </div>
    <div class="column">
      <img class="demo cursor" src="placeholder.png" style="width:100%" onclick="currentSlide(3)" alt="Sample image 3">
    </div>
    <div class="column">
      <img class="demo cursor" src="placeholder.png" style="width:100%" onclick="currentSlide(4)" alt="Sample image 4">
    </div>
  </div>
</div>
> More steps
function copyToClipboard(){

    var codeToBeCopied = document.getElementById('code-snippet').innerText;
    var emptyArea = document.createElement('TEXTAREA');
    emptyArea.innerHTML = codeToBeCopied;
    const parentElement = document.getElementById('post-title');
    parentElement.appendChild(emptyArea);

    emptyArea.select();
    document.execCommand('copy');

    parentElement.removeChild(emptyArea);
    M.toast({html: 'Code copied to clipboard'})

    }
var newForm = document.getElementById('new-form');

if ( newForm.getAttribute('class') === 'make-blue' ) {
        //  Do something
    }  
<form action="/new" method="post">
 
  <input name="title" type="text">
  <input name="description" type="text">
  <button type="submit">Submit Form</button>
 
</form>
> More steps
const songs[];
const results;

for (var i, i++, i<songs.length){
    if(song[i].artist == "Drake"){
      result.push(songs[i]);
    };

// OR

const songs [];
const result = songs.filter ( song => song.artist == "Drake");
var allActionButtons = document.getElementsByClassName("action-buttons");

for (var i = 0; i < allActionButtons.length; i++) {

  allActionButtons[i].addEventListener('click', functionToRunWhenClicked, false);

}

var functionToRunWhenClicked = function {
  // Add some stuff here
}
<link rel="stylesheet" type="text/css" href="plugin/codemirror/lib/codemirror.css">

<body>
	<textarea class="codemirror-textarea"></textarea>
</body>

<script>

$(document).ready(function(){
    var codeText = $(".codemirror-textarea")[0];
    var editor = CodeMirror.fromTextArea(codeText, {
        lineNumbers : true
    });
});

</script>

<script type="text/javascript" src="plugin/codemirror/lib/codemirror.js"></script>
var mongoose = require('mongoose');
var Schema = mongoose.Schema;

const exampleSchema = new Schema({
    title: { type: String , required: true},
    content: [{type: String}]
});


var Example = mongoose.model('Example', exampleSchema);
module.exports = Example;
> More steps
<h2 id="lastHeading">Thank you for reading</h2>
> More steps
<h2 class="redHeading">Welcome</h2>
<p>A passage of text</p>
<h2 class="redHeading">Thank you</h2>
> More steps
(function(){
    //
    var $posts = $('#posts li');
    var $search = $('#search');
    var cache = [];

    $posts.each(function(){
        cache.push({
            element: this,
            title: this.title.trim().toLowerCase(),
        });
    });

    function filter(){
        var query = this.value;
        console.log("query is "+query);
        cache.forEach(function(post){
            var index = 0;

            if (query) {
                index = post.title.indexOf(query);

            }
            var results = document.getElementsByClassName('search-results');
            results.innerHTML = "<li>"+cache.title+"</li>";
            post.element.style.display = index === -1 ? 'none' : '';
        });
    }

   if ('oninput' in $search[0]){
        $search.on('input', filter);
    } else {
        $search.on('keyup', filter);
    }

}());
          <!-- Intuitive Cron format input -->
          <label> Reportes Programados </label>
          <md-button-toggle md-single>
            <md-tooltip md-direction="bottom">Los reportes se pueden enviar periodicamente (cada cierto tiempo cada ciertos dias) o a una hora fija cada ciertos dias.</md-tooltip>
            <md-button v-on:click='cron_type="periodically"' v-bind:class='{"md-toggle": cron_type == "periodically"}'> <md-icon>publish</md-icon> Periodicamente </md-button>
            <!-- <md-button v-on:click='cron_type="timeFrame"' v-bind:class='{"md-toggle": cron_type == "timeFrame"}'> <md-icon>publish</md-icon> Periodicamente en un rango de tiempo</md-button> -->
            <md-button v-on:click='cron_type="fixedTime"' v-bind:class='{"md-toggle": cron_type == "fixedTime"}'> <md-icon>publish</md-icon> Hora fija recurrente </md-button>
          </md-button-toggle>

          <div v-if="cron_type==='periodically'">
            <md-button-toggle md-single>
              <md-button v-on:click='periodicity="minutes"' v-bind:class='{"md-toggle": periodicity == "minutes"}'> Minutos </md-button>
              <md-button v-on:click='periodicity="hours"' v-bind:class='{"md-toggle": periodicity == "hours"}'> Horas </md-button>
            </md-button-toggle>

            <md-input-container>
              <md-tooltip md-direction="bottom">Cada cuantos minutos será enviado el reporte.</md-tooltip>
              <label v-if="periodicity=='minutes'">¿Cada cuantos minutos?</label>
              <label v-if="periodicity=='hours'">¿Cada cuantas horas?</label>
              <md-input v-if="periodicity=='minutes'" numeric v-model='every_x_minutes'></md-input>
              <md-input v-if="periodicity=='hours'" numeric v-model='every_x_hours'></md-input>
            </md-input-container>  

            <md-button-toggle md-single>
              <md-button v-on:click='day_type="week_days"' v-bind:class='{"md-toggle": day_type == "week_days"}'> Días de la semana </md-button>
              <md-button v-on:click='day_type="month_days"' v-bind:class='{"md-toggle": day_type == "month_days"}'> Días del mes </md-button>
            </md-button-toggle>

            <md-input-container v-if="day_type=='week_days'">
              <md-tooltip md-direction="bottom">Día en que será enviado el reporte. Deje en blanco para que sea ninguno</md-tooltip>
              <label >¿Qué día de la semana?</label>
                <md-select v-model="week_day" placeholder="Día de la semana">
                  <md-option value='1'>Lunes</md-option>
                  <md-option value='2'>Martes</md-option>
                  <md-option value='3'>Miércoles</md-option>
                  <md-option value='4'>Jueves</md-option>
                  <md-option value='5'>Viernes</md-option>
                  <md-option value='6'>Sábado</md-option>
                  <md-option value='7'>Domingo</md-option>
                  <md-option value="*">Todos los días</md-option>
                </md-select>
            </md-input-container>  

            <md-input-container v-if="day_type=='month_days'">
              <md-tooltip md-direction="bottom">Día en que será enviado el reporte.</md-tooltip>
              <label >¿Qué día del mes?</label>
              <md-input numeric v-model='month_day'></md-input>
            </md-input-container>  
          </div>

          <div v-else>
            <md-input-container>
              <md-tooltip md-direction="bottom">Hora a la que el reporte será enviado en los días deseados</md-tooltip>
              <label >¿A qué hora?</label>
                <md-select v-model="recurrent_fixed_time" placeholder="Hora del día">
                  <md-option value='0'>Media noche</md-option>
                  <md-option value='1'>1:00 AM</md-option>
                  <md-option value='2'>2:00 AM</md-option>
                  <md-option value='3'>3:00 AM</md-option>
                  <md-option value='4'>4:00 AM</md-option>
                  <md-option value='5'>5:00 AM</md-option>
                  <md-option value='6'>6:00 AM</md-option>
                  <md-option value="7">7:00 AM</md-option>
                  <md-option value="8">8:00 AM</md-option>
                  <md-option value="9">9:00 AM</md-option>
                  <md-option value="10">10:00 AM</md-option>
                  <md-option value="11">11:00 AM</md-option>
                  <md-option value="12">Medio día</md-option>
                  <md-option value="13">1:00 PM</md-option>
                  <md-option value="14">2:00 PM</md-option>
                  <md-option value="15">3:00 PM</md-option>
                  <md-option value="16">4:00 PM</md-option>
                  <md-option value="17">5:00 PM</md-option>
                  <md-option value="18">6:00 PM</md-option>
                  <md-option value="19">7:00 PM</md-option>
                  <md-option value="20">8:00 PM</md-option>
                  <md-option value="21">9:00 PM</md-option>
                  <md-option value="22">10:00 PM</md-option>
                  <md-option value="23">11:00 PM</md-option>
                </md-select>
            </md-input-container>  

            <md-button-toggle md-single>
              <md-button v-on:click='day_type="week_days"' v-bind:class='{"md-toggle": day_type == "week_days"}'> Días de la semana </md-button>
              <md-button v-on:click='day_type="month_days"' v-bind:class='{"md-toggle": day_type == "month_days"}'> Días del mes </md-button>
            </md-button-toggle>

            <md-input-container v-if="day_type=='week_days'">
              <md-tooltip md-direction="bottom">Día en que será enviado el reporte. Deje en blanco para que sea ninguno</md-tooltip>
              <label >¿Qué día de la semana?</label>
                <md-select v-model="week_day" placeholder="Día de la semana">
                  <md-option value='1'>Lunes</md-option>
                  <md-option value='2'>Martes</md-option>
                  <md-option value='3'>Miércoles</md-option>
                  <md-option value='4'>Jueves</md-option>
                  <md-option value='5'>Viernes</md-option>
                  <md-option value='6'>Sábado</md-option>
                  <md-option value='7'>Domingo</md-option>
                  <md-option value="*">Todos los días</md-option>
                </md-select>
            </md-input-container>  

            <md-input-container v-if="day_type=='month_days'">
              <md-tooltip md-direction="bottom">Día en que será enviado el reporte.</md-tooltip>
              <label >¿Qué día del mes?</label>
              <md-input numeric v-model='month_day'></md-input>
            </md-input-container>  
          </div>
> More steps
var d = new Date();
var n = d.getFullYear();
<body>

	//Some HTML code here...

</body>


<script>

	//Insert javascript code here...

</script>
var eventsVariable = '"{events":[' +
    '{"location": "New York", "date": "May 1", "public": "true"},' +
    '{"location": "London", "date": "Apr 24", "public": "false"},' +
    '{"location": "San Frans", "date": "Nov 30", "public": "false"}]}';
    
bookmark
dashboard

Wed Aug 05 2020 23:27:58 GMT+0000 (UTC) https://stackoverflow.com/questions/16827858/npm-warn-package-json-no-repository-field

#javascript
bookmark
dashboard

Tue Aug 04 2020 23:40:19 GMT+0000 (UTC) https://www.google.com/search?q=javascript startswith

#javascript
bookmark
dashboard

Tue Aug 04 2020 22:56:30 GMT+0000 (UTC) https://flaviocopes.com/node-mass-rename-files/

#javascript #nodejs
bookmark
dashboard

Tue Aug 04 2020 19:25:25 GMT+0000 (UTC) https://www.freecodecamp.org/news/freecodecamp-palindrome-checker-walkthrough/

#javascript #strings #arrays
bookmark
dashboard

Tue Aug 04 2020 19:23:59 GMT+0000 (UTC) https://www.freecodecamp.org/news/freecodecamp-palindrome-checker-walkthrough/

#javascript #array-methods
bookmark
dashboard

Tue Aug 04 2020 19:20:14 GMT+0000 (UTC) https://www.freecodecamp.org/news/freecodecamp-palindrome-checker-walkthrough/

#javascript
bookmark
dashboard

Tue Aug 04 2020 19:19:08 GMT+0000 (UTC) https://www.freecodecamp.org/news/freecodecamp-palindrome-checker-walkthrough/

#javascript
bookmark
dashboard

Tue Aug 04 2020 19:18:10 GMT+0000 (UTC) https://www.freecodecamp.org/news/freecodecamp-palindrome-checker-walkthrough/

#javascript #string-methods
bookmark
dashboard

Tue Aug 04 2020 18:47:59 GMT+0000 (UTC) https://www.google.com/search?sxsrf=ALeKk02DFlo7yH-yKNNl-feYqkhlegNMmg:1596506374374

#javascript #arrays
bookmark
dashboard

Tue Aug 04 2020 18:35:51 GMT+0000 (UTC) https://www.google.com/search?q=lowercase in js string

#javascript
bookmark
dashboard

Mon Aug 03 2020 06:46:19 GMT+0000 (UTC)

#javascript
bookmark
dashboard

Sat Jul 25 2020 00:48:18 GMT+0000 (UTC)

#javascript
bookmark
dashboard

Thu Jul 23 2020 05:59:59 GMT+0000 (UTC) https://flaviocopes.com/how-to-merge-objects-javascript/

#javascript
bookmark
dashboard

Sun Jul 19 2020 16:44:35 GMT+0000 (UTC)

#javascript
bookmark
dashboard

Sat Jul 18 2020 02:40:33 GMT+0000 (UTC) https://stackoverflow.com/questions/38558989/node-js-heap-out-of-memory

#javascript
bookmark
dashboard

Thu Jul 09 2020 11:26:41 GMT+0000 (UTC)

#javascript
bookmark
dashboard

Wed Jul 08 2020 15:10:14 GMT+0000 (UTC) https://reactjs.org/docs/hooks-overview.html

#javascript #react.js
bookmark
dashboard

Wed Jul 08 2020 11:05:33 GMT+0000 (UTC)

#javascript #async
bookmark
dashboard

Tue Jul 07 2020 13:23:37 GMT+0000 (UTC) https://stackoverflow.com/questions/3552461/how-to-format-a-javascript-date

#javascript
bookmark
dashboard

Tue Jul 07 2020 12:33:19 GMT+0000 (UTC) https://stackoverflow.com/questions/563406/add-days-to-javascript-date

#javascript
bookmark
dashboard

Tue Jul 07 2020 12:14:14 GMT+0000 (UTC) https://stackoverflow.com/questions/3224834/get-difference-between-2-dates-in-javascript

#javascript
bookmark
dashboard

Tue Jul 07 2020 08:26:20 GMT+0000 (UTC) https://stackoverflow.com/questions/11582284/using-underscore-groupby-to-group-an-array-of-cars-by-their-colour

#javascript
bookmark
dashboard

Sat Jul 04 2020 15:06:33 GMT+0000 (UTC) https://stackoverflow.com/questions/56605866/call-method-every-so-often-vue-js

#javascript
bookmark
dashboard

Sat Jul 04 2020 11:51:20 GMT+0000 (UTC) https://stackoverflow.com/questions/20518179/how-can-i-get-the-names-of-name-value-pairs-in-handlebars

#javascript
bookmark
dashboard

Sat Jul 04 2020 10:39:55 GMT+0000 (UTC) https://stackoverflow.com/questions/2787679/how-to-reload-page-every-5-seconds

#javascript
bookmark
dashboard

Thu Jul 02 2020 03:56:02 GMT+0000 (UTC)

#javascript #jquery
bookmark
dashboard

Wed Jul 01 2020 12:12:44 GMT+0000 (UTC) https://stackoverflow.com/questions/43168284/javascript-createelement-function

#javascript
bookmark
dashboard

Wed Jul 01 2020 07:39:20 GMT+0000 (UTC)

#javascript
bookmark
dashboard

Mon Jun 29 2020 23:11:09 GMT+0000 (UTC)

#javascript
bookmark
dashboard

Mon Jun 29 2020 11:45:05 GMT+0000 (UTC) https://stackoverflow.com/questions/2146874/detect-if-a-page-has-a-vertical-scrollbar

#javascript
bookmark
dashboard

Mon Jun 29 2020 11:44:27 GMT+0000 (UTC) https://stackoverflow.com/questions/2146874/detect-if-a-page-has-a-vertical-scrollbar

#javascript
bookmark
dashboard

Sun Jun 28 2020 15:21:34 GMT+0000 (UTC)

#javascript
bookmark
dashboard

Sat Jun 27 2020 12:11:26 GMT+0000 (UTC)

#html #javascript #materialize
bookmark
dashboard

Fri Jun 26 2020 11:34:47 GMT+0000 (UTC)

#javascript #sort #typescript
bookmark
dashboard

Wed Jun 24 2020 08:59:01 GMT+0000 (UTC) https://stackoverflow.com/questions/62543535/shortcut-of-calling-a-method-without-writing-parameters-in-javascript

#javascript
bookmark
dashboard

Tue Jun 23 2020 09:27:41 GMT+0000 (UTC) https://css-tricks.com/snippets/jquery/simple-auto-playing-slideshow/

#javascript #jquery
bookmark
dashboard

Tue Jun 23 2020 09:26:58 GMT+0000 (UTC)

#javascript
bookmark
dashboard

Tue Jun 23 2020 09:04:03 GMT+0000 (UTC) https://css-tricks.com/snippets/javascript/test-mac-pc-javascript/

#javascript
bookmark
dashboard

Tue Jun 23 2020 08:44:22 GMT+0000 (UTC) https://css-tricks.com/snippets/javascript/loop-queryselectorall-matches/

#javascript
bookmark
dashboard

Mon Jun 22 2020 09:42:01 GMT+0000 (UTC) https://www.matthewsessions.com/blog/react-test-id/

#javascript
bookmark
dashboard

Fri Jun 19 2020 17:30:52 GMT+0000 (UTC) https://stackoverflow.com/questions/62475600/how-to-generate-a-random-number-from-an-array

#javascript
bookmark
dashboard

Wed Jun 17 2020 07:32:06 GMT+0000 (UTC) https://briggs.dev/blog/understanding-callbacks

#javascript
bookmark
dashboard

Sun Jun 14 2020 18:07:51 GMT+0000 (UTC) https://stackoverflow.com/questions/42943124/how-to-get-current-url-path-in-express-with-ejs/42943283

#javascript #express
bookmark
dashboard

Wed Jun 10 2020 12:20:30 GMT+0000 (UTC) https://stackoverflow.com/questions/38497650/how-to-find-items-using-regex-in-mongoose/38498075

#javascript #mongoose #mongodb #mean
bookmark
dashboard

Wed Jun 10 2020 10:02:43 GMT+0000 (UTC) https://stackoverflow.com/questions/27928/calculate-distance-between-two-latitude-longitude-points-haversine-formula

#javascript
bookmark
dashboard

Tue Jun 09 2020 16:54:43 GMT+0000 (UTC) https://stackoverflow.com/questions/493175/how-can-i-create-an-empty-html-anchor-so-the-page-doesnt-jump-up-when-i-click/498374#498374

#javascript
bookmark
dashboard

Tue Jun 09 2020 10:46:05 GMT+0000 (UTC) https://comoprogramo.wordpress.com/2012/06/29/como-ordenar-en-javascript-un-array-de-objetos-por-cualquier-campo/

#javascript
bookmark
dashboard

Tue Jun 09 2020 10:44:39 GMT+0000 (UTC) https://stackoverflow.com/questions/4215737/convert-array-to-object

#javascript
bookmark
dashboard

Mon Jun 08 2020 10:26:33 GMT+0000 (UTC)

#javascript
bookmark
dashboard

Mon Jun 08 2020 10:15:25 GMT+0000 (UTC) https://lavalite.org/blog/fastest-method-to-copy-file-in-nodejs

#nodejs #fs #javascript
bookmark
dashboard

Sun Jun 07 2020 08:08:07 GMT+0000 (UTC) https://www.zappos.com/general-questions#return

#css #html #javascript
bookmark
dashboard

Sun Jun 07 2020 08:02:46 GMT+0000 (UTC) https://www.zappos.com/general-questions

#css #html #javascript
bookmark
dashboard

Sun Jun 07 2020 03:10:31 GMT+0000 (UTC) https://levelup.gitconnected.com/5-javascript-tricks-that-are-good-to-know-78045dea6678

#javascript
bookmark
dashboard

Sun Jun 07 2020 03:02:08 GMT+0000 (UTC)

#javascript
bookmark
dashboard

Sat Jun 06 2020 16:07:21 GMT+0000 (UTC) https://fabricjs.com

#javascript
bookmark
dashboard

Tue Jun 02 2020 09:05:49 GMT+0000 (UTC) https://leetcode-cn.com/submissions/detail/75719041/

#javascript
bookmark
dashboard

Sat May 30 2020 14:20:24 GMT+0000 (UTC) https://www.penchantdesign.com/wp-content/themes/aurum/assets/js/aurum-custom.js?ver=2.9.3

#javascript
bookmark
dashboard

Fri May 29 2020 16:20:11 GMT+0000 (UTC) https://medium.com/front-end-weekly/15-data-structures-with-js-examples-sets-5c0c7e52203

#javascript
bookmark
dashboard

Fri May 29 2020 16:19:39 GMT+0000 (UTC) https://medium.com/front-end-weekly/15-data-structures-with-js-examples-sets-5c0c7e52203

#javascript
bookmark
dashboard

Fri May 29 2020 16:19:00 GMT+0000 (UTC) https://medium.com/front-end-weekly/15-data-structures-with-js-examples-sets-5c0c7e52203

#javascript
bookmark
dashboard

Fri May 29 2020 16:17:51 GMT+0000 (UTC) https://medium.com/front-end-weekly/15-data-structures-with-js-examples-sets-5c0c7e52203

#javascript
bookmark
dashboard

Fri May 29 2020 16:15:49 GMT+0000 (UTC) https://medium.com/front-end-weekly/15-data-structures-with-js-examples-sets-5c0c7e52203

#javascript
bookmark
dashboard

Fri May 29 2020 16:14:21 GMT+0000 (UTC) https://medium.com/front-end-weekly/15-data-structures-with-js-examples-sets-5c0c7e52203

#javascript
bookmark
dashboard

Fri May 29 2020 16:12:12 GMT+0000 (UTC) https://medium.com/front-end-weekly/15-data-structures-with-js-examples-sets-5c0c7e52203

#javascript
bookmark
dashboard

Fri May 29 2020 16:09:44 GMT+0000 (UTC) https://medium.com/front-end-weekly/15-data-structures-with-js-examples-sets-5c0c7e52203

#javascript
bookmark
dashboard

Fri May 29 2020 16:09:29 GMT+0000 (UTC) https://medium.com/front-end-weekly/15-data-structures-with-js-examples-sets-5c0c7e52203

#javascript
bookmark
dashboard

Fri May 29 2020 16:09:17 GMT+0000 (UTC) https://medium.com/front-end-weekly/15-data-structures-with-js-examples-sets-5c0c7e52203

#javascript
bookmark
dashboard

Fri May 29 2020 16:08:54 GMT+0000 (UTC) https://medium.com/front-end-weekly/15-data-structures-with-js-examples-sets-5c0c7e52203

#javascript
bookmark
dashboard

Fri May 29 2020 16:08:25 GMT+0000 (UTC) https://medium.com/front-end-weekly/15-data-structures-with-js-examples-sets-5c0c7e52203

#javascript
bookmark
dashboard

Fri May 29 2020 16:08:12 GMT+0000 (UTC) https://medium.com/front-end-weekly/15-data-structures-with-js-examples-sets-5c0c7e52203

#javascript
bookmark
dashboard

Fri May 29 2020 16:07:59 GMT+0000 (UTC) https://medium.com/front-end-weekly/15-data-structures-with-js-examples-sets-5c0c7e52203

#javascript
bookmark
dashboard

Fri May 29 2020 16:07:37 GMT+0000 (UTC) https://medium.com/front-end-weekly/15-data-structures-with-js-examples-sets-5c0c7e52203

#javascript
bookmark
dashboard

Fri May 29 2020 15:03:49 GMT+0000 (UTC)

#javascript
bookmark
dashboard

Fri May 29 2020 13:09:12 GMT+0000 (UTC) https://css-tricks.com/snippets/php/test-if-string-starts-with-certain-characters-in-php/

#javascript #php
bookmark
dashboard

Fri May 29 2020 12:54:08 GMT+0000 (UTC) https://css-tricks.com/snippets/javascript/strip-whitespace-from-string/

#javascript
bookmark
dashboard

Fri May 29 2020 11:38:37 GMT+0000 (UTC) https://stackoverflow.com/questions/62084454/how-can-i-show-specific-texts-inside-a-div-by-the-click-of-a-button

#javascript
bookmark
dashboard

Fri May 29 2020 10:07:44 GMT+0000 (UTC) https://css-tricks.com/snippets/php/test-if-string-starts-with-certain-characters-in-php/

#javascript #php
bookmark
dashboard

Thu May 28 2020 08:13:30 GMT+0000 (UTC) https://stackoverflow.com/questions/52346491/check-if-a-substring-exists-in-an-array-javascript

#javascript
bookmark
dashboard

Wed May 27 2020 15:46:10 GMT+0000 (UTC) https://codepen.io/AndrewThian/pen/QdeOVa

#javascript
bookmark
dashboard

Wed May 27 2020 01:44:35 GMT+0000 (UTC) https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Loops_and_iteration

#javascript
bookmark
dashboard

Tue May 26 2020 08:47:42 GMT+0000 (UTC) https://stackoverflow.com/questions/14249506/how-can-i-wait-in-node-js-javascript-l-need-to-pause-for-a-period-of-time

#javascript
bookmark
dashboard

Sat May 23 2020 21:34:38 GMT+0000 (UTC) https://devhints.io/react

#javascript
bookmark
dashboard

Sat May 23 2020 21:34:25 GMT+0000 (UTC) https://devhints.io/react

#javascript
bookmark
dashboard

Fri May 22 2020 13:57:15 GMT+0000 (UTC) https://stackoverflow.com/questions/61956643/mapping-array-in-a-props

#javascript
bookmark
dashboard

Thu May 21 2020 18:26:52 GMT+0000 (UTC) https://stackoverflow.com/questions/9621928/how-do-i-query-referenced-objects-in-mongodb

#javascript #mongoshell
bookmark
dashboard

Tue May 19 2020 19:59:28 GMT+0000 (UTC) https://bugs.chromium.org/p/chromium/issues/detail?id=116429

#javascript
bookmark
dashboard

Sun May 17 2020 03:12:16 GMT+0000 (UTC) https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice

#javascript
bookmark
dashboard

Sun May 17 2020 03:07:20 GMT+0000 (UTC) https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice

#javascript
bookmark
dashboard

Sat May 16 2020 06:23:00 GMT+0000 (UTC) https://css-tricks.com/snippets/javascript/move-cursor-to-end-of-input/

#javascript
bookmark
dashboard

Fri May 15 2020 19:37:36 GMT+0000 (UTC) https://stackoverflow.com/questions/61827041/how-to-upload-images-to-graphql-backend-with-axios

#javascript
bookmark
dashboard

Fri May 15 2020 06:24:00 GMT+0000 (UTC) https://css-tricks.com/snippets/javascript/1024x768-bookmarklet/

#javascript
bookmark
dashboard

Wed May 13 2020 12:50:13 GMT+0000 (UTC) https://css-tricks.com/snippets/javascript/loop-queryselectorall-matches/

#javascript
bookmark
dashboard

Tue May 12 2020 11:23:22 GMT+0000 (UTC) https://stackoverflow.com/questions/21881901/how-do-i-remove-iframe-within-itself-by-using-javascript

#javascript
bookmark
dashboard

Tue May 12 2020 04:43:36 GMT+0000 (UTC) https://github.com/pavanmehta91/my-goto-js-utils

#javascript
bookmark
dashboard

Mon May 11 2020 22:17:10 GMT+0000 (UTC) https://stackoverflow.com/questions/8567114/how-to-make-an-ajax-call-without-jquery

#javascript
bookmark
dashboard

Mon May 11 2020 19:55:36 GMT+0000 (UTC) https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice

#javascript
bookmark
dashboard

Mon May 11 2020 19:51:10 GMT+0000 (UTC) https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice

#javascript
bookmark
dashboard

Mon May 11 2020 19:42:43 GMT+0000 (UTC) https://www.w3schools.com/jsref/jsref_classes.asp

#javascript
bookmark
dashboard

Sat May 09 2020 19:43:38 GMT+0000 (UTC) https://api.jquery.com/jquery.post/

#javascript #jquery
bookmark
dashboard

Sat May 09 2020 07:01:41 GMT+0000 (UTC) https://rizkimufrizal.github.io/membuat-restful-web-service-dengan-framework-spring-boot/

#javascript
bookmark
dashboard

Fri May 08 2020 15:00:51 GMT+0000 (UTC) https://stackoverflow.com/questions/2901102/how-to-print-a-number-with-commas-as-thousands-separators-in-javascript

#javascript
bookmark
dashboard

Fri May 08 2020 07:28:27 GMT+0000 (UTC) https://stackoverflow.com/questions/61535303/get-last-element-inside-new-array-with-key-value-from-object

#javascript
bookmark
dashboard

Wed May 06 2020 16:14:28 GMT+0000 (UTC) https://blog.logrocket.com/use-hooks-and-context-not-react-and-redux/

#javascript
bookmark
dashboard

Wed May 06 2020 11:56:30 GMT+0000 (UTC) https://www.30secondsofcode.org/js/s/chunk-into-n/

#javascript
bookmark
dashboard

Wed May 06 2020 11:46:54 GMT+0000 (UTC) https://www.30secondsofcode.org/js/s/rename-keys/

#javascript
bookmark
dashboard

Tue May 05 2020 16:17:01 GMT+0000 (UTC)

#javascript
bookmark
dashboard

Tue May 05 2020 04:59:33 GMT+0000 (UTC) https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries

#javascript
bookmark
dashboard

Sun May 03 2020 23:24:35 GMT+0000 (UTC) https://makitweb.com/how-to-use-switchclass-and-toggleclass-in-jquery/

#javascript #jquery
bookmark
dashboard

Fri May 01 2020 11:41:01 GMT+0000 (UTC) https://css-tricks.com/snippets/javascript/saving-contenteditable-content-changes-as-json-with-ajax/

#javascript
bookmark
dashboard

Fri May 01 2020 11:34:52 GMT+0000 (UTC) https://css-tricks.com/snippets/javascript/add-number-two-variables/

#javascript
bookmark
dashboard

Fri May 01 2020 11:13:14 GMT+0000 (UTC) https://css-tricks.com/snippets/javascript/get-url-and-url-parts-in-javascript/

#javascript
bookmark
dashboard

Fri May 01 2020 11:09:04 GMT+0000 (UTC) https://css-tricks.com/snippets/javascript/lighten-darken-color/

#javascript
bookmark
dashboard

Wed Apr 29 2020 11:38:33 GMT+0000 (UTC) https://css-tricks.com/snippets/javascript/select-random-item-array/

#javascript
bookmark
dashboard

Wed Apr 29 2020 11:26:22 GMT+0000 (UTC) https://www.30secondsofcode.org/js/s/map-object/

#javascript
bookmark
dashboard

Wed Apr 29 2020 11:10:29 GMT+0000 (UTC) https://www.30secondsofcode.org/js/s/get/

#javascript
bookmark
dashboard

Wed Apr 29 2020 10:59:32 GMT+0000 (UTC) https://www.30secondsofcode.org/js/s/get-url-parameters/

#javascript
bookmark
dashboard

Tue Apr 28 2020 19:40:32 GMT+0000 (UTC) https://medium.com/javascript-in-plain-english/querying-sql-server-in-node-js-using-async-await-5cb68acf2144

#javascript #nodejs
bookmark
dashboard

Sun Apr 26 2020 23:16:20 GMT+0000 (UTC) https://www.w3schools.com/jquery/jquery_css.asp

#javascript
bookmark
dashboard

Sun Apr 26 2020 20:50:22 GMT+0000 (UTC) https://api.jquery.com/jquery.post/

#javascript #nodejs
bookmark
dashboard

Fri Apr 24 2020 11:32:35 GMT+0000 (UTC) https://css-tricks.com/snippets/javascript/required-parameters-for-functions-in-javascript/

#javascript #javascript #functions #parameters
bookmark
dashboard

Fri Apr 24 2020 11:14:39 GMT+0000 (UTC) https://css-tricks.com/snippets/javascript/inject-html-from-a-string-of-html/

#javascript #javascript #string #html
bookmark
dashboard

Fri Apr 24 2020 10:48:29 GMT+0000 (UTC) https://www.w3schools.com/js/js_statements.asp

#javascript #javascript #spaces #whitespaces
bookmark
dashboard

Sun Mar 29 2020 07:06:35 GMT+0000 (UTC) https://gist.github.com/trantorLiu/5924389

#javascript #nodejs #handlebars #express
bookmark
dashboard

Sat Mar 07 2020 21:45:45 GMT+0000 (UTC) https://dev.to/m0nica/automating-file-creation-with-javascript-8j5

#commandline #javascript #tutorial #react
bookmark
dashboard

Sun Jan 19 2020 18:56:05 GMT+0000 (UTC)

#javascript #json #jsfunctions
bookmark
dashboard

Sun Jan 19 2020 18:48:17 GMT+0000 (UTC)

#javascript #json #jsfunctions
bookmark
dashboard

Fri Jan 17 2020 20:33:47 GMT+0000 (UTC)

#javascript #arrays #jsfunctions
bookmark
dashboard

Fri Jan 10 2020 22:36:50 GMT+0000 (UTC) http://scratch99.com/web-development/javascript/how-to-get-the-domain-from-a-url/

#javascript #promises #howto
bookmark
dashboard

Fri Jan 10 2020 19:00:00 GMT+0000 (UTC)

#javascript #jsfunctions #numbers
bookmark
dashboard

Wed Jan 08 2020 19:00:00 GMT+0000 (UTC)

#javascript #numbers #jsfunctions
bookmark
dashboard

Sun Jan 05 2020 19:39:47 GMT+0000 (UTC) https://codeburst.io/javascript-arrays-finding-the-minimum-maximum-sum-average-values-f02f1b0ce332

#javascript #webdev #arrays #math
bookmark
dashboard

Sun Jan 05 2020 19:37:35 GMT+0000 (UTC) https://codeburst.io/javascript-arrays-finding-the-minimum-maximum-sum-average-values-f02f1b0ce332

#javascript #webdev #arrays #math
bookmark
dashboard

Sun Jan 05 2020 19:35:54 GMT+0000 (UTC) https://codeburst.io/javascript-arrays-finding-the-minimum-maximum-sum-average-values-f02f1b0ce332

#javascript #webdev #javascript #arrays #math
bookmark
dashboard

Sun Jan 05 2020 19:31:48 GMT+0000 (UTC) https://codeburst.io/javascript-arrays-finding-the-minimum-maximum-sum-average-values-f02f1b0ce332

#javascript #webdev #arrays #math
bookmark
dashboard

Thu Jan 02 2020 19:00:00 GMT+0000 (UTC) https://en.wikipedia.org/wiki/PageRank

#javascript #python #search #historicalcode #google #algorithms
bookmark
dashboard

Wed Jan 01 2020 19:00:00 GMT+0000 (UTC) https://codeburst.io/learn-how-to-handle-javascript-errors-with-try-throw-catch-finally-83b4f9ef8c6f

#javascript #errors #howto
bookmark
dashboard

Fri Dec 27 2019 19:07:08 GMT+0000 (UTC) https://qz.com/646467/how-one-programmer-broke-the-internet-by-deleting-a-tiny-piece-of-code/

#javascript #interesting #historicalcode #leftpad
bookmark
dashboard

Fri Dec 27 2019 10:44:21 GMT+0000 (UTC) https://dev.to/vivekanandpadala/javascript-snippet-for-dynamically-updating-footer-copyright-year-3cdp

#html #javascript #howto
bookmark
dashboard

Tue Dec 17 2019 06:09:11 GMT+0000 (UTC)

#javascript
bookmark
dashboard

Sat Dec 14 2019 20:36:19 GMT+0000 (UTC)

#html #javascript
bookmark
dashboard

Fri Dec 13 2019 12:47:41 GMT+0000 (UTC)

#html #javascript
bookmark
dashboard

https://docs.mongodb.com/manual/reference/operator/update/push/

#javascript #nodejs

.

bookmark
dashboard

https://www.makeschool.com/academy/track/web-dev-summer-academy-2018/build-a-game-of-concentration-with-javascript/client-side-javascript

#html #javascript

.

bookmark
dashboard

https://www.w3schools.com/howto/howto_js_lightbox.asp,

#css #html #javascript

.

bookmark
dashboard

https://codemirror.net/

#javascript

.

bookmark
dashboard

https://medium.com/@thiscodeworks.com/how-to-redirect-your-node-js-app-hosted-on-heroku-from-http-to-https-50ef80130bff

#javascript #nodejs #commandline

.

bookmark
dashboard

https://www.amazon.com/JavaScript-JQuery-Interactive-Front-End-Development/dp/1118531647

#javascript

.

bookmark
dashboard

https://www.w3schools.com/jsref/jsref_getfullyear.asp

#javascript

.

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension