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
[user] | |
name = LeezQ | |
email = [email protected] | |
[push] | |
default = simple | |
[alias] | |
st = status | |
co = checkout | |
ci = commit | |
br = branch |
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
/* | |
* css线性渐变: | |
* http://www.w3cplus.com/content/css3-gradient | |
*/ | |
background: -webkit-linear-gradient(top,#fff,#ededed, #fff); | |
/* | |
* 带有角度的 | |
*/ | |
background:-webkit-linear-gradient(45deg, #ef3c60 0, #f55679 50%, #f66c8b 50%, #f76f8d 100%); |
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
$.ajax({ | |
url: '/twitter/newtwitter', | |
type: "POST", | |
timeout: 60000, | |
data: data, | |
dataType: 'json', | |
success: function(json){ | |
if (json == null) { | |
alert(MGLANG.msgTimeout); | |
} else { |
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
(function($) { | |
/** | |
* code from stackoverflow: | |
* http://stackoverflow.com/questions/1184624/convert-form-data-to-js-object-with-jquery | |
* | |
* 用于处理 serializeAray 数据后格式 | |
* | |
* <form id="form"> | |
* <input type="text" name="lname" value="lee"/> | |
* <input type="text" name="fname" value="zq"/> |
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
(function(factory){ | |
//判断客户端还是服务端 | |
var isWindow = ( typeof window !== 'undefined' ? true : false ); | |
var global = ( isWindow ? window : this ); | |
if (typeof module !== 'undefined' && module.exports) { | |
module.exports = factory(); | |
} | |
// AMD RequireJS | |
else if (typeof define !== 'undefined' && define.amd) { |
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
/** | |
* system modules | |
* @type {[type]} | |
*/ | |
var fs = require('fs'); | |
var exec = require('child_process').exec; | |
/** | |
* gulp node modules | |
* @type {[type]} |
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
module.exports = { | |
entry: { | |
config_index: "./src/config_event/config_index.js", | |
new_event: "./src/new_event/new_event.js", | |
event_list: "./src/event_list/event_list.js", | |
}, | |
output: { | |
path: 'dist/src' , | |
filename: "[name].js" |
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
import { Component } from "React"; | |
export var Enhance = ComposedComponent => class extends Component { | |
constructor() { | |
this.state = { data: null }; | |
} | |
componentDidMount() { | |
this.setState({ data: 'Hello' }); | |
} | |
render() { |
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
.swipe-wrap > div a { | |
-webkit-transform-style: preserve-3d; | |
display: block; | |
} | |
.swipe-wrap a img { | |
position: relative; | |
top: 50%; | |
transform: translateY(-50%); | |
} |
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
simply use a 'script' tag with a dot after. | |
script. | |
var users = !{JSON.stringify(users).replace(/<\//g, "<\\/")} |
OlderNewer