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
"use strict"; | |
function create(total) { | |
var result = []; | |
for (var i = 0; i < total; i++) { | |
result.push(i + 1); | |
} | |
return result; |
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
import ffmpeg from 'fluent-ffmpeg'; | |
import { settings } from '../../../../system'; | |
export default (incomingPatchFile, outgoingPatchFile) => { | |
const ffmpegPath = settings.get('system.ffmpeg.path', ''); | |
ffmpeg.setFfmpegPath(ffmpegPath); | |
return new Promise((resolve, reject) => { |
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
{% autoescape false %} | |
{{ contents }} | |
{{ footer }} | |
{% endautoescape %} |
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
type SplitString = (value: string, length: number) => string[]; | |
export const splitString: SplitString = (value: string, length: number): string[] => { | |
const chunks: string[] = []; | |
for (let index: number = 0; index < value.length; index += length) { | |
const chunk: string = value.slice(index, index + length); | |
chunks.push(chunk); | |
} |
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
ffmpeg -i filename.ogg -vn -c:a libopus -ar 16k -ac 1 -b:a 16k -vbr on -compression_level 10 new_filename.ogg |
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/sh | |
### BEGIN INIT INFO | |
# Provides: cloud9 | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Starting Cloud9 SDK | |
# Description: Starting the development environment Cloud9 SDK | |
### END INIT INFO |
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
<?php | |
# local/php_interface/bootstrap.php | |
declare(strict_types = 1); | |
define('NOT_CHECK_PERMISSIONS', true); | |
define('NO_AGENT_CHECK', true); | |
$_SERVER['DOCUMENT_ROOT'] = dirname(__DIR__, 2); |
OlderNewer