Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

Boom Lee teabyii

💭
I may be slow to respond.
View GitHub Profile
@teabyii
teabyii / scroll.html
Created Jan 19, 2016
chrome scroll issue
View scroll.html
<!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
#!/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
{"sig":"0ce736f15f981be6f8bd16081ebd4adbd5d3d90ad61ec5af3865079f0722abacdd996399c0940ba711d8bb234e5702a5b5332d1ac474f2ae14795c3a164383271","msghash":"32213167cc4689a6350d08da5a5809d73a9cb655bfb7846aed4222d63960aa3f"}
View modify-git-author.sh
#!/bin/sh
git filter-branch --env-filter '
an="$GIT_AUTHOR_NAME"
am="$GIT_AUTHOR_EMAIL"
cn="$GIT_COMMITTER_NAME"
cm="$GIT_COMMITTER_EMAIL"
if [ "$GIT_COMMITTER_EMAIL" = "[Your Old Email]" ]
View main.dart
import "dart:async";
void main() {
run();
}
Future<void> run() async {
int count = 0;
final timer = Timer.periodic(Duration(seconds:1), (timer) {
print(count++);