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
BYTE UNIX Benchmarks (Version 5.1.3) | |
System: nezha: GNU/Linux | |
OS: GNU/Linux -- 6.8.0-31-generic -- #31.1-Ubuntu SMP PREEMPT_DYNAMIC Sun Apr 21 01:12:53 UTC 2024 | |
Machine: riscv64 (riscv64) | |
Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8") | |
11:27:31 up 1:19, 3 users, load average: 1.29, 0.77, 0.46; runlevel 2024-08-03 | |
------------------------------------------------------------------------ | |
Benchmark Run: Sat Aug 03 2024 11:27:31 - 11:55:48 |
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
package main | |
import ( | |
"encoding/json" | |
"flag" | |
"fmt" | |
"io" | |
"net/http" | |
"os" | |
"os/signal" |
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
package MastodonLike::Client; | |
use strict; | |
use warnings; | |
use LWP::UserAgent; | |
use JSON; | |
use HTTP::Request::Common; | |
sub new { |
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
-- HANDLE SCROLLING | |
local deferred = false | |
overrideOtherMouseDown = hs.eventtap.new({ hs.eventtap.event.types.otherMouseDown }, function(e) | |
--print("down")) | |
deferred = true | |
return true | |
end) |
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
test |
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
// copyFlame を呼ぶと video#player のフレームにそれに対応する時刻の字幕が埋め込まれた canvas cEle ができるデモ | |
var _copyFrame = function (jimakuText) { | |
var cEle = document.createElement('canvas'); | |
var vEle = document.getElementById('player'); // video element | |
cEle.width = vEle.videoWidth; | |
cEle.height = vEle.videoHeight; | |
var bottom = cEle.height - 30; | |
var width = cEle.width; |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
my @props = qw/dpiHeight dpiWidth pixelWidth pixelHeight/; | |
my $file = shift; | |
chomp $file; | |
exit if $file !~ /\.tiff$/; | |
my $outfile = $file; |
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
natsukusaya tsuwamonodomoga yumeno ato | |
2015-03-07T03:20:38 [DEBUG] root offset 0 at /home/ec/lib/My/Text/FindSenryu.pm line 51 | |
2015-03-07T03:20:38 [DEBUG] trails 0, 5 at /home/ec/lib/My/Text/FindSenryu.pm line 131 | |
2015-03-07T03:20:38 [DEBUG] yomi: natsukusaya 5 at /home/ec/lib/My/Text/FindSenryu.pm line 119 | |
2015-03-07T03:20:38 [DEBUG] 5:アアアアア at /home/ec/lib/My/Text/FindSenryu.pm line 122 | |
2015-03-07T03:20:38 [DEBUG] 5 found, skip kigou at /home/ec/lib/My/Text/FindSenryu.pm line 55 | |
2015-03-07T03:20:38 [DEBUG] _skip_kigou, 1 at /home/ec/lib/My/Text/FindSenryu.pm line 86 | |
2015-03-07T03:20:38 [DEBUG] skip_kigou: :記号 at /home/ec/lib/My/Text/FindSenryu.pm line 92 | |
2015-03-07T03:20:38 [DEBUG] skip_kigou: tsuwamonodomoga:名詞 at /home/ec/lib/My/Text/FindSenryu.pm line 92 | |
2015-03-07T03:20:38 [DEBUG] skipped kigou, find 7, offset 0 + 1 at /home/ec/lib/My/Text/FindSenryu.pm line 58 |
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
package NLPDocument::MeCabNode; | |
use strict; | |
use warnings; | |
use utf8; | |
use Encode; | |
use YAML::Syck; | |
use Lingua::JA::Numbers; | |
use base qw( Class::Accessor::Fast ); |
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 | |
# | |
# Usage: mpegts2h264.sh <src.ts> <dst.mp4> | |
# | |
program_no=$(ffmpeg -i $1 2>&1 | grep Program | head -n 1 | awk '{ print $2 }') | |
video_sid=$(ffmpeg -i $1 2>&1 | grep Stream | grep Video | sed -e "s/^.*Stream #0\.[0-9]\[0x\([0-9a-f][0-9a-f][0-9a-f]\)\].*$/\1/g") | |
audio_sid=$(ffmpeg -i $1 2>&1 | grep Stream | grep Audio | sed -e "s/^.*Stream #0\.[0-9]\[0x\([0-9a-f][0-9a-f][0-9a-f]\)\].*$/\1/g") | |
echo $video_sid |
NewerOlder