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
<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
<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
<!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
{ | |
"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
<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
<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
// Оригінальний код: 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
<!-- https://medium.com/@bryanjenningz/how-to-record-and-play-audio-in-javascript-faa1b2b3e49b --> | |
<!-- https://docs.aws.amazon.com/en_us/sdk-for-javascript/v2/developer-guide/s3-example-photo-album.html --> | |
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.585.0.min.js"></script> | |
<script> | |
function uploadAWS(blob) { | |
var vaultBucketName = "[YOUR-BUCKET-NAME]"; | |
var bucketRegion = "[YOUR-AWS-REGION]"; | |
var IdentityPoolId = "[YOUR-IDENTITY-POOL-ID]"; |
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
package biorytms; | |
import java.util.Date; | |
import java.util.GregorianCalendar; | |
public class Biorhythms { | |
private static Date createDate(int year, int month, int day) { | |
return new GregorianCalendar(year, month, day).getTime(); |