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
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; |
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
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) |
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
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(); |
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
$ 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 |
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
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(); |
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
for i in mono*.wav; do | |
[ -f "$i" ] || break | |
soxi $i | |
sox $i -r 16000 16$i | |
soxi 16$i | |
done |
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
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") |
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
File "aws-cost-and-usage-report.py", line 18 | |
filter = {Filter={ "And" : [ | |
^ | |
SyntaxError: invalid syntax |
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
filter = {Filter={ "And" : [ | |
{"Dimensions": { | |
"Key": "LINKED_ACCOUNT", | |
"Values": [ "791540823040" ] }}, | |
{"Tags": { | |
"Key": "Organization", | |
"Values": ["swissre-webpresence"] }} | |
]}} |
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
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' |