Skip to content

Instantly share code, notes, and snippets.

View hulucc's full-sized avatar
🙃
smile

hulucc hulucc

🙃
smile
View GitHub Profile
package main
import (
"net"
"fmt"
"context"
"time"
"sync"
"go.uber.org/yarpc/api/peer"
package main
import (
"context"
"fmt"
"os"
"sort"
"time"
"github.com/google/uuid"
package cache
import (
"net"
"testing"
)
func BenchmarkChan(b *testing.B) {
ch := make(chan []byte)
go func() {
阿里云 akamai 七牛 cloudflare google
等比缩放 yes yes yes yes 无自带支持
固定尺寸剪裁 最大4096 yes 最大9999 yes 无自带支持
格式 jpeg/png/webp/bmp/gif jpeg/png/gif psd/jpeg/png/gif/webp/bmp jpeg/png/webp/gif 无自带支持
语法形式 http参数 http参数/路径 http参数 worker worker
文档链接 doc doc doc doc doc
/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkz
ODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2Nj
Y2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wAARCAEiAR0DASIA
AhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQA
AAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3
ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWm
p6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEA
AwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSEx
BhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElK
U1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3
package main
import (
"context"
"fmt"
"os"
"time"
"github.com/google/uuid"
"go.uber.org/cadence/activity"
// @ts-nocheck
import { extractFiles } from 'extract-files'
import { Upload } from 'graphql-upload'
import FormData from './form'
import { print } from 'graphql'
import { AsyncExecutor, Subscriber } from '@graphql-tools/delegate';
export async function buildUploadExecutor(endpoint: string, customFetch: any, extraHeaders: any) : Promise<{ executor: AsyncExecutor; subscriber: Subscriber }> {
const executor = async ({ document, variables }: any) => {
const vars = Object.assign({}, variables)
apiVersion: apps/v1
kind: Deployment
metadata:
name: udppress
namespace: default
spec:
selector:
matchLabels:
app: udppress
replicas: 1
package main
import (
"fmt"
"net"
"os"
"os/exec"
"strconv"
"strings"
"time"
import urllib.request
import pprint
from html.parser import HTMLParser
class MyHTMLParser(HTMLParser):
def __init__(self):
self.column = 0
self.value = None
self.key = None
self.table = []