Skip to content

Instantly share code, notes, and snippets.

@lanbos
lanbos / aqa-cards-name-conf.json
Last active November 21, 2019 06:05
aqa-cards-name-conf.json
[
{
"name": "home",
"grayName": "quickapp:com.application.demo",
"rpkName": "com.application.demo",
"name_cn": "小爱app首页",
"domain": [
""
],
"appid": 112,
@lanbos
lanbos / easing.js
Created August 20, 2019 02:24 — forked from gre/easing.js
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {
// no easing, no acceleration
linear: function (t) { return t },
// accelerating from zero velocity
easeInQuad: function (t) { return t*t },
// decelerating to zero velocity
@lanbos
lanbos / tempReadme.txt
Last active July 16, 2019 04:11
readme模版
# projectName
## 页面URL
* 生产环境:
* staging测试环境:
## wiki
* 接口文档:
@lanbos
lanbos / if_shadiao.js
Created August 29, 2018 03:18
判断好友回复的哈哈哈.js
function if_shadiao(str){
var flag=str.length
if(flag<6){
console.log('表面朋友');
}else if(flag==6){
console.log('朋友');
}else if(flag>6&&flag<=8){
console.log('觉得你有趣');
}else if(flag>8&&flag<=10){
console.log('喜欢你,才怪');
@lanbos
lanbos / install_python.py
Last active September 24, 2019 13:05
lanbos_py
#!/usr/bin/python
#coding:utf-8
'''
date:9/2/17 18:03 PM
author:lockey
email:[email protected]
desc:python自动化安装用户指定版本的python环境
'''
#导入Python的系统编程操作模块
import os
@lanbos
lanbos / nl.sh
Created August 3, 2017 06:20 — forked from yyx990803/nl.sh
npm list only top level modules.
alias ng="npm list -g --depth=0 2>/dev/null"
alias nl="npm list --depth=0 2>/dev/null"