This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Page({ | |
data:{ | |
curIndex: 1 // 此处可指定初始状态显示第几个页面 | |
}, | |
onSwiperChange: function(event) { | |
this.setData({ curIndex: event.detail.current }) | |
} | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Material Design 风格的浮动动作按钮(Floating Action Button) | |
用法: | |
<fab catchtap="someAction"/> | |
<fab class="close" catchtap="someAction"/> | |
<fab class="confirm" catchtap="someAction"/> | |
<fab class="{{ canPublish ? '' : 'hidden' }}" catchtap="someAction"/> | |
在上述几个class做动态切换时,会有动画效果。 | |
*/ | |
fab { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Created by Vhyme on 2017/7/13. | |
// | |
/* Usage Example: | |
func layoutCourseData() { | |
coursePage.removeAllSubviews() | |
// 遍历课程数据 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json, urllib | |
import tornado.web | |
import tornado.gen | |
from datetime import date, timedelta | |
from tornado.httpclient import AsyncHTTPClient, HTTPRequest | |
class NewNewHandler(tornado.web.RequestHandler): | |
@tornado.web.asynchronous | |
@tornado.gen.engine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
32 Combinations of CSS3 flexbox | |
Usage Example: <div flex="↖-↗~"/> (row, wrap, align=flex-start + justify=space-between) | |
<div flex="|·"> (column, center + center) | |
<p flex="!"/> (flex-grow: 1) | |
</div> | |
1. row: - (ALIGN JUSTIFY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const axios = require('axios'); | |
const read = require('readline-sync'); | |
const program = require('commander'); | |
program | |
.version('1.0.0') | |
.option('-u, --username [username]', '设置用户名') | |
.option('-p, --password [password]', '设置密码') | |
.option('-d, --daemon [seconds]', '每隔数秒轮询网络状态,一旦退出自动重新登录', '0') | |
.parse(process.argv); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
monitoring = true | |
main = -> | |
send '监控程序已上线' | |
loop | |
if not monitoring | |
send '监控程序已退出' | |
break | |
downCount = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
微机原理与接口技术 答案抓取器 | |
用法: | |
1. 使用 Chrome 浏览器; | |
2. 登录进入作业列表页面,要求所有作业都为已完成、且可查看答案的状态; | |
3. 地址栏输入地址进入框架内部:223.3.65.249/student/Home_Management/Show_All_Homework_CN.aspx; | |
4. 打开 F12 控制台,复制粘贴执行下列代码,待显示结果后,保存页面为 PDF。 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<meta name="viewport" content="width=375, height=667, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/> | |
<style> | |
:root { | |
font-family: 'PingFang SC'; | |
color: #fff; | |
text-shadow: 0 1px 5px rgba(0, 0, 0, .2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See https://github.com/rikumi/iconsur | |
yarn global add iconsur | |
sudo iconsur set /Applications/Android\ File\ Transfer.app -k Airdroid | |
sudo iconsur set /Applications/Android\ Studio.app/ -l -c 7a5 -s 0.8 | |
sudo iconsur set /Applications/DaisyDisk.app/ -l | |
sudo iconsur set /Applications/Decompressor.app/ -l | |
sudo iconsur set /Applications/Discord.app/ | |
sudo iconsur set /Applications/Google\ Chrome.app/ | |
sudo iconsur set /Applications/IINA.app/ -l -c 161d22 |
OlderNewer