Skip to content

Instantly share code, notes, and snippets.

package sample;
import javafx.animation.AnimationTimer;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Group;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.BorderPane;
Magnolia Dx Core Webapp 6.2 (Snapshot: 2020.03.23 10:38:14)
Copyright 2003-2020 Magnolia International Ltd.
This product includes/uses software(s) developed by 'an unknown organization'
- Big Math (https://github.com/eobermuhlner/big-math)
License: MIT License (https://raw.githubusercontent.com/eobermuhlner/big-math/master/LICENSE.txt)
- stream-lib (https://github.com/addthis/stream-lib)
License: Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
- parso (https://github.com/epam/parso)
License: Apache License v2 (http://www.apache.org/licenses/LICENSE-2.0.html)
import org.apache.commons.lang.StringUtils;
detailFolder = 'xx'
rootPath = '/PL/'+ detailFolder
javax.jcr.NodeIterator nodeList = info.magnolia.cms.util.QueryUtil.search("dam", "select * from [mgnl:resource] as t where ISDESCENDANTNODE('"+rootPath+"') and name(t) = 'jcr:content'");
while(nodeList.hasNext()) {
javax.jcr.Node currNode = nodeList.nextNode();
println "downloading ${currNode.path}";
try {
javax.jcr.Binary binary = currNode.getProperty("jcr:data").getBinary()
InputStream inputStream = binary.getStream();
$ javac vut/fit/ija/homework1/TestHomework1.java
vut/fit/ija/homework1/TestHomework1.java:16: error: MyCoordinate is not public in vut.fit.ija.homework1.myMaps; cannot be accessed from outside package
import vut.fit.ija.homework1.myMaps.MyCoordinate;
^
vut/fit/ija/homework1/TestHomework1.java:17: error: cannot find symbol
import vut.fit.ija.homework1.myMaps.MyStop;
^
symbol: class MyStop
location: package vut.fit.ija.homework1.myMaps
vut/fit/ija/homework1/TestHomework1.java:18: error: cannot find symbol
import org.apache.commons.lang.StringUtils;
detailFolder = 'ke-stazeni'
rootPath = '/rjelinek/'+detailFolder
javax.jcr.NodeIterator nodeList = info.magnolia.cms.util.QueryUtil.search("dam", "select * from [mgnl:resource] as t where ISDESCENDANTNODE('"+rootPath+"') and name(t) = 'jcr:content'");
while(nodeList.hasNext()) {
javax.jcr.Node currNode = nodeList.nextNode();
println "downloading ${currNode.path}";
try {
javax.jcr.Binary binary = currNode.getProperty("jcr:data").getBinary()
InputStream inputStream = binary.getStream();
for i in mono*.wav; do
[ -f "$i" ] || break
soxi $i
sox $i -r 16000 16$i
soxi 16$i
done
import os
from pydub import AudioSegment
# main body
folder_path = "audio-samples"
for filename in os.listdir(folder_path):
sound = AudioSegment.from_wav(os.path.join(folder_path,filename))
sound = sound.set_channels(1)
sound.export(os.path.join(folder_path+ "-mono","mono_"+filename), format="wav", bitrate="16k")
File "aws-cost-and-usage-report.py", line 18
filter = {Filter={ "And" : [
^
SyntaxError: invalid syntax
filter = {Filter={ "And" : [
{"Dimensions": {
"Key": "LINKED_ACCOUNT",
"Values": [ "791540823040" ] }},
{"Tags": {
"Key": "Organization",
"Values": ["swissre-webpresence"] }}
]}}
Traceback (most recent call last):
File "aws-cost-and-usage-report.py", line 102, in <module>
retrieveData(results, filter)
TypeError: retrieveData() missing 1 required positional argument: 'filter'