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
from datetime import datetime, timedelta | |
day_mapper = { | |
0:'天', | |
1:'一', | |
2:'二', | |
3:'三', | |
4:'四', | |
5:'五', | |
6:'六', |
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 gi, requests | |
gi.require_version('Gtk', '3.0') | |
from gi.repository import Gtk | |
from user import User | |
from utils import Utils | |
from proxies import Proxy | |
class RegisterWindow(Gtk.Window): |
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
from selenium import webdriver | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.common.action_chains import ActionChains | |
from PIL import Image | |
from io import BytesIO | |
import time,re,requests,random | |
def get_merge_image(filename,location_list): | |
''' | |
合并图片 |
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 edu.princeton.cs.algs4.In; | |
import edu.princeton.cs.algs4.MinPQ; | |
import edu.princeton.cs.algs4.Stack; | |
import edu.princeton.cs.algs4.StdOut; | |
public class Solver { | |
private class Move implements Comparable<Move> { | |
private Move previous; | |
private Board board; |
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 edu.princeton.cs.algs4.Stack; | |
import javax.swing.border.Border; | |
import java.util.Iterator; | |
public class Board { | |
private int[][] board = null; | |
private int N; |
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 edu.princeton.cs.algs4.In; | |
import edu.princeton.cs.algs4.StdDraw; | |
import edu.princeton.cs.algs4.StdOut; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
/** | |
* Created by hepeng on 11/14/16. | |
*/ |
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 java.util.*; | |
import edu.princeton.cs.algs4.*; | |
public class BruteCollinearPoints { | |
private ArrayList<LineSegment> segs; | |
public BruteCollinearPoints(Point[] points) { | |
if (points == null) { |
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
/****************************************************************************** | |
* Compilation: javac Point.java | |
* Execution: java Point | |
* Dependencies: none | |
* | |
* An immutable data type for points in the plane. | |
* For use on Coursera, Algorithms Part I programming assignment. | |
* | |
******************************************************************************/ |
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
package xyz.gummary; | |
import edu.princeton.cs.algs4.StdRandom; | |
import java.util.Iterator; | |
import java.util.NoSuchElementException; | |
/** | |
* Created by admin on 2016/11/10. | |
*/ |
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
package xyz.gummary; | |
import java.util.Iterator; | |
import java.util.NoSuchElementException; | |
/** | |
* Created by admin on 2016/11/9. | |
*/ | |
public class Deque<Item> implements Iterable<Item> { |
NewerOlder