Skip to content

Instantly share code, notes, and snippets.

View FOBshippingpoint's full-sized avatar
:shipit:
👈這什麼emoji

CC Lan FOBshippingpoint

:shipit:
👈這什麼emoji
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset=UTF-8>
<title>Hello World!</title>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script>
$(function () {
@FOBshippingpoint
FOBshippingpoint / rotate_vid_90d_ffmpeg.ps1
Last active March 31, 2022 16:18
Rotate video with 90 degrees using ffmpeg
# rotate video with 90 degrees
# reference: https://stackoverflow.com/questions/3937387/rotating-videos-with-ffmpeg
$input = Read-Host -Prompt "input file name"
$output = Read-Host -Prompt "output file name"
if ([string]::IsNullOrEmpty($output)) {
$output = "output.mp4"
}
# run ffmpeg
ffmpeg.exe -i $input -vf "transpose=1" $output
{
"success": true,
"type": null,
"status": 200,
"detail": null,
"instance": null,
"data": {
"criterion 1": {
"fullExpr": "rule([C0023091; t < forever]) and rule([0301B < 12; t > 30day and t < 10mo] and [C1530795; t > 30day and t < 10mo])",
"substitute": "$0 and $1",
We can't make this file beautiful and searchable because it's too large.
"imgName","lat","lng","dataTime","remark","uploader","marker","checker","label","createdAt","updatedAt","sidewalk","protective","wheelchair","occupation","walkRisk","riskRate","purpose","imgUrl","_id","rankA1","rankB1","rankC1","countyName","townName","villName","villCode"
1,24.8212887993158,121.024891734123,"2022-10-22T12:00:00.000Z","","6220a7e810be1548e5c8d09a","5e748a1d4894f400bb0cf7df","63b29f74181b962669dffd90","符合規定","2022-10-22T23:35:17.214Z","2023-01-02T09:12:05.829Z","有設置人行道或騎樓","實體人行道(有實體分隔)","輪椅可以通行(寬於100公分)","","有機車行駛","總是如此(100%~95%)","休閒","https://commutag.agawork.tw/static/upload/dataset/63528cc34f042e88cc951433/image/63547e354f042e0713951435.jpg","63547e354f042e0713951435",6.4,4,4,"新竹縣","竹北市","十興里","10004010021"
2,24.8213131436208,121.024679839611,"2022-10-22T10:34:00.000Z",,"6220a7e810be1548e5c8d09a","6382cf3ad8489c66ec0a5947",,"符合規定","2022-10-23T00:08:34.965Z","2022-11-27T03:13:12.919Z","有設置人行道或騎樓","實體人行道(有實體分隔)","輪椅可以通行(寬於100公分)","","有機車行駛","常如此(79~50%)","親子活動|通學|休閒","https://commutag.agaw
use JSON::Fast;
run <curl https://ani.gamer.com.tw/animeVideo.php?sn=34245 -o temp>;
'temp'.IO.comb(/ '?sn=' \d+ '">' \d /) ==> map({ $_ ~~ /'?sn=' (\d+) .*/ })
==> map(~*[0].Int)
==> unique()
==> sort()
==> my @sn-list;
'temp'.IO.unlink;
;(function () {
'use strict'
var CMD_RX = /^\$ (\S[^\\\n]*(\\\n(?!\$ )[^\\\n]*)*)(?=\n|$)/gm
var LINE_CONTINUATION_RX = /( ) *\\\n *|\\\n( ?) */g
var TRAILING_SPACE_RX = / +$/gm
var config = (document.getElementById('site-script') || { dataset: {} }).dataset
var svgAs = config.svgAs
var uiRootPath = (config.uiRootPath == null ? window.uiRootPath : config.uiRootPath) || '.'