This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autocmd! bufwritepost .vimrc source ~/.vimrc | |
set showtabline=2 | |
set guitablabel=%t | |
set ignorecase smartcase | |
set smarttab | |
set wrap | |
set whichwrap+=l,h | |
set number | |
set history=50 | |
set autoread |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
$('#example').dataTable({ | |
? | |
"sScrollX": "100%", //表格的宽度 | |
"sScrollXInner": "110%", //表格的内容宽度 | |
"bScrollCollapse": true, //当显示的数据不足以支撑表格的默认的高度时,依然显示纵向的滚动条。(默认是false) | |
"bPaginate": true, //是否显示分页 | |
"bLengthChange": true, //每页显示的记录数 | |
"bFilter": true, //搜索栏 | |
"bSort": true, //是否支持排序功能 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Rsync Cc@Snp | |
## function | |
default(){ | |
echo ' | |
##################### | |
1,创建服务端 | |
##################### | |
2,配置客户端 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script language="javascript" type="text/javascript" src="/js/jquery.js"></script> | |
<script language="javascript" type="text/javascript" src="/js/bootstrap.min.js"></script> | |
<script language="javascript" type="text/javascript" src="/js/jquery.dataTables.js"></script> | |
<script type="text/javascript" charset="utf-8" src="/js/ZeroClipboard.js"></script> | |
<script type="text/javascript" charset="utf-8" src="/js/TableTools.js"></script> | |
<script type="text/javascript" charset="utf-8" src="/js/dataTables.bootstrap.js"></script> | |
{#<link rel="StyleSheet" type="text/css" href="/css/bootstrap-responsive.min.css" />#} | |
{#<link rel="StyleSheet" type="text/css" href="/css/bootstrap.min.css" />#} | |
{#<link rel="StyleSheet" type="text/css" href="/css/style.css" />#} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
<link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/media/images/favicon.ico" /> | |
<title>DataTables example</title> | |
<style type="text/css"> | |
@import "../../media/css/demo_page.css"; @import "/media/css/header.ccss"; | |
@import "http://twitter.github.com/bootstrap/assets/css/bootstrap.css"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends "base.html" %} | |
{% block content %} | |
<div id="nav" class="container nav"> | |
<div id="nav" class="container nav"> | |
<form class="form-inline " action="/billing/role_chart/{{ role }}/" method="POST" id="submitid"> | |
<label class="control-label" for="inputEmail">开始时间</label> | |
<input class="span3" type="text" onclick="WdatePicker({dateFmt:'yyyy-MM-dd H:m:s',readOnly:true})" | |
name="start_time" value="{{ start_time|default_if_none:'' }}" id="start_timeID" /> | |
<label class="control-label" for="inputEmail">结束时间</label> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script language="javascript" type="text/javascript"><!-- | |
/** | |
* 对Date的扩展,将 Date 转化为指定格式的String | |
* 月(M)、日(d)、12小时(h)、24小时(H)、分(m)、秒(s)、周(E)、季度(q) 可以用 1-2 个占位符 | |
* 年(y)可以用 1-4 个占位符,毫秒(S)只能用 1 个占位符(是 1-3 位的数字) | |
* eg: | |
* (new Date()).pattern("yyyy-MM-dd hh:mm:ss.S") ==> 2006-07-02 08:09:04.423 | |
* (new Date()).pattern("yyyy-MM-dd E HH:mm:ss") ==> 2009-03-10 二 20:09:04 | |
* (new Date()).pattern("yyyy-MM-dd EE hh:mm:ss") ==> 2009-03-10 周二 08:09:04 | |
* (new Date()).pattern("yyyy-MM-dd EEE hh:mm:ss") ==> 2009-03-10 星期二 08:09:04 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Create your views here. | |
import decimal | |
from django.db.models import Sum | |
from django.http import HttpResponse | |
import MySQLdb, json, datetime, time | |
from django.shortcuts import render_to_response | |
from django.template import RequestContext |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class='example'> | |
<table cellspacing='0'> | |
<thead> | |
<tr class='odd'> | |
<th>Title</th> | |
<th>One</th> | |
<th>Two</th> | |
<th>Three</th> | |
<th>Four</th> | |
<th>Row Total</th> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class='example'> | |
<table cellspacing='0'> | |
<thead> | |
<tr class='odd'> | |
<th>Title</th> | |
<th>One</th> | |
<th>Two</th> | |
<th>Three</th> | |
<th>Four</th> | |
<th>Row Total</th> |
NewerOlder