This file contains 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
--[[ | |
SOURCE_ https://github.com/mpv-player/mpv/blob/master/TOOLS/lua/autoload.lua | |
COMMIT_ 3ba446d0b065f867ca262a2e05e4e8d24c7c0783 | |
SOURCE_ https://github.com/rossy/mpv-open-file-dialog/blob/master/open-file-dialog.lua | |
COMMIT_ 04fe818fc703d8c5dcc3a6aabe1caeed8286bdbb | |
文档_ https://github.com/hooke007/MPV_lazy/discussions/106 | |
示例:在 input.conf 中另起写入下列内容 | |
Ctrl+Alt+1 script-binding vf_sub/append_vfSub # 装载次字幕(滤镜型) | |
Ctrl+Alt+2 script-binding vf_sub/append_vfSub_2 # 装载文件中的第2个字幕(滤镜型) |
This file contains 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
@echo off | |
setlocal enabledelayedexpansion | |
rem Generated by JetBrains Toolbox 1.25.12627 at 2022-09-07T17:07:44.532710200 | |
rem force use c:\github\@flutter, @see: https://github.com/flutter/flutter/issues/105395 | |
set "old_dir=%cd%" | |
if /i "%cd:~0,18%" == "k:\github\@flutter" ( | |
cd /d %cd:k:\github=c:\github% | |
echo switch work dir from %old_dir% to !cd!... | |
) |
This file contains 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
{ | |
"title": "@ipcjs's Karabiner Custom Rules", | |
"rules": [ | |
{ | |
"description": "Cmd(+Shift)+Home/End => Cmd(+Shift)+Up/Down (Jump to Start/End on Chrome's Page)", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"type": "frontmost_application_if", |
This file contains 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
{ | |
"categories": [ | |
{ | |
"title": "## 🚀 Features", | |
"labels": [ | |
"feature", | |
"feat" | |
] | |
}, | |
{ |
This file contains 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
/** | |
* Hook <a href="https://github.com/flutter/flutter/blob/c8538873c80e34231d7a93f9ca1e5ec22c8804b1/packages/flutter_tools/gradle/flutter.gradle#L385">这个方法调用</a> | |
* 将`compileOnlyProjects`中指定的依赖改成通过`compileOnly`来依赖, 达到让插件类不被编译的目的! | |
* */ | |
class ProjectMetaClass extends DelegatingMetaClass { | |
ProjectMetaClass(MetaClass metaClass) { super(metaClass) } | |
Object invokeMethod(Object object, String name, Object[] args) { | |
if (name == 'dependencies' && args.length == 1 && args[0] instanceof Closure) { | |
// println("project=>$name: $args") |
This file contains 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
const fs = require('fs') | |
const pacText = fs.readFileSync('./pac.txt', { encoding: 'utf8' }) | |
const findProxyForURL = (() => { | |
const __PROXY__ = 'http://127.0.0.1:1080' | |
function isInNet(host, ip, mast) { | |
if (host === '127.0.0.1') { | |
return true | |
} | |
return false |
This file contains 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
class ApiResult<T> { | |
final int code; | |
final T data; | |
final String? message; | |
const ApiResult({ | |
required this.code, | |
required this.data, | |
this.message, | |
}); |
This file contains 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
class UnitTool { | |
/* | |
* g to kg | |
*/ | |
public static float g2kg(float g, int divisionValueCode) { | |
float kg = g / 1000.f; | |
float v = gunit_general(kg, divisionValueCode); | |
return v; | |
} |
This file contains 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 'package:intl/intl.dart'; | |
/// @see: | |
/// - [intl/#83](https://github.com/dart-lang/intl/issues/83) | |
/// - [intl/#112](https://github.com/dart-lang/intl/issues/112) | |
/// - [DateFormat] | |
/// Created by ipcjs on 2021/2/19. | |
class SimpleDateFormat { | |
SimpleDateFormat(this.pattern) : assert(pattern.isNotEmpty); | |
final String pattern; |
This file contains 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
#!/bin/bash | |
# you proxy server ip | |
ip="172.105.237.77" | |
function setup_route() { | |
# obtain gateway | |
gateway="" | |
while [ "$gateway" = "" ]; do | |
sleep 2s |
NewerOlder