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 requests | |
import re | |
from bs4 import BeautifulSoup | |
import pymongo | |
import datetime | |
from Queue import Queue | |
from threading import Thread | |
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 -*- | |
__author__ = 'Scott Deng' | |
import requests | |
import sys | |
def check(uri): | |
test_post = { |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 util | |
import java.util.concurrent.locks.ReentrantReadWriteLock | |
/** | |
* Created by Scott on 9/12/16. | |
*/ | |
class ReadWriteLocker { | |
private val rwlock = new ReentrantReadWriteLock() |
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
theory ExponentialDiophantine | |
imports Main Nat Int Complex Real HOL | |
begin | |
(* | |
* second order recurrence function | |
* the first argument is the index | |
* the second argument is the b in the recurrence | |
*) | |
fun Abn :: "nat \<Rightarrow> int \<Rightarrow> int" where |
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
theory poly | |
imports Main HOL Nat | |
begin | |
(* | |
* Power function | |
*) | |
primrec pow :: "nat \<Rightarrow> nat \<Rightarrow> nat" where | |
"pow x 0 = Suc 0" | |
| "pow x (Suc y) = x * pow x y" |
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
" File : .vimrc | |
" Author : Yiping Deng <[email protected]> | |
" Date : 26.05.2018 | |
" Last Modified Date: 26.05.2018 | |
" Last Modified By : Yiping Deng <[email protected]> | |
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim |
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
How to Completely Remove Android Studio | |
Execute these commands from the terminal | |
rm -Rf /Applications/Android\ Studio.app | |
rm -Rf ~/Library/Preferences/AndroidStudio* | |
rm ~/Library/Preferences/com.google.android.studio.plist | |
rm -Rf ~/Library/Application\ Support/AndroidStudio* | |
rm -Rf ~/Library/Logs/AndroidStudio* |
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
http://www.juhevip.cn/thread-124927-1-1.html | |
https://github.com/keystone-engine/keypatch | |
https://www.52pojie.cn/thread-675251-1-1.html | |
https://www.52pojie.cn/forum.php?mod=forumdisplay&fid=4&filter=typeid&typeid=134 | |
https://www.52pojie.cn/forum.php?mod=viewthread&tid=648089 | |
45.32.141.226 |
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
%hook MatchChatViewController | |
- (void)requsetStartMactch { | |
[NSObject cancelPreviousPerformRequestsWithTarget:self]; | |
%orig; | |
[self performSelector:@selector(requsetStartMactch) withObject:nil afterDelay:0.30]; | |
} | |
%end |
OlderNewer