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
<script> | |
import { Tracker } from 'meteor/tracker'; | |
import { onDestroy } from 'svelte'; | |
import AddressBook from '../lib/AddressBook.js'; | |
let list = []; | |
const computation = Tracker.autorun(() => { | |
list = AddressBook.find({},{limit:10,sort:{name:1}}).fetch(); | |
}); |
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
<script> | |
let A1 = "Park" ; | |
let B1 = "Seung hyun" ; | |
let C1 = "" ; | |
$: C1 = A1 + " " + B1; | |
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
<!DOCTYPE html> | |
<html lang="ko"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=Edge"> | |
<meta http-equiv="pragma" content="no-cache"> | |
<meta http-equiv="pragma" content="no-store"> | |
<meta http-equiv="cache-control" content="no-cache"> | |
<meta http-equiv="Expires" content="1"> |
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
<!DOCTYPE html> | |
<html lang="ko"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=Edge"> | |
<meta http-equiv="pragma" content="no-cache"> | |
<meta http-equiv="pragma" content="no-store"> | |
<meta http-equiv="cache-control" content="no-cache"> | |
<meta http-equiv="Expires" content="1"> |
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
import Web3 from 'web3'; | |
Template.wallMain.helpers({ | |
}); | |
Template.wallMain.events({ | |
}); |
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
async function sendEther(){ | |
let web3 = new Web3(new Web3.providers.WebsocketProvider('wss://ropsten.infura.io/ws')); | |
//let web3 = new Web3(new Web3.providers.HttpProvider("https://ropsten.infura.io/v3/7adb5edd47cf4c379dad4f9f3b7640ce")); | |
balance1 = await web3.eth.getBalance("0x3B598576755664a4b6f73B6f16BAc4d425715Ca9"); | |
balance2 = await web3.eth.getBalance("0xa1bBf60B7149a2fd3bb4D32B46a1c3037B4686Ea"); | |
console.log(web3.utils.fromWei(balance1)); |
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
import {ethers} from "ethers"; | |
abi = [ | |
{ | |
"constant": true, | |
"inputs": [ | |
{ | |
"name": "", | |
"type": "uint256" | |
} |
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
import {ethers} from "ethers"; | |
abi = [ | |
{ | |
"constant": true, | |
"inputs": [ | |
{ | |
"name": "", | |
"type": "uint256" | |
} |
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
import { Meteor } from 'meteor/meteor'; | |
import "/imports/collections";//추가 | |
// sight-stock-meteor > meteor npm install facker | |
import faker from 'faker'; | |
faker.locale = "ko"; | |
Meteor.startup(() => { | |
for(let i = 0 ; i<10 ; i++){ |
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
import { Meteor } from 'meteor/meteor';//추가 | |
import "/lib/collection";//추가 | |
var fixtures = [ | |
{ | |
"name": "Acton Byers", | |
"phone": "010-5533-9991", | |
"email": "faucibus.orci.luctus@interdum.ca", | |
"company": "Neque Incorporated", | |
"birthday": "1994/06/30" |
NewerOlder