Skip to content

Instantly share code, notes, and snippets.

View yardfarmer's full-sized avatar

explorer yardfarmer

  • Alibaba.inc
  • HangZhou
View GitHub Profile
@yardfarmer
yardfarmer / index.html
Created August 21, 2014 07:02
scrollLeft demo // source http://jsbin.com/vulor/2
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>scrollLeft demo</title>
<script src="http://code.jquery.com/jquery-1.10.2.js"></script>
<style id="jsbin-css">
div.demo {
background: #ccc none repeat scroll 0 0;
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-git2.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<div>
@yardfarmer
yardfarmer / Functionbind.js
Created August 20, 2014 05:06
Function.prototype.bind 实现方式
/**
* Created by cyk on 14-8-20.
*/
if(!Function.prototype.bind) {
Function.prototype.bind = function(obj) {
"use strict";
// 很巧妙的获取了数组的静态方法 slice
@yardfarmer
yardfarmer / Class.js
Created August 19, 2014 13:48
构造自己的类
/**
* Class build my Own class
* Created by cyk on 14-8-19.
*/
/*
* 很巧妙的办法
*/
var Class = function() {
"use strict";
/* ========================================================================
* Bootstrap: popover.js v3.2.0
* http://getbootstrap.com/javascript/#popovers
* ========================================================================
* Copyright 2011-2014 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */
+function ($) {
/* ========================================================================
* Bootstrap: dropdown.js v3.2.0
* http://getbootstrap.com/javascript/#dropdowns
* ========================================================================
* Copyright 2011-2014 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */
+function ($) {
/*! normalize.css v3.0.1 | MIT License | git.io/normalize */
/**
* 1. Set default font family to sans-serif.
* 2. Prevent iOS text size adjust after orientation change, without disabling
* user zoom.
*/
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Table with colspan and rowspan</title>
<link rel="stylesheet" href="css/table-with-colspan-rowspan.css" />
</head>
<body>
<table>
body {
font: 100% sans-serif; /* This results in Arial on Windows and Helvetica on OS X. */
}
table {
/* The default setting is border-collapse: separate;. By changing separate to collapse as shown below, the space between each table cell is removed. */
border-collapse: collapse;
-webkit-box-shadow: 3px 3px 7px #055584;
-moz-box-shadow: 3px 3px 7px #055584;
package com.codinglion.controller;
import com.codinglion.model.Text;
import com.codinglion.service.TextService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;