Skip to content

Instantly share code, notes, and snippets.

View dodola's full-sized avatar
:octocat:
Focusing

dodola dodola

:octocat:
Focusing
View GitHub Profile
@dodola
dodola / topit.py
Created April 30, 2015 11:15
Topit.me网站微型爬虫
#encoding: utf-8
__author__ = 'Dodola'
from lxml.html import parse
from time import sleep,ctime
import time
import urllib2
import threading
import contextlib
import os
/*
* Copyright (C) 2006 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@dodola
dodola / apks.py
Created May 11, 2014 01:45
从google play 下载APK包
__author__ = 'dodola'
# encoding: utf-8
import time
import urllib.request
import threading
import contextlib
import queue
import string
import shutil
import re
__author__ = 'dodola'
#encoding: utf-8
from lxml.html import parse
from time import sleep, ctime
import time
import urllib.request
import threading
import contextlib
import queue
__author__ = 'dodola'
#encoding: utf-8
from time import sleep, ctime
import time
import urllib.request
import threading
import contextlib
import queue
import string
import shutil
__author__ = 'dodola'
#encoding: utf-8
import time
import urllib.request
import urllib
import threading
import contextlib
import queue
import string
import shutil
__author__ = 'dodola'
#encoding: utf-8
import time
import urllib.request
import threading
import contextlib
import queue
import string
import shutil
import os
@dodola
dodola / YoutubeParse.java
Last active August 10, 2022 09:52
youtube下载 java
package com.example.youtubeparse;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
#!/usr/bin/env monkeyrunner
# Copyright 2010, The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@dodola
dodola / QuickSort.java
Created September 3, 2013 06:19
算法导论·快排
public class QuickSort {
public static int partition(int[] nums, int p, int r) {
int x = nums[r];// 取最后一位作为基准
int i = p - 1;
for (int j = p; j < r; j++) {
if (nums[j] <= x) {
i++;
// 交换