This file contains hidden or 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://meyerweb.com/eric/tools/css/reset/ | |
v2.0 | 20110126 | |
License: none (public domain) | |
*/ | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, |
This file contains hidden or 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
SELECT DISTINCT | |
CONCAT('SELECT ',ndxcollist,' FROM ',db,'.',tb, | |
' ORDER BY ',ndxcollist,';') SelectQueryToLoadCache | |
FROM | |
( | |
SELECT | |
engine,table_schema db,table_name tb, | |
index_name,GROUP_CONCAT(column_name ORDER BY seq_in_index) ndxcollist | |
FROM | |
( |
This file contains hidden or 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
<?php | |
function transformHTML($string, $length = null) { | |
// Helps prevent XSS attacks | |
// 去除多余空白. | |
$string = trim($string); | |
// 同意转为utf8编码 | |
$string = utf8_decode($string); | |
$string = htmlentities($string, ENT_NOQUOTES); | |
$string = str_replace("#", "#", $string); |
This file contains hidden or 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
.bubble{ | |
position: relative; | |
background-color: #292929; | |
width: 200px; | |
height: 150px; | |
/*line-height: 150px;*/ | |
color: white; | |
display: table; | |
text-align: center; | |
border-radius: 10px; |
This file contains hidden or 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
<?php | |
/** | |
*使用socket与smtp服务器通信,进而发送邮件 | |
* @author GerBawn <[email protected]> | |
* @version 1.0 | |
* @Last Modified 2015/07/18 | |
*/ | |
class MyMail{ | |
/** |
This file contains hidden or 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
<?php | |
/** | |
* Created by PhpStorm. | |
* User: Ger | |
* Date: 2015/3/31 | |
* Time: 20:54 | |
*/ | |
class ImageWaterMark { |
This file contains hidden or 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
<?php | |
session_start(); | |
function createCaptcha(){ | |
$image = imagecreatetruecolor(100, 30); | |
$bgColor = imagecolorallocate($image, 255, 255, 255); | |
imagefill($image, 0, 0, $bgColor); | |
$captcha = ''; | |
for($i = 0; $i < 4; $i++){ | |
$fontSize = 6; | |
$fontColor = imagecolorallocate($image, mt_rand(0, 155), mt_rand(0, 155), mt_rand(0, 155)); |
NewerOlder