Skip to content

Instantly share code, notes, and snippets.

View qyzhaojinxi's full-sized avatar
🎯
Focusing

EricZhao qyzhaojinxi

🎯
Focusing
  • 北京
View GitHub Profile
@VitaliyBelyaev
VitaliyBelyaev / example_theme.json
Created July 7, 2023 15:01
Python script for generating colors.xml and ligth/dark themes.xml from Material 3 json theme file generated by Figma Material Theme Builder Plugin
{
"seed": "#6750A4",
"description": "TYPE: CUSTOM",
"coreColors": {
"primary": "#6750A4",
"neutralVariant": "#938F99"
},
"schemes": {
"light": {
"primary": "#6750A4",
@jesliwang
jesliwang / UnpackUnityAssets.py
Last active March 15, 2025 09:41
Unpack Assets For Unity Games From Apks or assetbundles
#!/Users/Jesli/opt/anaconda3/bin/python
# -*- coding: UTF-8 -*-
import io, os
import UnityPy
import sys, getopt
import traceback
import json
class UnPackUnityAsset:
@canpolat
canpolat / TinyPngUpload.gs
Last active November 10, 2023 03:02
Google Apps Script: Upload image to TinyPNG
var TINYPNG_API_KEY = "YOUR-TINYPNG-API-KEY";
var UPLOAD_TEST_FILE_ID = "GOOGLE-DRIVE-IMAGE-TEST-FILE-ID";
var TINYPNG_API_BASE_URL = "https://api.tinify.com";
var TINYPNG_API_UPLOAD_URL = TINYPNG_API_BASE_URL + "/shrink";
function uploadImageToTinyPng(blob) {
Logger.log("Uploading image to TingPNG");
var uploadParams = {
@qyzhaojinxi
qyzhaojinxi / afnetworking
Last active August 25, 2016 01:18
AFNetWorking请求数据方式 #json #非json
+(void)getServerTimeWithCompletionBlock:(void (^)(BOOL success, id object))completionBlock
{
NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration];
AFHTTPSessionManager *manager = [[AFHTTPSessionManager alloc] initWithSessionConfiguration:configuration];
// manager.securityPolicy.allowInvalidCertificates = YES;
@qyzhaojinxi
qyzhaojinxi / 常用工具和插件
Last active February 20, 2017 06:23
常用工具和插件 #工具 #xcode插件 #软件 #chrome插件
xcode插件:
Alcatraz 管理第三方插件
cocoapods-xcode-plugin
FuzzyAutocompletePlugin-master
KSImageNamed-Xcode-master
@qyzhaojinxi
qyzhaojinxi / AppConfig.h
Last active December 10, 2015 19:00
AppConfig #ios开发app配置
#define VERSION [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]
#define BUNDLEID [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"]
#define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height
#define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width
#define IS_IOS7 (BOOL)([[[UIDevice currentDevice] systemVersion]floatValue]>=7.0 ? YES : NO)
#define IS_IOS8 (BOOL)([[[UIDevice currentDevice] systemVersion]floatValue]>=8.0 ? YES : NO)
#define ApplicationDelegate ((AppDelegate *)[UIApplication sharedApplication].delegate)
#define WEAKSELF typeof(self) __weak weakSelf = self;
@deanPGM
deanPGM / blockerList.json
Created July 10, 2015 23:13
A whitelist example - This blocks every website apart from bbc.co.uk
[
{
"action": {
"type": "block"
},
"trigger": {
"url-filter": ".*"
}
},
{