Skip to content

Instantly share code, notes, and snippets.

View songsiqi's full-sized avatar

songsiqi

  • Alibaba Inc.
  • Hangzhou, China
View GitHub Profile
Number Name Score Regex Length All match? Credit
 1 | Plain Strings| 207 | `foo`                                              | 3      | Yes        | 
 2 | Anchors      | 208 | `k$`                                               | 2      | Yes        |
 3 | Ranges       | 202 | `^[a-f]*$`                                         | 8      | Yes        |
 4 | Backrefs     | 201 | `(...).*\1`                                        | 9      | Yes        | gorhill (HN)
 5 | Abba         | 193 | `^(?!.*(.)(.)\2\1)`                                | 17     | Yes        | chingjun (HN) / josephlord (HN) 
 6 | A man, a plan| 177 | `^(.)[^p].*\1$`                                    | 13     | Yes        | hyp0 (HN)

7 | Prime | 286 | ^(?!(..+)\1+$) | 14 | Yes | josephlo

百度:Tangram

基本上就是个百度版jQuery,2.0版本使用链式API,更像了。
配套的还有UI库Magic和模版引擎BaiduTemplate(和ejs很像)

腾讯:JX

理念在介绍里面写的很详细,代码清晰,注释丰富,可读性很好,但只有文档没有实例。
比较传统的大块头框架,本质上来说还是一堆工具方法和对象的堆积,提供了很基本的模块化的开发方式,但没有模块间的依赖关系支持。

@songsiqi
songsiqi / img2txt.js
Created September 29, 2013 08:30 — forked from justjavac/img2txt.js
var cv = document.getElementById('cv');
var c = cv.getContext('2d');
var txtDiv = document.getElementById('txt');
var fileBtn = document.getElementById("up-button");
var img = new Image();
img.src = 'a.jpg';
img.onload = init; // 图片加载完开始转换
fileBtn.onchange = getImg;
// 根据灰度生成相应字符
[
{
"spec name": "CSS Animations",
"uri": "http://www.w3.org/TR/css3-animations",
"category": "css-property",
"Name": "animation-name",
"Value": "<single-animation-name> [\n ‘,’ <single-animation-name> ]*",
"Initial": "‘none’",
"Applies To": "all elements, ::before and ::after pseudo-elements",
"Inherited": "no",
@songsiqi
songsiqi / scratchcard-demo.html
Created July 28, 2013 12:10
页面刮奖效果Demo
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>刮奖效果</title>
</head>
<body>
<div id="zjdiv" style="width:120px; height:30px; text-align:center;"></div>
<script type="text/javascript">
var down = false; // 标记鼠标是否按下

IMPORTANT! Remember to check out the wiki page at https://github.com/bebraw/jswiki/wiki/Game-Engines for the most up to date version. There's also a "notes" column in the table but it simply does not fit there... Check out the raw version to see it.

This table contains primarily HTML5 based game engines and frameworks. You might also want to check out the [[Feature Matrix|Game-Engine-Feature-Matrix]], [[Game Resources]] and [[Scene Graphs]].

Name Size (KB) License Type Unit Tests Docs Repository Notes
Akihabara 453 GPL2, MIT Classic Repro no API github Intended for making classic arcade-style games in JS+HTML5
AllBinary Platform Platform Dependent AllBinary 2D/2.5D/3D n

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">