• Stars
    star
    316
  • Rank 132,587 (Top 3 %)
  • Language
    JavaScript
  • Created about 9 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Code Snippets

Snippets

很多语言、很多配置、很多语法,太多太多东西,不能单靠大脑来记忆。本应用 收集了一些平时常用以及网上寻觅的代码片段,并且在页面中提供了搜索功能,可以快速找到我们平时记下的代码,这里保存的部分片段还是十分有价值的。

本应用对应的网址为: http://snippets.barretlee.com

snippet

贡献代码

如果你希望帮助丰富代码片段库,可以操作如下流程:

git clone https://github.com/{YOUR_GITHUB_NAME}/snippets.git
cd snippets
git checkout -b gh-pages
cd snippets
# 选择你想提交的文件类型,比如 html
cd html
touch {YOUR_CONTRIBUTE_FILE_NAME}.snippet

其中,{YOUR_CONTRIBUTE_FILE_NAME}.snippet 的格式为:

---
title: {NAME}
---

{CONTENT}

可以使用 markdown 语法。

  • 提交代码
git add --all
git commit -m "add file html/{YOUR_CONTRIBUTE_FILE_NAME}.snippet"
git push origin gh-pages
  • 然后在你的 PR 页面提交一个 PR 到 barretlee/snippets 的仓库

关于

小胡子哥

小胡子哥的联系方式

LISCENSE

MIT LISCENSE.

自由分享使用,注意保留署名。

More Repositories

1

performance-column

🚅 性能专栏(Performance Column)
1,202
star
2

online-markdown

A online markdown converter specially for Wechat Public formatting.
JavaScript
868
star
3

cloudflare-proxy

Cloudflare Worker 代理请求 ChatGPT API,支持 Stream 流式输出
JavaScript
695
star
4

autoconfig-mac-vimrc

autoconfig mac vimrc with bundle
Vim Script
514
star
5

blogChat

Chat room source code for Barret Lee's Personal Blog.
HTML
498
star
6

kindleBookMaker

Kindle Book Maker with KindleGen, Make Book from RSS/single URL/directory and so on.
JavaScript
393
star
7

algorithms

All algorithms writing with javascript in the book 'Algorithms Fourth Edition'.
JavaScript
331
star
8

daily-algorithms

算法,每日练习
JavaScript
227
star
9

blog

Blog & Blog System
HTML
177
star
10

SuperMarker

An automatic marking tool better than mark man.
JavaScript
150
star
11

chatgpt-text-to-midjourney-image

Optimize the prompt using ChatGPT, then send it to Replicate to create an image.
JavaScript
131
star
12

javascript-multiple-download

JavaScript多文件下载
JavaScript
95
star
13

lazyload

Lazyload images or lazy execute scripts. (图片脚本懒加载)
HTML
91
star
14

autocreate-ca

autocreate cetificate authority
Shell
63
star
15

babel-plugin-ast

使用 babel 进行 AST 分析和处理
JavaScript
45
star
16

myPromise

promise
JavaScript
42
star
17

proxyer

一键完成 VPS 裸机的代理程序安装(含证书)
Shell
41
star
18

translation-plan

翻译计划
36
star
19

Node-Daily-Practice

每天写个小程序。
30
star
20

alfred-workflow-paste-image-to-file

Paste image to file from clipboard to desktop
AppleScript
25
star
21

node-debug

Node Debug Demo
HTML
22
star
22

MiniQuery

MiniQuery,寥寥几行代码,实现一个简单的元素选择器,兼容低版本 IE。
JavaScript
19
star
23

h5crash

H5 容器 Crash 问题研究
HTML
17
star
24

performance

Javascript Performace Tester
JavaScript
14
star
25

ddns

将本机的外网 ip 推到 DNSPod
PHP
11
star
26

hexo-search-plugin-snippets

一些辅助 `hexo-generator-search` 插件的代码片段,博客右上角看效果 ---->
JavaScript
11
star
27

duoshuo-migrate-to-disqus

将多说评论迁移到disqus,nodejs程序
JavaScript
10
star
28

dive-into-node-stream

Dive Into Node Stream
JavaScript
9
star
29

debugging-in-vscode-tutorial

Demostration of Debugging in vscode.
HTML
8
star
30

xss-filter-bypass

xss-filter-bypass
JavaScript
8
star
31

Micro-Share

微分享
HTML
4
star
32

node-legacy-debug

Node Legacy Demo
JavaScript
3
star
33

git-rebase

Git Rebase Demo
HTML
2
star
34

weibo

weibo list
2
star
35

pocket

pocket list
2
star
36

parser-learning

编程语言实现模式
JavaScript
1
star
37

Rime-config

Rime Config
Shell
1
star
38

dht

dht
JavaScript
1
star
39

gitbook-plugin-tbobook

JavaScript
1
star
40

slides

小胡子哥的演讲
JavaScript
1
star
41

3d-demo

Collection of 3D Demo
1
star
42

base64-utf8-transfer

base64 for utf8 character
JavaScript
1
star
43

hexo-lazyload-image-enhance

a hexo plugin which is used to have all images support lazyload, with the help of this functionality, it will improve lots of the loading proformance.
JavaScript
1
star
44

ppt

1
star
45

skylarblog

blog for skylar
JavaScript
1
star