Skip to content

Instantly share code, notes, and snippets.


View GitHub Profile
jrran90 / GetWeeksInMonth.js
Created Mar 22, 2019 — forked from markthiessen/GetWeeksInMonth.js
JavaScript - get weeks in a month as array of start and end days
View GetWeeksInMonth.js
//note: month is 0 based, just like Dates in js
function getWeeksInMonth(month, year){
var weeks=[],
firstDate=new Date(year, month, 1),
lastDate=new Date(year, month+1, 0),
numDays= lastDate.getDate();
var start=1;
var end=7-firstDate.getDay();
jrran90 / CountdownTimer.vue
Last active Jan 17, 2019
Create a countdown timer using VueJS 2
View CountdownTimer.vue
<div class="the-countdown">
{{ days | two_digits }}
jrran90 / Random-string
Created Jul 6, 2018 — forked from 6174/Random-string
Generate a random string in JavaScript In a short and fast way!
View Random-string
Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
You can’t perform that action at this time.