Enter in sudo user
sudo su
rm -rf $HOME/Library/Developer/Xcode/DerivedData/* |
from functools import wraps | |
import inspect | |
from inspect import Parameter | |
from flask import Flask, request, jsonify | |
from typing import Optional | |
# noinspection PyUnresolvedReferences,PyProtectedMember | |
empty = inspect._empty |
// Julian Day Converter | |
// | |
// Author: Mauro Orlandini <[email protected]> | |
// Revision: 0.4 1997/01/27 16:28:33 mauro | |
// | |
function computeJD(formJD) { | |
if (formJD.nmonth.value == "") { | |
MM = 0 | |
} else { | |
MM=eval(formJD.nmonth.value) |
import inspect | |
from functools import wraps | |
def log_func(func): | |
@wraps(func) | |
def wrapper(*args, **kwargs): | |
func_args = inspect.signature(func).bind(*args, **kwargs).arguments | |
func_args_str = ', '.join('{} = {!r}'.format(*item) for item in func_args.items()) | |
# print(f'{func.__module__}.{func.__qualname__} ( {func_args_str} )') | |
ret = func(*args, **kwargs) |
1. Pattern: Sliding window,滑动窗口类型 | |
经典题目: | |
Maximum Sum Subarray of Size K (easy) | |
Smallest Subarray with a given sum (easy) | |
Longest Substring with K Distinct Characters (medium) | |
Fruits into Baskets (medium) |
/** | |
* Copyright (c) 2015-present, Facebook, Inc. | |
* | |
* This source code is licensed under the MIT license found in the | |
* LICENSE file in the root directory of this source tree. | |
* | |
* @format | |
*/ | |
// node_modules/react-native/local-cli/runIOS/findXcodeProject.js |
{ | |
"presets": [ | |
[ | |
"@babel/preset-env", | |
{ | |
"modules": false, | |
"targets": { | |
"browsers": [ | |
"> 5% in CN", | |
"not dead" |
from pathlib import Path | |
import re | |
node_modules = Path('./node_modules') | |
files_to_modify = [] | |
for file in Path('./android').rglob('build.gradle'): | |
if file.is_file(): | |
files_to_modify.append(file) |
ffmpeg -i input.mp4 -vf "fps=16,scale=640:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 output.gif |