跳至主要內容

文章

顯示從 4月, 2020 起發佈的文章

TOOLFK tool-online - JAVA code execution tool

This article recommends [TOOLFK] online- JAVA code execution tool, provides JAVA code online execution function. Website name: ToolFk website link:  https://www.toolfk.com/Tool link:  https://www.toolfk.com/tool-online-run-java Code teaching This tool [online JAVA code execution tool] depends on the Docker Java image STEP 1 interface STEP2 The execution code is as follows static function dockerRunJava ($code) { $ext = "java" ; preg_match( "/public\s*class(.*)\s*[extends|implement]*{/" ,$code,$matches); $filename = "" ; if ($matches){ $filename = trim($matches[ 1 ]); } list ($base_url,$filename) = self ::runWriteFile( "Java" ,$code,$ext,$filename); $build_name = str_replace( "." .$ext, "" ,$filename); $full_path = $base_url. ...

TOOLFK tool-online Perl code execution tool

The [TOOLFK] online Perl code execution tool to be recommended in this article provides online Perl code execution functions. Website name: ToolFk website link:  https://www.toolfk.com/Tool link:  https://www.toolfk.com/tool-online-run-perl Code teaching This tool [online Perl code execution tool] depends on the Docker Perl image STEP 1 interface STEP2 The execution code is as follows static function dockerRunPerl ($code) { $ext = "pl" ; list ($base_url,$filename) = self ::runWriteFile( "Perl" ,$code,$ext); $full_path = $base_url. "/" .$filename; return self ::dockerRun($base_url, ' scorpil/rust:latest perl ' .$filename,$ext,$full_path); } private static function dockerRun ($base_url,$cmd,$pre,$full_path) { $random_name = $pre.mt_rand( 1 , 999999999999 ); $cmd = env( "TOOL_DOCKER_PATH" ). " run ...

TOOLFK tool-online Morse code translation and conversion tool

The [TOOLFK] online Morse code translation and conversion tool to be recommended in this article provides an online Morse code conversion function. Website name: ToolFk website link:  https://www.toolfk.com/Tool link:  https://www.toolfk.com/tool-online-morse Code teaching This tool [Online Morse Code Translation and Conversion Tool] depends on the following plugins https://github.com/hustcc/xmorse STEP 1 interface STEP2 The front-end code of online Morse code is as follows var sourceArea = toolfk. create_codeMirror ( 'code' ) ; var targetArea = toolfk. create_codeMirror ( 'result' ) ; sourceArea. setValue (DEFAULT_VALUE) ; $( ".btn-encode" ). click ( function (){ toolfk. encode_morse ({ source :sourceArea , target :targetArea }) ; }) ; $( ".btn-decode" ). click ( function (){ toolfk. decode_morse ({ source :sourceArea , target :targetArea }) ; }) ; $( ".copy-code" )....

TOOLFK tool-online text-to-speech / speech synthesis mp3 tool

The [TOOLFK] online text-to-speech / speech synthesis mp3 tool recommended in this article provides text-to-speech functionality. Website name: ToolFk website link:  https://www.toolfk.com/Tool link:  https://www.toolfk.com/tool-online-text2video Code teaching This tool [online text-to-speech tool] uses Baidu speech synthesis tool STEP 1 interface STEP2 The front-end submission code of the online text-to-speech tool is as follows, and the back-end calls the Baidu API interface. $( ".ant-btn-primary" ).click( function () { var tval = $( '#voiceText' ).val(); if (tval.length< 5 ){ layer.msg(NOT_EMPTY); return false ; } var index = layer. load (); $.post( "/text2video" ,$( '#video-form' ).serialize(), function (res) { layer. close (index); if (res. status == 1 ){ layer. open ({ type : 1 , title: false , area: ...

TOOLFK Tool-Online Chinese / Letter / RMB / Simplified and Traditional Conversion Tool

The [TOOLFK] online Chinese character / letter / RMB / Simplified and Traditional Chinese conversion tool to be recommended in this article provides online daily use tools for Simplified and Traditional Chinese online conversion, RMB capitalization conversion, letter case conversion, and Chinese to Pinyin conversion. Website name: ToolFk website link:  https://www.toolfk.com/Tool link:  https://www.toolfk.com/tool-online-convert Code teaching This tool [online Chinese character / letter / RMB / Simplified and Traditional Chinese conversion tool] depends on the code base (you can view the TOOLFK website source code to view) http: //www.toollibs.com/togglecase transverter.js / pinyin_dict_withtone.js / pinyin_dict_polyph / rmb.js / ec- do .js STEP 1 Online Chinese to Pinyin tool STEP 2 Online Simplified and Traditional Online Conversion Tool STEP 3 Online RMB capital conversion tool STEP4 online letter case conversion tool STEP5 The core code of ...

TOOLFK tool-online QR code decoding tool

This article recommends [TOOLFK] online QR code decoding,  online QR code decoder  , you can get the  QR code  by dragging or uploading the QR code picture, computer camera scanning the QR code, entering the QR code picture address, etc. Content. Website name: ToolFk website link:  https://www.toolfk.com/Tool link:  https://www.toolfk.com/tool-generate-qrcode?t=qrdecode Code teaching The code base that this tool [online QR code decoding tool] depends on is  https://github.com/davidshimjs/qrcodejs STEP 1 STEP 2 The core code is as follows function renderLogo ( canvas, url ) { var img = new Image(), ctx = canvas.getContext( '2d' ), canvasSize = 200 ; if (!url) { ctx.fillStyle = 'rgb(255, 255, 255)' ; ctx.fillRect( 0 , 0 , canvasSize, canvasSize); return ; } img.onload = function ( ) { var imgSize, zoom, imgW = img.width, imgH = img.height; ...