数据库中间件
This file contains hidden or 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
| [ | |
| { | |
| "id": "d240e1be-38aa-4356-88b8-d1febb48d95e", | |
| "name": "色色资源站", | |
| "uri": "https://www.emiao026.com", | |
| "httpApi": "http://sscj8.com/inc/api.php", | |
| "httpsApi": "http://sscj8.com/inc/sapi.php", | |
| "type": "综合性资源" | |
| }, | |
| { |
This file contains hidden or 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
| var orientation = function (file, callback) { | |
| var fileReader = new FileReader(); | |
| fileReader.onloadend = function () { | |
| var base64img = "data:" + file.type + ";base64," + _arrayBufferToBase64(fileReader.result); | |
| var scanner = new DataView(fileReader.result); | |
| var idx = 0; | |
| var value = 1; // Non-rotated is the default | |
| if (fileReader.result.length < 2 || scanner.getUint16(idx) != 0xFFD8) { | |
| // Not a JPEG | |
| if (callback) { |
This file contains hidden or 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
| android.support.v7.widget.util.SortedListAdapterCallback | androidx.recyclerview.widget.SortedListAdapterCallback | |
|---|---|---|
| android.support.v7.widget.helper.ItemTouchUIUtilImpl | androidx.recyclerview.widget.ItemTouchUIUtilImpl | |
| android.support.v7.widget.helper.ItemTouchUIUtil | androidx.recyclerview.widget.ItemTouchUIUtil | |
| android.support.v7.widget.helper.ItemTouchHelper | androidx.recyclerview.widget.ItemTouchHelper | |
| android.support.v7.widget.WithHint | androidx.appcompat.widget.WithHint | |
| android.support.v7.widget.ViewUtils | androidx.appcompat.widget.ViewUtils | |
| android.support.v7.widget.ViewStubCompat | androidx.appcompat.widget.ViewStubCompat | |
| android.support.v7.widget.ViewInfoStore | androidx.recyclerview.widget.ViewInfoStore | |
| android.support.v7.widget.ViewBoundsCheck | androidx.recyclerview.widget.ViewBoundsCheck | |
| android.support.v7.widget.VectorEnabledTintResources | androidx.appcompat.widget.VectorEnabledTintResources |
This file contains hidden or 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
| /** | |
| * 获取该条记录的自增ID | |
| * 将自增转换为62进制,并拼接网址 如:http://qetee.com/w7e | |
| * 用户访问到 http://qetee.com/w7e 时,提取短网址后缀 w7e | |
| * 将短网址后缀转换为10进制,得到自增ID号 如:123456 | |
| * 使用查询该记录,进行业务逻辑处理(比如跳转) | |
| */ | |
| /** | |
| * 十进制数转换成62进制 |
This file contains hidden or 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 argparse | |
| import sys | |
| import os | |
| import shutil | |
| import re | |
| import shlex | |
| import subprocess | |
| import plistlib | |
| from functools import wraps |
This file contains hidden or 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.Activity; | |
| import android.app.Service; | |
| import android.content.BroadcastReceiver; | |
| import android.content.Context; | |
| import android.content.Intent; | |
| import android.content.IntentFilter; | |
| import android.os.Bundle; | |
| import android.os.IBinder; | |
| import android.support.v4.content.LocalBroadcastManager; |
This file contains hidden or 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
| static BOOL PSPDFIsDevelopmentBuild(void) { | |
| #if TARGET_IPHONE_SIMULATOR | |
| return YES; | |
| #else | |
| static BOOL isDevelopment = NO; | |
| static dispatch_once_t onceToken; | |
| dispatch_once(&onceToken, ^{ | |
| // There is no provisioning profile in AppStore Apps. | |
| NSData *data = [NSData dataWithContentsOfFile:[NSBundle.mainBundle pathForResource:@"embedded" ofType:@"mobileprovision"]]; | |
| if (data) { |
This file contains hidden or 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
| # webm | |
| ffmpeg -i IN -f webm -vcodec libvpx -acodec libvorbis -ab 128000 -crf 22 -s 640x360 OUT.webm | |
| # mp4 | |
| ffmpeg -i IN -acodec aac -strict experimental -ac 2 -ab 128k -vcodec libx264 -vpre slow -f mp4 -crf 22 -s 640x360 OUT.mp4 | |
| # ogg (if you want to support older Firefox) | |
| ffmpeg2theora IN -o OUT.ogv -x 640 -y 360 --videoquality 5 --audioquality 0 --frontend |
NewerOlder