Skip to content

Instantly share code, notes, and snippets.

@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啦, 执行命令

@luckyyang
luckyyang / meteor_mongo.md
Created April 23, 2015 15:26
meteor mongo to see database

本地链接端口用 3001 image

外部部署的网站,可以用 meteor mongo 命令来连接

li@MacbookAir ~/Github/maodou$ meteor mongo maodou.meteor.com MongoDB shell version: 2.6.7 connecting to: production-db-d1.meteor.io:27017/maodou_meteor_com production-d:PRIMARY> help db.help() help on db methods

@luckyyang
luckyyang / i18n.md
Last active August 29, 2015 14:20
i18n for meteor useraccounts

命令行:

meteor add accounts-password

meteor add useraccounts:core

meteor add useraccounts:ionic

meteor add softwarerero:accounts-t9n

@luckyyang
luckyyang / weixin_intro.md
Created April 30, 2015 02:40
微信公众号和订阅号区别
@luckyyang
luckyyang / accounts_ui_config.md
Created April 30, 2015 02:41
accounts-ui包注册表单项的控制

文档:http://docs.meteor.com/#/full/accounts_ui_config

Which fields to display in the user creation form. One of 'USERNAME_AND_EMAIL', 'USERNAME_AND_OPTIONAL_EMAIL', 'USERNAME_ONLY', or 'EMAIL_ONLY' (default).

代码: Accounts.ui.config({ requestPermissions: { facebook: ['user_likes'], github: ['user', 'repo'] },

@luckyyang
luckyyang / gist:42a91d92953c85753c98
Created November 22, 2015 05:08 — forked from xigua/gist:e8adc26a3b943570a18d
Mongodb 3.0 Replica Set Setup with Docker Notes
Reference: https://medium.com/@gargar454/deploy-a-mongodb-cluster-in-steps-9-using-docker-49205e231319#.ff9lbtdl9
this post talks about 3 Nodes,Mongodb 2.6.5. In order to use mongo 3.0, a few changes has been made. Assume using root
1. First we need 2 servers with docker installed
1.1 recommend use Ubuntu 14.04 on aliyun, then install daocloud for docker installation and monitoring
curl -sSL https://get.daocloud.io/docker | sh
1.2 install daocloud monitoring program
@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 / fomo3d.sol
Created July 26, 2018 02:56
Fomo3D smart contract
pragma solidity ^0.4.24;
/**
* @title -FoMo-3D v0.7.1
* ┌┬┐┌─┐┌─┐┌┬┐ ╦╦ ╦╔═╗╔╦╗ ┌─┐┬─┐┌─┐┌─┐┌─┐┌┐┌┌┬┐┌─┐
* │ ├┤ ├─┤│││ ║║ ║╚═╗ ║ ├─┘├┬┘├┤ └─┐├┤ │││ │ └─┐
* ┴ └─┘┴ ┴┴ ┴ ╚╝╚═╝╚═╝ ╩ ┴ ┴└─└─┘└─┘└─┘┘└┘ ┴ └─┘
* _____ _____
* (, / /) /) /) (, / /) /)
* ┌─┐ / _ (/_ // // / _ // _ __ _(/
* ├─┤ ___/___(/_/(__(_/_(/_(/_ ___/__/_)_(/_(_(_/ (_(_(_
@luckyyang
luckyyang / fomo.sol
Created November 6, 2018 09:19 — forked from hayeah/fomo.sol
fomo3d contract
pragma solidity ^0.4.24;
/**
* @title -FoMo-3D v0.7.1
* ┌┬┐┌─┐┌─┐┌┬┐ ╦╦ ╦╔═╗╔╦╗ ┌─┐┬─┐┌─┐┌─┐┌─┐┌┐┌┌┬┐┌─┐
* │ ├┤ ├─┤│││ ║║ ║╚═╗ ║ ├─┘├┬┘├┤ └─┐├┤ │││ │ └─┐
* ┴ └─┘┴ ┴┴ ┴ ╚╝╚═╝╚═╝ ╩ ┴ ┴└─└─┘└─┘└─┘┘└┘ ┴ └─┘
* _____ _____
* (, / /) /) /) (, / /) /)
* ┌─┐ / _ (/_ // // / _ // _ __ _(/
* ├─┤ ___/___(/_/(__(_/_(/_(/_ ___/__/_)_(/_(_(_/ (_(_(_