Skip to content

Instantly share code, notes, and snippets.

View EricRibia's full-sized avatar

ericribia EricRibia

View GitHub Profile
@EricRibia
EricRibia / highlight.html
Created July 13, 2019 15:12
snippet highlight to question
<div class="container">
<div class="row">
<div class="col-md-12">
<h2 class="text-center">Create highlights that you can use as revision later</h2>
</div>
</div>
<div class="row">
<div class="col-md-4 offset-md-1">
<div class="card">
<img class="card-img-top" src="demomain.PNG" alt="Card image cap">
function randomString(length, chars) {
var result = '';
for (var i = length; i > 0; --i) result += chars[Math.floor(Math.random() * chars.length)];
return result;
}
var rString = randomString(32, '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ');
console.log(rString);
$value = 'hwefwkZ4tHCfQ425HNtp5ffl7FRVOMND';
$output = '';