Skip to content

Instantly share code, notes, and snippets.

View zhangolve's full-sized avatar
💭
working

zhangolve zhangolve

💭
working
  • 北京
View GitHub Profile
@zhangolve
zhangolve / re.py
Last active August 29, 2015 14:14 — forked from dervn/re.py
#用正则简单过滤html的<>标签
import re
str = "<img /><a>srcd</a>hello</br><br/>"
str = re.sub(r'</?\w+[^>]*>','',str)
print str
@zhangolve
zhangolve / gist:2bf548ff261f8e9dfc21
Last active August 29, 2015 14:15
多说自定义css
#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; /* 不必要的语句 */
@zhangolve
zhangolve / index.html
Created April 24, 2016 11:25 — forked from anonymous/index.html
zhangolve-protfolio
<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>
var count = 0;
function cc(card) {
// Only change code below this line
function compare(count){
if(count>0)
{
return count+" Bet";
}
if(count===0)
/*
var myMusic = [
{
"firstalbum":[{ "artist": "Billy Joel",
"title": "Piano Man",
"release_year": 1973,
"formats": [
"CS",
"8T",
@zhangolve
zhangolve / index.html
Created July 5, 2016 12:22 — forked from anonymous/index.html
input-latlng-get-geo
<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>
// 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},
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;
# -*- 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()
@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{