View scroll.html
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Scroll test</title> | |
</head> | |
<body> | |
<div style="height:1800px"> | |
hello world | |
</div> |
View pre-commit
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
#!/bin/bash | |
# 只检查提交的 src 下的 js 文件 | |
eslint=./node_modules/.bin/eslint | |
result=0 | |
for file in `git diff --cached --name-only` | |
do | |
if [[ $(echo $file | grep -E "^src\/.*\.js$" | wc -l) -gt 0 ]]; | |
then |
View press.one
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
{"sig":"0ce736f15f981be6f8bd16081ebd4adbd5d3d90ad61ec5af3865079f0722abacdd996399c0940ba711d8bb234e5702a5b5332d1ac474f2ae14795c3a164383271","msghash":"32213167cc4689a6350d08da5a5809d73a9cb655bfb7846aed4222d63960aa3f"} |
View main.dart
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 "dart:async"; | |
void main() { | |
run(); | |
} | |
Future<void> run() async { | |
int count = 0; | |
final timer = Timer.periodic(Duration(seconds:1), (timer) { | |
print(count++); |
OlderNewer