Skip to content

Instantly share code, notes, and snippets.

@suhailvs
suhailvs / IndexedDB101.html
Last active April 16, 2020 22:24 — forked from JamesMessinger/IndexedDB101.js
Very Simple IndexedDB Example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>IndexedDB</title>
</head>
<body>
<!-- https://www.codeproject.com/Articles/325135/Getting-Started-with-IndexedDB -->
<output id="printOutput"></output>

Much nicer solution can be used for any stackexchange sites::: First, go to stackoverflow.com(or any other stackexchange sites) then define this in your Javascript console(Press F12):

function minec(){ 
  $.getJSON('/unicoin/rock',function(data) {
    setTimeout(function(){
      $.post('/unicoin/mine?rock='+data.rock,{fkey:StackExchange.options.user.fkey})
      .done(function( data ) {
        console.log(data);

});

from django.forms import EmailField
from django.core.exceptions import ValidationError
def isEmailAddressValid( email ):
try:
EmailField().clean(email)
return True
except ValidationError:
return False