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
"""grab pdf files from url""" | |
import urllib.parse | |
import os | |
import argparse | |
import requests | |
from bs4 import BeautifulSoup | |
def save(url): |
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
{ | |
"black": "#002b36", | |
"dark_blue": "#18567f", | |
"dark_green": "#5a6600", | |
"dark_cyan": "#1d6d66", | |
"dark_red": "#a82725", | |
"dark_magenta": "#8c2559", | |
"dark_yellow": "#7f5f00", | |
"gray": "#93a1a1", | |
"dark_gray": "#586e75", |
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
/* | |
Make wrap_content work in a RecyclerView. | |
This also enable you to put a RecyclerView in a ScrollView. (set height/width to wrap_content) | |
Base on http://stackoverflow.com/questions/26649406/ | |
usage: | |
RecyclerView = FindViewById<RecyclerView>(Resource.Id.SimpleRecyclerView); | |
var layoutManager = new WCLinearLayoutManager(this, LinearLayoutManager.Vertical, false); | |
RecyclerView.SetLayoutManager(layoutManager); | |
*/ |
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
blockAdvMiner=高级采矿机 | |
blockMachine=基础机器外壳 | |
blockIronFurnace=铁炉 | |
blockElecFurnace=电炉 | |
blockMacerator=打粉机 | |
blockExtractor=提取机 | |
blockCompressor=压缩机 | |
blockCentrifuge=热能离心机 | |
blockMetalFormer=金属成型机 | |
blockOreWashingPlant=洗矿机 |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import re | |
import argparse | |
import os | |
import sys | |
# ID3 tags support depends on Mutagen | |
try: | |
import mutagen |
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
#include <iostream> | |
#include <memory.h> | |
#include <cmath> | |
//#include <cstdio> | |
using namespace std; | |
int n,m; | |
long long tree[2000010]; | |
long long treeeditor[2000010]; | |
//获取l~r的下标 | |
int encode(int l,int r){ |
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
#include <iostream> | |
using namespace std; | |
long long mem[20][20]={0}; | |
int bx,by,hx,hy; | |
long long gotob(int x,int y){ | |
if(mem[x][y]!=0){ return mem[x][y]; } | |
if(x>bx||y>by){ return 0; } | |
if(x==bx&&y==by){ return 1; } | |
if((x==hx&&y==hy)||(x==hx+2&&y==hy+1)||(x==hx+1&&y==hy+2)||(x==hx-1&&y==hy+2)||(x==hx-2&&y==hy+1)||(x==hx-2&&y==hy-1)||(x==hx-1&&y==hy-2)||(x==hx+1&&y==hy-2)||(x==hx+2&&y==hy-1)) | |
{ return 0; } |
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
#include <iostream> | |
#include <algorithm> | |
#include <limits> | |
#include <cmath> | |
#include <map> | |
#include <memory.h> | |
using namespace std; | |
long long weight[35]; | |
map<long long,int> halfweightmap; | |
long long n,m; |
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
using System; | |
using System.Management; | |
using System.Net; | |
namespace IPChanger | |
{ | |
class Program | |
{ | |
enum mode { auto, home, gezhi, gezhida }; | |
static int Main(string[] args) |