- stable pair of pure strategies
- constant-sum game
- strictly(weakly) dominant strategy
- best response
- pure strategy Nash equilibrium (if
$a_i$ a best response to$a_{-i}$ for all i)
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 | |
import os,sys,re,codecs | |
limit=[60,60,60,1000] | |
def xml2srt(fi,fo): | |
data=''.join((fi.read().split('\n')[9:-4])).strip().split('</p>') | |
for i in range(0,len(data)-1): | |
#print i,data[i] | |
if data[i]: | |
st_st=data[i].index('"') |
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
" configure vundle | |
set nocompatible " be iMproved | |
filetype off | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
Bundle 'gmarik/vundle' | |
Bundle 'The-NERD-Commenter' | |
Bundle 'taglist.vim' | |
Bundle 'Conque-Shell' |
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 | |
import os, urllib, urllib2, re, json | |
baseurl = 'http://douban.fm/j/mine/playlist?type=n&h=&channel=0&context=channel:0|subject_id:%s' | |
musicdir = os.path.abspath('./music') | |
num_pattern = re.compile(r'(\d+)') | |
def get_json_by_album(href): | |
''' get direct url of songs by album url ''' |
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
import os, urllib2 | |
game_cookie = 'csrf_token=XXXX; session=XXXX;' | |
class Sub_downloader: | |
def __init__(self, cookie): | |
self.cookie = cookie # 'csrf_token=XXXX; session=XXXX;' | |
def getname(self, response): |
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 regexp('https?://www\\.google\\.com/reader/view.*') { | |
*/ | |
/* 正文变大 */ | |
#viewer-container { | |
font-size: 130% !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
# coding: utf-8 | |
import thread, os, urllib, BeautifulSoup, eyeD3, HTMLParser | |
from datetime import datetime | |
html_parser = HTMLParser.HTMLParser() | |
ue = lambda s: html_parser.unescape(s) | |
soup = None | |
filename =None |
3 比 2 要慢不少, 囧rz.
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
#!/bin/bash | |
MAC="00:"`echo $RANDOM | md5 | sed 's/\(..\)/&:/g' | cut -c1-14` | |
MAC2="00:"`echo $RANDOM | md5 | sed 's/\(..\)/&:/g' | cut -c1-20` | |
echo $MAC | |
ifconfig en0 ether $MAC | |
ifconfig en1 ether $MAC | |
ifconfig fw0 lladdr $MAC2 |