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
// Оригінальний код: https://tinyurl.com/o8ry24f | |
package sets; | |
//нам потрібні інтерфейс Set (множина) і клас TreeSet, який його реалізує | |
import java.util.Set; | |
// детальніше про TreeSet - відсортовану множину - https://www.codeflow.site/ru/article/java-tree-set | |
import java.util.TreeSet; | |
import java.util.Scanner; |
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
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
<script src="https://rawgit.com/schmich/instascan-builds/master/instascan.min.js"></script> | |
<video id="preview" height="160" style="border: 1px solid black"></video> | |
<p id="results"></p> | |
<script type="text/javascript"> | |
let scanner = new Instascan.Scanner({ video: document.getElementById('preview') }); | |
scanner.addListener('scan', function (content) { | |
$('#results').html(content); | |
}); |
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
<div> | |
<input type="text" id="textToQR" /> | |
<button id="GenQR" onclick="makeCode();">Generate QR from text</button> | |
</div> | |
<br> | |
<div id="qrcode" style="width:160px; height:160px; margin-top:15px;"></div> | |
<script src="https://code.jquery.com/jquery-3.4.1.js"></script> | |
<script src="qrcode.min.js"></script> |
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
{ | |
"bindings": [ | |
{ | |
"authLevel": "anonymous", | |
"name": "req", | |
"type": "httpTrigger", | |
"direction": "in", | |
"methods": [ | |
"get", | |
"post" |
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
<!DOCTYPE html> | |
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Div on Div</title> | |
<style> | |
#box { | |
width: 428px; | |
height: 200px; |
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
<h3>Курс JAVA Professional</h3> | |
<br /> | |
<iframe width="100%" height="900" src="https://www.youtube.com/playlist?list=PLvItDmb0sZw9DXLBDs4IBcalvA1Nx56o9" | |
frameborder="0" | |
allowfullscreen> | |
</iframe> |
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
<h3>Вебінари з DevOps</h3> | |
<iframe src="https://drive.google.com/embeddedfolderview?id=1k42zzrPmEw0wBAHsGKF6thCzDz4c8vyG#grid" | |
style="width:100%; height:500px; border:0;"> | |
</iframe> |
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
// found at https://stackoverflow.com/a/32841043 | |
// many thanks to author! | |
window.RTCPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection; | |
// Firefox & Chrome only! This will not work in Edge! | |
var pc = new RTCPeerConnection({iceServers:[]}), noop = function(){}; | |
pc.createDataChannel('');//create a bogus data channel | |
pc.createOffer(pc.setLocalDescription.bind(pc), noop);// create offer and set local description | |
pc.onicecandidate = function(ice) { |
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
// Legacy Bing geocoding SOAP services were recent shut down after being replaced by the REST services | |
// so, you need to migrate your app to use the REST services. | |
// | |
// If your application uses .NET you will likely find this library useful: | |
// 'Bing Maps REST Services Toolkit' - https://github.com/Microsoft/BingMapsRESTToolkit | |
// | |
// Just install NuGet package named 'BingMapsRESTToolkit'! | |
// Don't forget to add namespace BingMapsRESTToolkit to your using block! | |
// | |
// Now you can get the coordinates of any address by calling the following method |
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
// ... | |
@Override | |
public void actionPerformed(ActionEvent e) { | |
// TODO implement action body | |
try { | |
URLDisplayer.getDefault().showURL(new URL("http://productivityblog.com.ua")); | |
} catch (MalformedURLException ex) { | |
JOptionPane.showMessageDialog(null, "Can't open an URL: " + ex.getMessage()); | |
} |