Skip to content

Instantly share code, notes, and snippets.

<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();
});
@ppillip
ppillip / gist:b8e8251e6a436007fa23f675d08edf84
Created April 16, 2020 05:32
싀뷅의 리엑티비티
<script>
let A1 = "Park" ;
let B1 = "Seung hyun" ;
let C1 = "" ;
$: C1 = A1 + " " + B1;
@ppillip
ppillip / backbonerouter.html
Created July 26, 2019 03:38
백본라우터 예제
<!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">
@ppillip
ppillip / nice.html
Created July 25, 2019 01:04
해시뱅
<!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">
@ppillip
ppillip / web3.js
Created June 4, 2019 03:05
web3 셈플
import Web3 from 'web3';
Template.wallMain.helpers({
});
Template.wallMain.events({
});
@ppillip
ppillip / error.js
Last active May 31, 2019 07:18
에러나는 web3 코드입니다.
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));
@ppillip
ppillip / send.js
Last active May 30, 2019 13:38
클레이보내기
import {ethers} from "ethers";
abi = [
{
"constant": true,
"inputs": [
{
"name": "",
"type": "uint256"
}
@ppillip
ppillip / nice.js
Created May 29, 2019 09:20
ethers 를 활용한 바오밥 연결
import {ethers} from "ethers";
abi = [
{
"constant": true,
"inputs": [
{
"name": "",
"type": "uint256"
}
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++){
@ppillip
ppillip / fixture.js
Created May 19, 2019 08:17
fixture.js
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"