This file contains hidden or 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
{"version":1,"resource":"file:///c%3A/Users/gz1347/Project/main.py","entries":[{"id":"lHdI.py","timestamp":1662622890357},{"id":"SXc1.py","timestamp":1662622911800},{"id":"sGXc.py","timestamp":1662622938030},{"id":"oWJp.py","source":"renamed.source","timestamp":1662623002623},{"id":"XDz0.py","timestamp":1662623024246},{"id":"8OTr.py","timestamp":1662623057045},{"id":"V6SZ.py","timestamp":1662623076557},{"id":"QuM2.py","timestamp":1662623192434},{"id":"w3l5.py","timestamp":1662623252882},{"id":"aj6N.py","timestamp":1662623445927},{"id":"sxrt.py","timestamp":1662623462825},{"id":"SUqO.py","source":"undoRedo.source","timestamp":1662623465722},{"id":"zg9i.py","timestamp":1662623497322},{"id":"0K7t.py","timestamp":1662623623314},{"id":"nUIy.py","timestamp":1662623639874},{"id":"xcEu.py","timestamp":1662623812645},{"id":"3O4d.py","timestamp":1662623921931},{"id":"6Zyj.py","timestamp":1662623988586},{"id":"nfBN.py","timestamp":1662624062816},{"id":"NqDB.py","timestamp":1662624108193},{"id":"qTZM.py","timestamp":1662 |
This file contains hidden or 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
############################################################################## | |
# BASH CHEATSHEET (中文速查表) - by skywind (created on 2018/02/14) | |
# Version: 47, Last Modified: 2019/09/24 17:58 | |
# https://github.com/skywind3000/awesome-cheatsheets | |
############################################################################## | |
############################################################################## | |
# 常用快捷键(默认使用 Emacs 键位) | |
############################################################################## |
This file contains hidden or 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
/* Lua CJSON - JSON support for Lua | |
* | |
* Copyright (c) 2010-2012 Mark Pulford <mark@kyne.com.au> | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining | |
* a copy of this software and associated documentation files (the | |
* "Software"), to deal in the Software without restriction, including | |
* without limitation the rights to use, copy, modify, merge, publish, | |
* distribute, sublicense, and/or sell copies of the Software, and to | |
* permit persons to whom the Software is furnished to do so, subject to |
This file contains hidden or 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
server { | |
listen 80; | |
server_name 192.168.1.250; | |
location / { | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header Host $http_host; | |
proxy_set_header Connection ""; | |
proxy_http_version 1.1; |
This file contains hidden or 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 json | |
import os | |
import re | |
from datetime import datetime | |
import urllib2 | |
from aliyunsdkcore import client |
This file contains hidden or 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
bat: | |
for /f "delims=" %% A in ('dir /b *.xx ^| findstr /v "table_.*.xx" | find /v "proto_.*_pb.xx"') do ( | |
echo del %%A | |
del %%A | |
) | |
shell: | |
ls *.xx | grep -Ev '^(table|proto)_.+.xx' | xargs rm -f |
This file contains hidden or 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
public static string HttpUploadFile(string url, string[] files, NameValueCollection data, Encoding encoding) { | |
string boundary = "------------------------------" + DataTime.Now.Ticks.ToString("x"); | |
byte[] boundarybytes = Encoding.ASCII.GetBytes("--" + boundary + "\r\n"); | |
byte[] endbytes = Encoding.ASCII.GetBytes("\r\n--" + boundary + "--\r\n"); | |
byte[] newlinebytes = Encoding.ASCII.GetBytes("\r\n"); | |
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); | |
request.ContentType = "multipart/form-data; boundary=" + boundary; | |
request.Method = "POST"; | |
request.KeepAlive = true; |
This file contains hidden or 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
shuffle_list(L) -> | |
shuffle_list_sub(length(L), L). | |
shuffle_list_sub(N, L) when N > 1 -> | |
I = random:uniform(N), | |
L2 = exchange_element(N, I, L), | |
shuffle_list_sub(N - 1, L2); | |
shuffle_list_sub(_N, L) -> | |
L. |
This file contains hidden or 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
TARGET := test | |
CC := g++ | |
#注意每行后面不要有空格,否则会算到目录名里面,导致问题 | |
SRC_DIR = src | |
BUILD_DIR = tmp | |
OBJ_DIR = $(BUILD_DIR)/obj | |
DEPS_DIR = $(BUILD_DIR)/deps | |
This file contains hidden or 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
.PHONY: all clean rebuild objs | |
TARGET := tetris | |
SRCDIRS := src src/* | |
OBJDIR := obj | |
CFLAGS := -Iinclude | |
LFLAGS := | |
#vpath %.c $(wildcard $(SRCDIRS)) |
NewerOlder