Skip to content

Instantly share code, notes, and snippets.

View etrobot's full-sized avatar

Frank Lin etrobot

View GitHub Profile
@carlrip
carlrip / http.ts
Last active August 18, 2019 19:42
Specific functions for different http methods
export const get = async <T>(
path: string,
args: RequestInit = { method: "get" }
): Promise<IHttpResponse<T>> => {
return await http<T>(new Request(path, args));
};
export const post = async <T>(
path: string,
body: any,
@xfffrank
xfffrank / UnitedTranslators.py
Created July 9, 2018 12:28
有道、腾讯、谷歌、百度四大翻译api聚合接口[python实现]
import time
import hashlib
import requests
import json
from googletrans import Translator
import urllib
import hmac
import base64
from urllib.parse import quote
import time
@jmsdnns
jmsdnns / jd-export.jsx
Last active May 1, 2024 21:14
Illustrator script—Exports CMYK, RGB, and Hex values for all the color swatches in a document. CMYK to RGB conversion using Adobe’s default US Web Coated SWOP2 to sRGB.
/**
* jd-export.jsx
* -------------
* Illustrator script—Exports CMYK, RGB, and Hex values for all the color
* swatches in a document. CMYK to RGB conversion using Adobe’s default US
* Web Coated SWOP2 to sRGB.
*
*
* LICENSE
* -------