Skip to content

Instantly share code, notes, and snippets.

@luckyyang
luckyyang / d3.md
Created November 8, 2013 01:59 — forked from tmcw/d3.md

This is a more wordy, narrative accompaniment to my pretty bare presentation about d3 that I gave to the jQuery DC Meetup.

What is d3?

  • Not a chart library (though you can make charts with it)
  • Not a map library (though you can make maps with it)

Which is to say, d3 can be used for building things, but the 'atomic parts' are lower-level than bar graphs or projections or so on. This is a powerful fact. It also means that d3 is a good basis for simple interfaces, like Vega.js, that make its power accessible in other ways.

  • Not a compatibility layer (it doesn't work with bad browsers)
@luckyyang
luckyyang / _.md
Created December 21, 2013 23:18
stacks
## FILL ##
fill Sets fill color of the shape.
fill-opacity Sets fill opacity of the shape.
fill-rule Sets fill rule of the shape.
** example **
fill: #ccc;
fill: rgba(0,0,0,.5);
fill: red;
name value
A .08167
B .01492
C .02782
D .04253
E .12702
F .02288
G .02015
H .06094
I .06966
@luckyyang
luckyyang / meteor_react_learning_notes.md
Last active July 27, 2016 12:20
meteor react 学习笔记

命令:

新建 & 运行项目:

meteor create project_name

cd project_name

meteor npm install # npm install

meteor
@luckyyang
luckyyang / Lisk blockchain database structure.md
Created January 21, 2018 16:39 — forked from andreafspeziale/Lisk blockchain database structure.md
Lisk blockchain platform PostgreSQL database structure description

Lisk blockchain database structure

Lisk is a blockchain application platform and crypto-currency, which offers an all round solution for Node.js and JavaScript developers to deploy their own blockchain applications.

You can find a very nice documentation about Lisk here but some useful iformation like the complete database structure are missing.

This gist aims at telling you more about where the Lisk blockchain is stored. The following notes are taken from the study of Lisk testnet 0.9.3a version.

Database

@luckyyang
luckyyang / meteor_build_android_app.md
Created April 23, 2015 15:21
Meteor android apk 打包

Meteor android apk 打包 官方api:https://github.com/meteor/meteor/wiki/How-to-submit-your-Android-app-to-Play-Store

首先进入你的所要打包的meteor工程

一.生成apk

meteor build /build-output-directory --server=guoyoujinlove.meteor.com 上面guoyoujinlove.meteor.com就是你要指向的ip地址,改成你所需要的ip即可,运行完上面的命令之后他会在/build-output-directory目录里面生成两个文件一个是android文件夹一个是ios文件夹,我们进入android文件夹,可以看到一个unaligned.apk文件,他就是我们要打包的apk啦, 执行命令

Verifying my Blockstack ID is secured with the address 126aVHrFrwL6Y9jFBnTugnYt9Fb82yG5be https://explorer.blockstack.org/address/126aVHrFrwL6Y9jFBnTugnYt9Fb82yG5be
yarn run v1.17.3
$ ./scripts/start-worker.sh watcher affirmation-request-watcher
[1568900257870] INFO (watcher-native-erc-affirmation-request): Connected to redis
[1568900257888] DEBUG (watcher-native-erc-affirmation-request): Last Processed block obtained
fromRedis: "13596650"
fromConfig: "13588055"
[1568900257909] INFO (watcher-native-erc-affirmation-request): Connected to amqp Broker
[1568900258891] DEBUG (watcher-native-erc-affirmation-request): Getting block number
module: "web3"
[1568900258894] DEBUG (watcher-native-erc-affirmation-request): Getting required block confirmations

Keypering Protocol

Rich node RPC

ckb-rich-node RPC base on ckb-rpc and ckb-indexer-rpc.

Both RPCs are JSON-RPC protocol, more information can refer to ckb-rich-node.

Keypering API