A polymorphic relationship allows the target model to belong to more than one type of model using a single association. One To One (Polymorphic) Table Structure A one-to-one polymorphic relation is similar to a simple one-to-one relation; however, the target model can belong to more than one type of model on a single association. For …
jquery.scrollbar
It is a Javascript library to display customized scrollbar on the browser.Instead of customizing the default scrollbar’s styling, it hides the default scrollbar and generate a new scrollbar using html elements.https://github.com/gromo/jquery.scrollbar
Human Standard Token Abi
It’s an open source Abi which provides interface of common functionalities which are provided by smart contracts. When we add new tokens to Metamask, we can use this Abi to invoke common functionalities of the smart contract.https://github.com/danfinlay/human-standard-token-abi
Proof-of-authority 101
PoA, it’s a very simplistic protocol, where instead of miners racing to find a solution to a difficult problem, authorized signers can at any time at their own discretion create new blocks. The challenges revolve around how to control minting frequency, how to distribute minting load (and opportunity) between the various signers and how to …
Zip files on Client Side
You can make zip file with contents in javascript easily. var zip = new JSZip();zip.file(“Hello.txt”, “Hello World”); var dir = zip.folder(“images”);dir.file(“smile.gif”, imgData, {base64: true});zip.generateAsync({type:”blob”}) .then(function(content) { saveAs(content, “example.zip”); }); This code will download zip file in browser, tick,,,Please use this lib for frontend side zip file generation. Reference: https://stuk.github.io/jszip/
Closure in javascript
A closure is the combination of a function and the lexical environment within which that function was declared. This environment consists of any local variables that were in-scope at the time the closure was created. Closures are useful because they let you associate some data (the lexical environment) with a function that operates on that …
MetaMask now supports Ledger Hardware Wallets
Last month, MetaMask released 4.9.0, which included support for Trezor hardware wallets. As we discussed in our blog post, your funds are only as safe as your keys — hardware wallets are a great way to store keys securely offline. We want Ethereum users to be as safe as possible and we don’t want to leave anyone …
Hardware wallet integration emulator
Trezor is a hardware wallet providing advanced security for handling Bitcoin and other cryptocurrencies private keys. Unlike traditional cold storage methods (offline storage or paper wallets), Trezor makes secure payments without exposing your private keys to a potentially compromised computer. See Security philosophy for more info. Trezor is a small single-purpose computer. It is designed to protect your private keys from possible …
Implement download functionality in website by iframe
We can implement download functionality using iframe. If we place iframe in websites and set the url of download source in src attribute of iframe, the source is automatically downloaded to our local PC.