Volume
Catalog
HelloGitHub Vol.2
HelloGitHub shares interesting and beginner-friendly open source projects on GitHub, updated on the 28th of each month. Here you will find fun and beginner-level open source projects, open source books, practical projects, and enterprise-level projects, allowing you to quickly appreciate the charm of open source and develop an interest in it.
CSS
JavaScript
Star 4.6k
Fork 360
9 years ago
阿里开源的项目,一套 React 框架动效解决方案,可以帮助开发者,更容易的在项目中使用动效。同时可以方便快捷地制作一个公司的介绍页,在线演示
Star 1.3k
Fork 183
9 years ago
背景加载完事件,示例代码:
<script type="text/javascript" src="http://catmull.uk/downloads/bg-loaded/bg-loaded.js"></script> <script type="text/javascript"> $('body').bgLoaded({ afterLoaded : function() { alert('Background image done loading'); } }); </script>
Python
Star 3.3k
Fork 1k
9 years ago
老齐的 Python 算法教程
9、
mincss
Star 854
Fork 92
9 years ago
Python 写的用来找到 CSS 中没有用到的代码片段,并删除。适用于:想要做一个页面,但是不会写 CSS 人。示例代码如下:
#coding:utf-8 #!/usr/bin/env python from __future__ import print_function import sys, os sys.path.insert(0, os.path.abspath('.')) from mincss.processor import Processor # 这里改成想要参考的页面 URL = 'http://localhost:9000/page.html' def run(): p = Processor() p.process(URL) # 输出INlink的css的简化前和简化后的css代码 print("INLINES ".ljust(79, '-')) for each in p.inlines: print("On line %s" % each.line) print('- ' * 40) print("BEFORE") print(each.before) print('- ' * 40) print("AFTER:") print(each.after) # 输出link引用的css的简化前和简化后的css代码 print("LINKS ".ljust(79, '-')) for each in p.links: print("On href %s" % each.href) print('- ' * 40) print("BEFORE") print(each.before) print('- ' * 40) print("AFTER:") print(each.after) if __name__ == '__main__': run()
10、
python-gems
Star 668
Fork 160
9 years ago
有趣的 Pyhton 代码片段集合
11、
python-goose
Star 4k
Fork 786
9 years ago
Goose 用于文章提取器,提取中文内容的示例代码:
>>> from goose import Goose >>> from goose.text import StopWordsChinese >>> url = 'http://www.bbc.co.uk/zhongwen/simp/chinese_news/2012/12/121210_hongkong_politics.shtml' >>> g = Goose({'stopwords_class': StopWordsChinese}) >>> article = g.extract(url=url) >>> print article.cleaned_text[:150] 香港行政长官梁振英在各方压力下就其大宅的违章建筑(僭建)问题到立法会接受质询,并向香港民众道歉。 梁振英在星期二(12月10日)的答问大会开始之际在其演说中道歉,但强调他在违章建筑问题上没有隐瞒的意图和动机。 一些亲北京阵营议员欢迎梁振英道歉,且认为应能获得香港民众接受,但这些议员也质问梁振英有
Other
Star 664
Fork 190
9 years ago
Leetcode OJ 的 Python 算法实现
Catalog
- CSS
- JavaScript
- Python
- Other