This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getAddressChars(address _address) | |
private | |
pure | |
returns (bytes memory) | |
{ | |
bytes memory hexSymbols = "0123456789abcdef"; | |
uint256 value = uint256(uint160(_address)); | |
uint256 temp = value; | |
uint256 length = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Code originally ported from HistWords <https://github.com/williamleif/histwords> by William Hamilton <wleif@stanford.edu>. | |
def align_gensim_models(models, words=None): | |
""" | |
Returns the aligned/intersected models from a list of gensim word2vec models. | |
Generalized from original two-way intersection as seen above. | |
Also updated to work with the most recent version of gensim | |
Requires reduce from functools | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//SPDX-License-Identifier: Unlicense | |
pragma solidity ^0.8.0; | |
import "./Utils.sol"; | |
// Core SVG utilitiy library which helps us construct | |
// onchain SVG's with a simple, web-like API. | |
library svg { | |
/* MAIN ELEMENTS */ | |
function g(string memory _props, string memory _children) | |
internal |
OlderNewer