Skip to content

Instantly share code, notes, and snippets.

View ljsabc's full-sized avatar

Miaomiao Li ljsabc

View GitHub Profile
@ljsabc
ljsabc / chatGPT.srt
Created March 13, 2023 15:36
ChatGPT (10 prev sentences+translations as prompts) vs. DeepL
0
00:00:00,050 --> 00:00:03,080
你已经休赛了一年,而且习惯了赢得胜利。
1
00:00:03,080 --> 00:00:09,120
适应可能不在第一梯队的麦克拉伦车队会怎样?
2
00:00:09,120 --> 00:00:14,600
@ljsabc
ljsabc / BatchHQ.sh
Last active July 4, 2021 08:48
Standalone bash script for batch iPhone video conversion
#!/bin/bash
# Q: upper bitrate limit: 1/Q
Q=2
for file in `find ./input/ -iname "*.mov"`;
do
echo $file
bitrate=`./ffprobe -v error -select_streams v:0 -show_entries stream=bit_rate -of csv=p=0 $file`
bitrate=`awk -v var="$bitrate" -v Q="$Q" 'BEGIN {OFMT="%d";print var/Q}'`
echo $bitrate
@ljsabc
ljsabc / HEVC30LP.bat
Last active July 3, 2021 20:05
iPhone HEVC Batch FFMPEG Compression Toolkit
@echo off
ffmpeg -y -i %1 -vcodec libx265 -crf 26 -r 30 -preset veryslow -tag:v hvc1 -acodec copy %1_output.mov
@ljsabc
ljsabc / 1080p.bat
Last active November 4, 2020 12:29
ffmpeg script for drag'n'drop on windows
@echo off
ffmpeg -y -i %1 -vcodec libx264 -crf 27 -preset veryslow -vf scale=-1:1080 -acodec aac -ab 96k output.mp4
@ljsabc
ljsabc / config-5.4.6-gentoo
Last active January 1, 2020 06:37
Kernel config for PowerBook G4 (7447A / b43 / Low latency desktop)
#
# Automatically generated file; DO NOT EDIT.
# Linux/powerpc 5.4.6-gentoo Kernel Configuration
#
#
# Compiler: gcc (Gentoo 9.2.0-r2 p3) 9.2.0
#
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=90200
@ljsabc
ljsabc / chromium.bat
Created July 7, 2019 08:52
Windows batch file to build a chromium binary
cd chromium/src
call gclient sync
call git pull
call gclient sync
cd D:\chromium\src\chrome\build\
copy chrome.x64.orderfile chrome.arm64.orderfile
copy chrome.x64.orderfile.sha1 chrome.arm64.orderfile.sha1
copy chrome_child.x64.orderfile chrome_child.arm64.orderfile
copy chrome_child.x64.orderfile.sha1 chrome_child.arm64.orderfile.sha1
cd ../../out/mybuild2
@ljsabc
ljsabc / args.gn
Last active December 8, 2022 10:16
My arguments for building chromium on Win ARM64
# Set build arguments here. See `gn help buildargs`.
is_debug = false
symbol_level = 0
blink_symbol_level = 0
is_component_build = false
# enable_resource_allowlist_generation=true requires symbol_level >= 1
# enable_resource_whitelist_generation = false
enable_resource_allowlist_generation = false
.stream-tombstone-container{
display: block;
font-size:0;
}
.Tombstone{
background-image: url('https://media.giphy.com/media/aSTJbOerwCKqc/giphy.gif');
display: block;
height: 300px;
}
.Tombstone *{
# Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def getIntersectionNode(self, headA, headB):
"""

scivi 简单安装指南

理论上讲,scivi依赖下面的包:

OpenKinect    
OpenSceneGraph	
ARToolKit	
vcglib