Skip to content

Instantly share code, notes, and snippets.

$(".new-goods-submit-button").on('click',function(){
console.log('submitting goood');
//get hash of the good
var file_unique_hash = $("#good_file_input").data('uniquehash');
var file_name = "canoe";
var file_description = "a wooden boat";
@aparrish
aparrish / spacy_intro.ipynb
Last active August 9, 2023 01:41
NLP Concepts with spaCy. Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
var Web3 = require("web3");
var web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:6020"));
var fs = require('fs');
var test_code = fs.readFileSync('test.bin').toString();
var test_abi = JSON.parse(fs.readFileSync('./test.abi').toString());
var test_contract = web3.eth.contract(test_abi);
var test = test_contract.new({from: web3.eth.accounts[0],
data: test_code,