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
#用正则简单过滤html的<>标签 | |
import re | |
str = "<img /><a>srcd</a>hello</br><br/>" | |
str = re.sub(r'</?\w+[^>]*>','',str) | |
print str |
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
#ds-thread #ds-reset .ds-powered-by, .ds-post-repost { display: none !important; } #ds-reset .ds-gradient-bg, #ds-thread | |
#ds-reset .ds-textarea-wrapper { background: none !important; } #ds-reset .ds-like-thread-button, .ds-rounded{background: | |
rgba(255,255,255,1) !important; box-shadow: 0 0 0.1px rgba(0,0,0,0.2) !important; border: 1px solid #ddd !important; } | |
#ds-reset .ds-sync{ display: none !important; } /* 隐藏评论框底部分享 */ #ds-thread #ds-reset .ds-post-button {background: | |
#fff !important; box-shadow: none !important; border: 1px solid #ddd !important; left: auto !important; /* 不必要的语句 */ |
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
<link href='http://fonts.googleapis.com/css?family=Oleo+Script' rel='stylesheet' type='text/css'> | |
<body id="bodypart"> | |
<!-- the head of page start --> | |
<div class="row" id="head"> | |
<table border="1" width="95%" height="60" cellpadding="0" cellspacing="0" align="center"> <tr> <td id="signature" >zhang olve</td> <td>about</td> <td>protfolio</td> <td>comment</td></tr> </table> | |
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
var count = 0; | |
function cc(card) { | |
// Only change code below this line | |
function compare(count){ | |
if(count>0) | |
{ | |
return count+" Bet"; | |
} | |
if(count===0) |
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
/* | |
var myMusic = [ | |
{ | |
"firstalbum":[{ "artist": "Billy Joel", | |
"title": "Piano Man", | |
"release_year": 1973, | |
"formats": [ | |
"CS", | |
"8T", |
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
<body> | |
<h1>输入经纬度值</h1> | |
<br><p>latitude</p> | |
<input id="latitude"> </input> | |
<br> | |
<p>longitude</p> | |
<input id="longitude"> </input> | |
<br> | |
<button class="btn btn-primary" onclick="searchIt()"> Enter</button> |
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
// Create an object which hold the denominations and their values 建立一个json来将原来的英文表述转化为数字表述,方便以后的比较 | |
var denom = [ | |
{ name: 'ONE HUNDRED', val: 100.00}, | |
{ name: 'TWENTY', val: 20.00}, | |
{ name: 'TEN', val: 10.00}, | |
{ name: 'FIVE', val: 5.00}, | |
{ name: 'ONE', val: 1.00}, | |
{ name: 'QUARTER', val: 0.25}, | |
{ name: 'DIME', val: 0.10}, | |
{ name: 'NICKEL', val: 0.05}, |
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 checkCashRegister(price, cash, cid) { | |
//fix the bug | |
function accAdd(arg1, arg2) { | |
var r1, r2, m, c; | |
try { | |
r1 = arg1.toString().split(".")[1].length; | |
} | |
catch (e) { | |
r1 = 0; |
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
# -*- coding: utf-8 -*- | |
""" | |
Created on Tue Aug 09 08:25:23 2016 | |
@author: zhangolve zhangolve@gmail.com | |
""" | |
import re | |
fileHandle = open ( 'spotify.txt' ) | |
content=fileHandle.read() |
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
@namespace url(http://www.w3.org/1999/xhtml); | |
@-moz-document domain("bilibili.com") { | |
#b_fashion,#b_promote{ | |
display: none!important; | |
} | |
/* | |
.b-head,.rm-list,.index-promote{ |
OlderNewer