Skip to content

Instantly share code, notes, and snippets.

{
"seatbid":[{
"bid":[{
"nurl":"http://reports.ubimo.com/fb?b=JdZQFdbCARgKMURHWGhvUVl0bSMBJeAhAA&c=MTo6&wp=${AUCTION_PRICE}",
"crid":"12459",
"adomain":["academy.com"],
"price":2.93,
"id":"1DGXhoQYtm",
"adm":
"<ad xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="smaato_ad_v0.9.xsd" modelVersion="0.9">
{
"id": "DxU0032U8a",
"at": 2,
"allimps": 0,
"imp": [
{
"id": "1",
"banner": {
"w": 320,
"h": 50,
@darrenxyli
darrenxyli / socks5_proxy.go
Created November 24, 2020 05:05 — forked from felix021/socks5_proxy.go
Minimal socks5 proxy implementation in Golang
package main
import (
"encoding/binary"
"errors"
"fmt"
"io"
"net"
)
@darrenxyli
darrenxyli / protobuf.js
Created October 3, 2020 23:40
encode/decode protobuf javascript
/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
"use strict";
var $protobuf = require("protobufjs/minimal");
// Common aliases
var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;
// Exported root namespace
var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {});
@darrenxyli
darrenxyli / .alacritty.yml
Created February 8, 2020 03:08
alacritty conf
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty itself.
#env:
# TERM variable
#
# This value is used to set the `$TERM` environment variable for
# each instance of Alacritty. If it is not present, alacritty will
public class PurchasingOrderRecord extends BaseEntity {
/**
* 自动编号
*/
@Id
private long id;
/**
* 订单单号
*/
name: dl-cpu
dependencies:
- python=3
- jupyter
- matplotlib
- pandas
- opencv
- pip:
- requests
- visdom
np.mean(u)+ (1+1/m)*np.mean(np.power(Q-Q_hat, 2))
import csv
import math
estimate = {}
standerror = {}
estimate_avg = {}
U = {}
B = {}
@darrenxyli
darrenxyli / environment.yml
Last active May 1, 2018 05:41
deep learning conda env config
name: dl
channels:
- pytorch
dependencies:
- python=3.6
- jupyter
- matplotlib
- pandas
- seaborn
- opencv
@darrenxyli
darrenxyli / test.java
Created July 10, 2017 22:48
能写的最烂的代码
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);