Arts & Entertainment *
Aquarium *
Arcade *
Art Gallery *
Bowling Alley *
Casino *
Comedy Club *
Concert Hall
- : | |
for b in xrange(1,21): | |
path="html/"+str(a)+"_"+str(b)+".html" | |
soup = BeautifulSoup(open(path),"lxml") | |
span=soup.find_all(id=re.compile("Label")) | |
for i in span: | |
#print i.get("id") |
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
// ==UserScript== | |
// @id iitc-plugin-sh-enl-target-drawer@Breezewish | |
// @name IITC plugin: Draw Shanghai Enlightened Target Portals | |
// @description Draw target portals by SH ENL | |
// @author Breezewish | |
// @category Layer | |
// @version 0.0.4.20140619.203600 | |
// @updateURL https://gist.githubusercontent.com/breeswish/7e8e0d8628a4615afe59/raw/iitc-plugin-sh-enl-target-drawer.meta.js | |
// @downloadURL https://gist.githubusercontent.com/breeswish/7e8e0d8628a4615afe59/raw/iitc-plugin-sh-enl-target-drawer.user.js | |
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion |
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
plugin.enltarget.draw_guardian([ | |
{ | |
"lat": 29.65357, | |
"lng": 115.943885, | |
"time": 1368429231432, | |
"days": 380, | |
"player": "honesty", | |
"title": "九江市生命活水医院", | |
"guid": "ade47c22469242b2b97957cbcda2682c.11" | |
}, |
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
#!/bin/bash -x | |
SRC=/home/xf/git/Hotot/data/ | |
DEST=/opt/www/hotot/ | |
echo "\033[1;31;40m[i]Sync ...\033[0m" | |
# ignore .*.swp, .hgignore, etc | |
rsync -av --exclude '.*.*' --exclude '*.coffee' --exclude 'test*' $SRC $DEST | |
# replace conf.vars.platform, key and secret | |
echo "\033[1;31;40m[i] Replace platform, key and secret ...\033[0m" |
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
<!DOCTYPE HTML> | |
<html><head><meta charset=utf-8 /><title>4sq categories</title></head><body> | |
<ul> | |
<li><img src="https://foursquare.com/img/categories/arts_entertainment/default_32.png" />Arts & Entertainment</li> | |
<ul> | |
<li> <img src="https://foursquare.com/img/categories/arts_entertainment/arcade_32.png" />Arcade</li> | |
<li> <img src="https://foursquare.com/img/categories/arts_entertainment/artgallery_32.png" />Art Gallery</li> | |
<li> <img src="https://foursquare.com/img/categories/arts_entertainment/bowling_32.png" />Bowling Alley</li> |
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
#/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import sys,urllib2,codecs | |
try: import simplejson as json | |
except ImportError: import json | |
CLIENT_ID="IYLVVWKAC110IENAZ53BJJUJEIDOSK5SVKKLDPAVLCHRLO45" | |
CLIENT_SECRET="KPW0QHUC2125TSWNZFLMHYXHHAN3BGXZRVZQYO5JS1RUZ3WS" | |
url="https://api.foursquare.com/v2/venues/categories?client_id="+CLIENT_ID+"&client_secret="+CLIENT_SECRET+"&v=20120615" | |
#url="file:///tmp/categories" |
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
<html> | |
<textarea name="n" type="text" id="n" onkeyup="CtoH(this);" style="width:100%;height:100%;"></textarea> | |
<SCRIPT> | |
function CtoH(obj){ | |
var str=obj.value; | |
var result=""; | |
for (var i = 0; i < str.length; i++){ | |
if (str.charCodeAt(i)==12288){ | |
result+= String.fromCharCode(str.charCodeAt(i)-12256); | |
continue; |
NewerOlder