Coder Social home page Coder Social logo

justnotes's Introduction

JustNotes

(欢迎查看Issues)

1、javaweb,android,node.js各种不错的项目汇总

2、常用的不错的网址汇总:如阿里的Icon库。

3、面试相关汇总

android开源开源组件使用推荐(车协app项目搭建准备工作)

justnotes's People

Contributors

dpc761218914 avatar

Stargazers

 avatar XuZhao avatar Cuity avatar Mingyi avatar  avatar  avatar 李小义 avatar StevenEasonLee avatar

Watchers

James Cloos avatar Mingyi avatar  avatar  avatar

justnotes's Issues

DCloud公司的mui项目汇总,适合做webapp。

1、mui的商城类app例子
https://github.com/z6269773/mui-

2、红旅动漫app例子
https://github.com/tomoya92/hltmapp-mui

3、mui实现的cnode社区
https://github.com/stellar91/Cnode

4、使用mui框架,湖南省江华县旅游类app(蛮不错)
https://github.com/lymcsu/MYYD

5、将一个原生的APP用MUI框架实现,并总结开过过程中的一些注意事项 HBuilder,榆林新青年。
https://github.com/sunny66666666/YuLinNewsDemo

egg源码学习记录

1、Egg在调用controller/service文件夹下的模块时,不需要require,如何实现的?
在原生Node/Koa中,当我们需要调用其他模块时,需要require, 非常繁琐。(java体系都是auto import)
但在Egg中,我们可以通过app.controller.文件名的形式直接调用。
猜想,是不是在app文件夹下任意写一个文件夹xxx,再在xxx下写一个yyy.js, 就可以实现app.xxx.yyy直接调用?实践结果是No。
先说结论,app/加文件夹的方式是实现不了上述的目的的,但在controller/service文件夹里嵌套文件夹,可以实现。这个在官方文档里没有直接写明。
原理:
Egg在启动worker进程时,会执行loadController, loadService等方法,遍历解析app/controller, app/service文件夹下的所有js文件,把导出的模块进行挂载, 对应实现模块是egg-core。
参考: https://blog.csdn.net/wangkai0681080/article/details/79665724

vscode简单配置断点调试

1、添加配置:在lanuch.js中添加配置、

{
"type": "node",
"request": "attach",
"name": "Attach by Process ID",
"processId": "9108"
}

2、 console.log('process====='+process.pid); 在app.js中打印进程pid。

调试的时候,每次启动进程pid不一样。每次启动需要将pid添加在配置中,然后启动调试。

JiaQuan_APP数据库以及接口设计

数据库设计:

1、用户:user

id:主键;
userName:用户姓名;
phoneNum:手机号码;
IMEI:手机唯一标识码;
isPay:是否付钱;
deadline:截止时间;
createTime:账户创建时间;
updateTime:信息更新时间;

2、客户;customer

id:主键;
userId:用户id;
customerName:客户姓名;
address:客户小区地址;
phoneNum:客户电话;
roomNum:房间号;
remark:备注;
currentMsg:最新收到的短信信息;

3、模板;templet

id:主键;
userId:创建者id;
templetName:模板名称;
content:模板内容;
createTime:创建时间;
updateTime:更新时间;

4、短信记录;msg

id:主键;
userId:发送人id;
customerId:接收人id;
msg:短信内容;
msgTime:短信发送时间;

lodash剔除嵌套数据无关字段和对象字段

`var _ = require('lodash');
/*

  • 减少传递给前端的数据字段。
  • 例如这里,删除掉one、two、three、four以及对象数组中的age字段,
  • 主要使用pick方法,对象数组需要使用递归处理
  • */
    let data={"classID":"123456",
    "className":"qinghua",
    "one":"one",
    "two":"two",
    "three":"three",
    "four":"four",
    "employees": [
    { "firstName":"John" , "lastName":"Doe" , "age":"12" },
    { "firstName":"Anna" , "lastName":"Smith" , "age":"13"},
    { "firstName":"Peter" , "lastName":"Jones" , "age":"14"}
    ]};

//遍历,对象数组然后pick所需要的字段
.forEach(data.employees,function (value,index) {//若一个参数,返回的便是其value值
data.employees[index]=
.pick(value, 'firstName', 'lastName');
// console.log(.pick(value, 'firstName', 'lastName'));//22 33 11 55
});
data=
.pick(data, 'classID', 'className','employees');
//输出选择的结果
console.log(data);

/*打印的结果

  • { classID: '123456',
    className: 'qinghua',
    employees:
    [ { firstName: 'John', lastName: 'Doe' },
    { firstName: 'Anna', lastName: 'Smith' },
    { firstName: 'Peter', lastName: 'Jones' }
    ]}
  • */`

apizza使用在线文档方法

1、下载 apizza-SQ 3.0 插件
https://blog.csdn.net/DK_Fashion/article/details/79815453

2、谷歌浏览器无法启动插件
https://blog.csdn.net/a497785609/article/details/52097066

3、可以使用apizza模拟请求,生成api文档,很好用,导出html文件

4、某位网友做好的在线的集成的 天气类的免费api
https://apizza.net/console/project/8e0342415ad3df5643409045ec8a5e75/browse?api=adde793df46746cdb0641b014a12ea18

5、写的很好的bolg服务api
http://sunshinelzb.coding.me/#b29dbaaaf22344129957cf127ca3c199

android项目源码汇总

1、一款基于LBS的美食发现APP(AS源代码) :https://github.com/Sambor123/foodie-app (蛮不错,app网上有发布,可浏览)
后台java框架源代码:https://github.com/Sambor123/food-server

2,新闻浏览类APP https://github.com/xinghongfei/LookLook (代码完整下载可以运行)

3,校园服务类APP https://github.com/MZCretin/CollegeHelper
app使用地址: http://zhushou.360.cn/detail/index/soft_id/3281579?recrefer=SE_D_%E6%9C%A8%E6%9C%A8%E6%A0%A1%E5%9B%AD%E5%8A%A9%E6%89%8B#nogo

4.汽车助手APP http://apk.hiapk.com/appinfo/com.classic.car (有源代码,页面清新) http://pan.baidu.com/s/1pLPFXQb

5,校园记账小软件 https://github.com/MZCretin/Money (页面清新)

6,洛克商城APP源代码安卓巴士 http://www.apkbus.com/forum.php?mod=viewthread&tid=266570&extra=page%3D3%26filter%3Ddigest%26orderby%3Ddateline%26digest%3D1%26sortid%3D12

7.IT阅读学习类的开源软件 https://github.com/sfsheng0322/Bingo

8、菜鸟系列 http://www.cniao5.com/ 官网上还是有蛮多项目值得学习。(代码不完整)

菜鸟商城APP (AS的)有部分视频 https://github.com/yxs666/cniao5-shop
官网地址 http://www.cniao5.com/course/comment/10073

菜鸟新闻APP https://github.com/yxs666/cniao5-news

菜鸟窝企业项目课程《菜鸟微博》源码 https://github.com/yxs666/cniao5-weibo

8、洛克商城APP https://github.com/Shuyun123/LKShop (项目结构特别好,值得借鉴,车协app结构可以用这个)

Android开源组件介绍

1、android注解框架 butterknife
优点:省去写findViewById以及Onclick监听事件冗长代码,(已使用,star多)
https://github.com/JakeWharton/butterknife 一些用法介绍https://github.com/mengdd/AndroidButterKnifeSample

2、android UI相关
https://github.com/wasabeef/awesome-android-ui android UI各种好用的组件集合
https://github.com/navasmdc/MaterialDesignLibrary MaterialDesign控件设计风格特别好用
http://www.jianshu.com/p/1e6eed09d48b MaterialDesign项目使用介绍
https://github.com/burgessjp/MaterialDesignDemo 实例
https://github.com/chenyangcun/MaterialDesignExample 豆瓣书API在MeterialDesign介绍(花千骨)

https://github.com/pedant/sweet-alert-dialog 对话框(star最多,有动画效果的对话框,)
https://github.com/afollestad/material-dialogs (简洁,就用它了)

https://github.com/wdullaer/MaterialDateTimePicker 时间选择器

http://www.jianshu.com/p/551266dbd735 还不错的EditText实现方法

https://github.com/futuresimple/android-floating-action-button 悬浮按钮(和知乎一样的)
https://github.com/rengwuxian/MaterialEditText (酷炫的EditText输入框)
http://www.tuicool.com/articles/7BJBZb ToorBar详解还不错

app 切换皮肤介绍 http://www.jianshu.com/p/af7c0585dd5b

Android 主题换肤的库子
https://github.com/burgessjp/ThemeSkinning
https://github.com/hongyangAndroid/AndroidChangeSkin (star最多)

3、图片处理框架(facebook) 目前最火
https://github.com/facebook/fresco
https://github.com/bumptech/glide (google推出,专注平滑展示图片)

https://github.com/hdodenhof/CircleImageView 圆形头像图片处理

4、网路访问框架
okhttps这里可以直接用okhttputils封装好了okhttps的工具类
https://github.com/hongyangAndroid/okhttputils
https://github.com/jeasonlzy/okhttp-OkGo (签到APP用到了)
https://github.com/square/retrofit retrofit 更好的配合restful API使用
使用教程 http://www.open-open.com/lib/view/open1453552147323.html

5、json和javabean转换工具类GSON
http://blog.csdn.net/xin917480852/article/details/50891092 转化方法
https://github.com/zzz40500/GsonFormat gson工具类

6、app主体结构
https://github.com/hlgao/FragmentTabHost (fragment+viewpage+tab)底部 (FragmentTabHost + ViewPager实现Android底部Tab)
代码结构 参考:
https://github.com/xinghongfei/LookLook 新闻阅读类软件
https://github.com/xulailing/CNiaoShop 菜鸟商城

https://github.com/JohnTsaiAndroid/CoolMarket 仿酷市场的Demo,MaterialDesign风格使用

7、底部菜单的实现
fragmentTabHost

8、图文列表使用
recycleView 是listView的升级版
SwipeRefreshLayout加上recyleview 下拉刷新,上拉加载更多
https://github.com/android-cjj/Android-MaterialRefreshLayout (SwipeRefreshLayout升级版,可以有更多好看的特效,推荐使用) 菜鸟窝上的教程http://blog.csdn.net/kakayang2012/article/details/51764206

* 9、android开发规范*
http://tianshaojie.com/android-code-style/ (命名可以参考)

10、首页图片轮播

https://github.com/youth5201314/banner Android广告图片轮播控件,支持无限循环和多种主题,可以灵活设置轮播样式、动画、轮播和切换时间、位置、图片加载框架等!
https://github.com/daimajia/AndroidImageSlider 菜鸟商城图片轮播

https://github.com/bingoogolapple/BGABanner-Android (广告轮播新一些,使用简单一点儿)

11、图片查看组件,支持手势缩放

https://github.com/chrisbanes/PhotoView

12、android工具类的使用
https://github.com/Blankj/AndroidUtilCode

13、省心省力的Item布局
https://github.com/maimingliang/BaseItemLayout

Node.js微信公众号开发相关填坑记

1、nodejs实现微信授权,获取微信用户信息介绍。(测试可用)
详细介绍1:http://blog.csdn.net/yolo0927/article/details/54382632
详细介绍2:http://www.jianshu.com/p/c290afd90ffd
填坑1:return_uri需要用转义字符替换://。
填坑2:rul传递参数需要将中文编码一下,即var username= encodeURI(“科比”),这样才能传递参数。

2、nodejs中微信公众号开发-接口配置和签名验证(测试可用)
详细介绍:http://blog.csdn.net/zzwwjjdj1/article/details/52222137
填坑1:app.js中的代码app.use(utils.sign(config),next); 认证完成以后,这句代码需要注释掉,不然会影响项目的正常运行。

3、nodejs创建微信公众号菜单(1030记待测试)
详细介绍:http://blog.csdn.net/WificamSDK7/article/details/62426627

4、Node.js接入微信jssdk的正确可用的思路。
http://www.jb51.net/article/118729.htm
原文地址:http://www.cnblogs.com/wuyuchang/p/7170949.html
这里的代码如果看不懂请参考:箭头函数 https://yq.aliyun.com/articles/3163

egg配置中间件问题。middleware的配置

1、如果配置全局使用的中间件,需要在config.default.js配置文件中配置,如果想对某个路径进行匹配或者限行可以使用match和ignore。

2、如果不想对全局进行中间件配置,就不能在config.default.js文件中配置,而是之间以文件的形式引入,例如我再middleware中写了token校验的配置,我们在需要使用的路由中引入就好了,如:

router.get('/test_token',checkToken,controller.userAccess.adduser);

3、同时可以进行多个验证,例如,对接口首先进行token验证,再进行权限验证,路由就可以这样写: router.get('/test_token_authority',checkToken,checkAuthority,controller.userAccess.adduser);

从这里我们可以看到中间件还是一个洋葱模型。 以await next()进行分割。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.