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 | |
redirect_uri='http://muxueqz.coding.me/?koreader_pocket' | |
consumer_key='' | |
p_code=$(curl https://getpocket.com/v3/oauth/request -d "consumer_key=${consumer_key}&redirect_uri=${redirect_uri}") | |
request_token=$(echo $p_code | cut -d'=' -f2) | |
lua ./qrcode.lua -a "https://getpocket.com/auth/authorize?request_token=${request_token}&redirect_uri=${redirect_uri}" | |
read | |
curl https://getpocket.com/v3/oauth/authorize -d "consumer_key=${consumer_key}&code=${request_token}" |
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
function unescape(str) | |
str = string.gsub( str, '<', '<' ) | |
str = string.gsub( str, '>', '>' ) | |
str = string.gsub( str, '"', '"' ) | |
str = string.gsub( str, ''', "'" ) | |
str = string.gsub( str, '&#(%d+);', function(n) return string.char(n) end ) | |
str = string.gsub( str, '&#x(%d+);', function(n) return string.char(tonumber(n,16)) end ) | |
str = string.gsub( str, '&', '&' ) -- Be sure to do this after all others | |
return str | |
end |
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
{ | |
"files-bak":[ | |
"Z:\\tmp\\test.log" | |
], | |
"files":[ | |
"/tmp/test.log", | |
"/tmp/test-iconv.lua" | |
], | |
"files2":[ | |
"/tmp/test-seq.log2" |
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
namelist = ["一", "二", "三", "五", "学生某"] | |
console.log(namelist) | |
random_num = (max, min=0) -> | |
return Math.floor(Math.random() * (max - min ) ) + min | |
make_luckey_dog = -> | |
luckey_dog = (namelist[random_num(namelist.length)]) | |
"#{luckey_dog}<BR>" | |
#alert random_person | |
#document.body.innerHTML = random_person |
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
a.chat { | |
background-color: #ffffff; | |
} | |
div.main { | |
background-color: #ffffff; | |
} | |
i.web_wechat_tab_public { | |
background-color: #6b6b6b; |
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
def logger = doc['Logger.keyword'].value; | |
def server_id = logger.substring(0, logger.indexOf('|')); | |
return server_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
#!/usr/bin/env python | |
"""Simple HTTP Server With Upload. | |
This module builds on BaseHTTPServer by implementing the standard GET | |
and HEAD requests in a fairly straightforward manner. | |
""" | |
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 grp | |
import pwd | |
import time | |
import os | |
import stat | |
import socket | |
import threading |
This file has been truncated, but you can view the full file.
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
<tr><td width='30' align='center'>1</td><td width='183' title='浙江省妇女儿童基金会'><a style='padding-left:3px;text-decoration: underline;' href='/content_245.html' target='_blank'>浙江省妇女儿童基金会</a></td><td width='60' ><a href='javascript:void(0)' class='foundationType'>公募</a></td><td width='60' title='浙江省杭州市杭州市中河中路215号220号(浙江省妇女儿童活动中心)'><a href='/content_245.html' target='_blank'>浙江</a></td> <td width='70' align='right' style='padding-right:3px;'><a href='/financeInfo_245.html' target='_blank'>817</a></td><td width='50' style='padding-right:3px;' align='right'>89.60</td> <td width='70' align='center' title='http://zjnpo.foundationcenter.org.cn/zjsfnetjjh'><a href='http://zjnpo.foundationcenter.org.cn/zjsfnetjjh' target='_blank'>点击进入</a></td><td width='115' align='center'><img rank='25' donation='9950555.82' oid='245' name='浙江省妇女儿童基金会' class='btnCompare' src='/templets/newFti/images/add.jpg' border='0'></td></tr><BR></BR><tr><td width='30' align='center'>2</td><td width='183' title='山东省儿童少年福利基金会'><a style='padding-left: |
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
时间:2015年9月02日 19:10~22:50 | |
地点:WFC大益茶庭 | |
人员:豆制品、大賓、犇魔王、清浊、MissYou | |
主题:读书会第二次内测及内测总结 | |
续第一次内侧后,对《深度学习的艺术》第二、三、四章的讨论 | |
对于本书的讨论: | |
对于解码,以我所理解的应分为两部分,即“分析”和“整合”。 |