Skip to content

Instantly share code, notes, and snippets.

Alisher Ergashev AliwerErgashev

  • Freelancer
  • Uzbekistan, Tashkent
Block or report user

Report or block AliwerErgashev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:50df31e751ce648a0e3e7079fade72b4
var mongoObjectId = function () {
var timestamp = (new Date().getTime() / 1000 | 0).toString(16);
return timestamp + 'xxxxxxxxxxxxxxxx'.replace(/[x]/g, function() {
return (Math.random() * 16 | 0).toString(16);
}).toLowerCase();
};
View js.array.of.random
function randomArray(length, min, max) {
return new Array(length).fill(0).map(function(n) {
return Math.round(Math.random() * (max - min) + min);
});
}
View gist:ab1734aca77acdff71497909dbc3dd74
scales: {
yAxes: [{
ticks: {
beginAtZero: true,
callback: function(value, index, values) {
return '';
},
},
gridLines: {
display: false,
You can’t perform that action at this time.