Try Chardet(https://pypi.python.org/pypi/chardet)
(Need to change font)
chcp 65001
Want to get back?
Try Chardet(https://pypi.python.org/pypi/chardet)
(Need to change font)
chcp 65001
Want to get back?
function getArticleAfterArticle(article_id) | |
{ | |
var EndArticle = false; | |
$.ajax({ | |
url: "/more", | |
dataType: 'JSON', | |
data: { | |
last_article_id : article_id | |
}, |
''' | |
how to crawl data? | |
''' | |
base_url = "https://www.sw.or.kr/intro/i_imm_list.jsp?searchType=&searchKeyword=&page=1&pageSize=2000&areaDvsn=&funcClsf=&bsnsType=&indtClsf=" | |
import urllib2 | |
from HTMLParser import HTMLParser | |
parser = HTMLParser() | |
import codecs |
from glob import glob | |
for filename in glob("[!utf8_]*"): | |
with open(filename, encoding="cp949") as fr, \ | |
open("utf8_" + filename, encoding="utf-8", mode="w") as fw: | |
fw.writelines(fr.readlines()) |
// http://m.podty.me/pod/MU993 | |
copy($("li[data-src]") | |
.map((idx,e)=>[[$(e).find("p").text(),$(e).attr("data-src")]]) | |
.map((idx,e)=>`wget -O "${e[0]}.mp3" ${e[1]}`).toArray().join("\n")) |
class A(object): | |
def p1(self): | |
""" | |
This is P1 | |
:return: nothing | |
""" | |
def p2(self): | |
""" | |
This is P2 |
import timeit | |
statements = \ | |
""" | |
import numpy as np | |
from numba import vectorize | |
def python_f(x,y): | |
if x > y: |
// Mixamo Animation downloadeer | |
// The following script make use of mixamo2 API to download all anims for a single character that you choose. | |
// The animations are saved with descriptive long names instead of the short ones used by default by mixamo UI. | |
// | |
// This script has been written by [email protected] and the author is not responsible of its usage | |
// | |
// How to use this script | |
// 1. Browse mixamo.com | |
// 2. Log in | |
// 3. Open JS console (F12 on chrome) |
const r = 3; | |
const comb = [-1, -0.5, 0, 0.5, 1]; | |
let final_combinations = []; | |
( ( (f) => f(f) ) | |
( (f) => (r, v) => { | |
if (r) for (let c in comb) { v.push(comb[c]); f(f)(r-1, v); v.pop(); } | |
else final_combinations.push(v.slice()); | |
} |