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 requests | |
import json | |
from transactionTable import TransactionTable | |
class IAP(object): | |
@staticmethod | |
def url(debug=True): | |
if debug: |
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 android.app.Application; | |
import com.kochava.base.Tracker; | |
import com.kochava.base.Tracker.Configuration; | |
public class KochavaBridge { | |
static void setGUID(String guid){ | |
Tracker.configure(new Configuration(null)); | |
} | |
static void setUserId(String uid){ |
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 puppeteer, { Page, Browser } from "puppeteer-core" | |
import axios from "axios"; | |
import { stat } from "fs"; | |
export default class Main { | |
static userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36"; | |
static selector = "div.item:nth-child(1) > div" | |
static exePath = "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"; | |
static async runTest(): Promise<any> { | |
// let exePath = "/usr/bin/chromium"; |
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 logging | |
import select | |
import socket | |
import struct | |
from socketserver import ThreadingMixIn, TCPServer, StreamRequestHandler | |
logging.basicConfig(level=logging.DEBUG) | |
SOCKS_VERSION = 5 | |
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
# 将图片中的指定颜色设置为透明 | |
# 运行于python3.7 Pillow5.3 | |
import sys | |
from PIL import Image | |
def Convert(fileName): | |
image = Image.open(fileName) | |
img = image.convert("RGBA") | |
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
namespace NewImplement | |
{ | |
// 图遍历的问题 | |
public class GraphNode | |
{ | |
public int ID { get; private set; } | |
private HashSet<int> Successors = new HashSet<int>(); | |
public GraphNode(int id) | |
{ |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Move | |
: MonoBehaviour | |
{ | |
[SerializeField] private Vector3 Anchor; | |
[SerializeField] private float Radius; |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
using UnityEngine.Sprites; | |
public class ChildImage : Image{ | |
protected override void OnPopulateMesh(VertexHelper toFill) | |
{ |
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.Collections.Generic; | |
using System.Net; | |
using System.IO; | |
using System.Net.Sockets; | |
using System.Diagnostics; | |
using System.Threading; | |
using YezhStudio.Base; |
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 "stdafx.h" | |
#include <iostream> | |
#include <cassert> | |
#include <memory> | |
#include <tuple> | |
typedef char* CharSPtr; | |
class RingBuffer | |
{ |
NewerOlder