$ apt-file search 'alsa/asoundlib.h'
libasound2-dev: /usr/include/alsa/asoundlib.h
libdssialsacompat-dev: /usr/include/dssi/alsa/asoundlib.h
$ sudo apt install libasound2-dev
Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma
You can get the list of supported formats with:
ffmpeg -formats
Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz:
- Audio(url)
- Audio(arraybuffer)
- Audio(blob)
- WebAudio(arraybuffer)
- WebAudio(blob)
This file contains hidden or 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
<div id="app"> | |
<v-app id="inspire"> | |
<v-layout row> | |
<v-flex xs24 sm24> | |
<v-card> | |
<v-toolbar color="purple" dark> | |
<v-toolbar-side-icon></v-toolbar-side-icon> | |
<v-toolbar-title>2019-04-19会议纪要</v-toolbar-title> |
This file contains hidden or 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
<div id="root"> | |
<v-line /> | |
</div> |
This file contains hidden or 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
Ext.Loader.loadScript({ | |
url: ['resources/codemirror-5.26.0/lib/codemirror.js', 'resources/codemirror-5.26.0/lib/codemirror.css'], | |
onLoad: function () { | |
console.log('load ok', arguments); | |
}, | |
onError: function () { | |
console.error('load error', arguments); | |
} | |
}); |
This file contains hidden or 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
<?php | |
require_once 'autoload.php'; | |
require_once 'src/PhpRbac/Rbac.php'; | |
$rbac = new \PhpRbac\Rbac(); | |
function getPermissionUml(&$rbac) | |
{ | |
$arr = Jf::sql('select * from phprbac_permissions'); | |
echo "title Permissions", "\n"; | |
foreach($arr as $row) |
This file contains hidden or 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
<?php | |
$file = '/var/log/nginx/YOURDOMAIN.error.log'; | |
$fd = fopen ($file, "r"); | |
while (!feof ($fd)) | |
{ | |
$buffer = fgets($fd, 4096); | |
$lines[] = $buffer; | |
} | |
fclose ($fd); | |
var_dump(count($lines)); |
This file contains hidden or 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
<?php | |
$str = file_get_contents('C:\Users\huanle0610.HL-PC\Desktop\hk.json'); | |
$arr = json_decode($str, 1); | |
var_dump($arr['items'][0]); | |
$list =array(); | |
foreach($arr['items'] as $row) | |
{ | |
$list[] = sprintf('%s %s %s', $row['method'], $row['url'], $row['protocol']); | |
} |
This file contains hidden or 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
var now = new Date(); | |
var monthnumber = now.getMonth(); | |
var yearnumber = now.getFullYear(); | |
var count = 0; | |
var months = new Array(13); | |
months[0] = "Jan"; | |
months[1] = "Feb"; | |
months[2] = "Mar"; | |
months[3] = "Apr"; |