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
//http://react-china.org/t/webpack-css/2299 | |
//https://github.com/webpack/extract-text-webpack-plugin | |
const path = require('path'); | |
const webpack = require('webpack'); | |
const ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
const definePlugin = new webpack.DefinePlugin({ | |
'process.env': { | |
'NODE_ENV': JSON.stringify('production') | |
} |
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 | |
# -*- encoding: utf-8 -*- | |
# Created on 2015-12-17 07:58:28 | |
# Project: lyrce | |
from pyspider.libs.base_handler import * | |
class Handler(BaseHandler): | |
crawl_config = { |
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
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="640" height="480" id="VideoPlayer" align="middle"> | |
<param name="allowScriptAccess" value="*" /> | |
<param name="allowFullScreen" value="true" /> | |
<param name="movie" value="http://www.platipus.nl/flvplayer/download/1.0/FLVPlayer.swf?video=http://www.platipus.nl/flvplayer/download/pl-600.flv&autoplay=true" /> | |
<param name"quality" value="high" /> | |
<param name="bgcolor" value="#ffffff" /> | |
<embed src="http://www.platipus.nl/flvplayer/download/1.0/FLVPlayer.swf?video=http://www.platipus.nl/flvplayer/download/pl-600.flv&autoplay=true" quality="high" bgcolor="#000000" width="640" height="480" name="VideoPlayer" align="middle" allowScriptAccess="*" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> | |
</object> |
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
.hide-text { | |
text-indent: 100%; | |
white-space: nowrap; | |
overflow: hidden; | |
} |
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
/** 创建数据表时默认的文字编码 */ | |
define('DB_CHARSET', 'utf8mb4'); | |
/** 创建数据表时默认的文字编码 */ | |
define('DB_CHARSET', 'utf8'); |
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
$('ul').each(function () { | |
var $lis = $('li', this); | |
var count = $lis.length; | |
if (count < 4) { | |
$lis.addClass('last-row'); | |
} else { | |
var numberInLastRow = count % 3 || 3; | |
$lis.eq(-1 * numberInLastRow - 1).nextAll().addClass('last-row'); |
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
//exlude page from search results | |
function SearchFilter($query) { | |
if ($query->is_search) { | |
$query->set('post_type', 'post'); | |
} | |
return $query; | |
} | |
add_filter('pre_get_posts','SearchFilter'); |
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
//https://github.com/coodict/javascript-in-one-pic |
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
ln -s /usr/bin/nodejs /usr/bin/node |
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
/*#1*/ | |
div { | |
display: table-cell; | |
vertical-align: middle; | |
} | |
/*#2*/ | |
<h3>With an added pseudo element it's possible</h3> | |
<div class="block2"><div class="inner">Inline-Block</div></div> |
OlderNewer