Skip to content

Instantly share code, notes, and snippets.

@xiezefan
xiezefan / css_resources.md
Last active August 29, 2015 14:07 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@xiezefan
xiezefan / javascript_resources.md
Last active August 29, 2015 14:07 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@xiezefan
xiezefan / 0_reuse_code.js
Last active August 29, 2015 14:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@xiezefan
xiezefan / API service category
Created September 29, 2014 03:31
API service category
[
{
"id": "12",
"name": "类型4"
},
{
"id": "11",
"name": "类型3"
},
{
@xiezefan
xiezefan / gist:ca7eeac5170d3ade0d58
Created September 22, 2014 10:46
Service Item Object(Has option item)
{
"id": "5846",
"title": "北京限号提醒(下拉)",
"description": "北京限号早知道",
"create_time": 1411382610075,
"type": 0,
"client_fields": [
{
"key": "action",
"type": "selector",
@xiezefan
xiezefan / gist:1b3d23b49b07b033def2
Created September 18, 2014 12:41
Create Service JSON
//weather
{"title":"明天下雨提醒","description":"如果明天下雨提醒, 我会提醒你","category_id":"1","notify_url":"http://demo.91dd.cc:14000/v1/factory/weather","has_ding":false,"service_field":{"date":"1","action":"下雨"},"client_field":[{"key":"location","type":"client_service_selector","service_options":[{"name":"北京明天下雨提醒","fields":{"location":"北京"}},{"name":"重庆明天下雨提醒","fields":{"location":"重庆"}},{"name":"珠海明天下雨提醒","fields":{"location":"珠海"}},{"name":"长沙明天下雨提醒","fields":{"location":"长沙"}},{"name":"西安明天下雨提醒","fields":{"location":"西安"}},{"name":"南宁明天下雨提醒","fields":{"location":"南宁"}},{"name":"昆明明天下雨提醒","fields":{"location":"昆明"}},{"name":"呼和浩特明天下雨提醒","fields":{"location":"呼和浩特"}},{"name":"济南明天下雨提醒","fields":{"location":"济南"}},{"name":"厦门明天下雨提醒","fields":{"location":"厦门"}},{"name":"拉萨明天下雨提醒","fields":{"location":"拉萨"}},{"name":"上海明天下雨提醒","fields":{"location":"上海"}},{"name":"广州明天下雨提醒","fields":{"location":"广州"}},{"name":"深圳明天下雨提醒","fields":{"location":"深圳"}},{"name":"乌鲁木齐明天下雨提醒","fields":{"location":"乌鲁木齐"}},{"name":"贵阳明天下雨提醒","fields"
@xiezefan
xiezefan / gist:ee111cfe5a81b9814fb3
Created September 18, 2014 05:23
API GET /service/{serviceId}/{clientServiceId}.json Response
{
"id": "4e8395cf-fdaa-46ab-87db-2919ba7b2453",
"client_name": "上海明天下雨提醒",
"note_name": "我是备注名",
"service_name": "明天下雨提醒",
"service_id": "2798",
"service_description": "明天下雨提醒, 我会提醒你",
"tag": "ccs5dx382367j47v4m8cnbp3",
"client_fields": {
"location": "上海",
@xiezefan
xiezefan / gist:e91baadd4c1d2e94ffbc
Created September 18, 2014 05:20
API GET /service/{serviceId}.json Response
{
"id": "2798",
"title": "明天下雨提醒",
"description": "明天下雨提醒, 我会提醒你",
"create_time": 1410935520141,
"type": 0,
"client_fields": [
{
"key": "location",
"type": "city",
@xiezefan
xiezefan / gist:037fb067625a69a857ff
Last active August 29, 2015 14:06
API Service Follow Response
{
"id": "be49bbc5-01bb-4478-a8de-af06e40c617b",
"service_name": "明天下雨提醒",
"service_id": "2798",
"service_description": "明天下雨提醒, 我会提醒你",
"tag": "wpmg62o52fbp0dg2n035vhib",
"client_fields": {
"location": "深圳2"
},
"category": {
@xiezefan
xiezefan / gist:53c4c21b1fdf6b8938d6
Last active August 29, 2015 14:06
创建服务JSON 结构
//无客户端参数
{
"title": "明天下雨提醒",
"description": "明天下雨提醒, 我会提醒你",
"category_id": "1",
"notify_url": "http://127.0.0.1:9999"
}
//客户端参数
{{
"title": "明天下雨提醒",