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
| setTimeout(async () => { await videoMetrics() }, 7000); | |
| async function videoMetrics() { | |
| console.log('Testing from the video-metrics extension'); | |
| // L3 DRM | |
| const isL3DRM = await ( | |
| navigator.requestMediaKeySystemAccess && | |
| navigator.requestMediaKeySystemAccess('com.widevine.alpha', [{ | |
| videoCapabilities: [ |
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
| UserID | Name | |
|---|---|---|
| U0008 | Abhi | |
| U0010 | Test | |
| U0005 | Steve |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <package > | |
| <metadata> | |
| <id>pampas93.simpleLib</id> | |
| <version>1.0.2</version> | |
| <authors>Abhijit Srikanth</authors> | |
| <owners>Abhijit Srikanth</owners> | |
| <license type="expression">MIT</license> | |
| <description>Simple Calculator lib DLL</description> | |
| <projectUrl>https://github.com/pampas93/NuGet-Experiments/tree/master/SimpleLib</projectUrl> |
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
| /////////// Property (setter) Injection /////////// | |
| public class Car { | |
| // Dependency Injection using Property setter | |
| public IEngine Engine { get; set; } | |
| public void StartEngine() { | |
| Engine.Start(); | |
| } | |
| } |
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
| public class Car { | |
| private IEngine _engine; | |
| // Dependency Injection using Constructors | |
| public Car(IEngine engine) { | |
| _engine = engine; | |
| } | |
| public void StartEngine() { | |
| _engine.Start(); |
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
| public class Car { | |
| private CombustionEngine _engine; | |
| public Car(CombustionEngine engine) { | |
| _engine = engine; | |
| } | |
| public void StartEngine() { | |
| _engine.Start(); | |
| } |
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
| public void ShowMeExpadoObject(string input) | |
| { | |
| dynamic dynamicObj = new ExpandoObject(); | |
| // Let's assume the input is of type string and we are traversing through | |
| // each line, process it into getting key and value inside the for-each | |
| foreach (string line in input) | |
| { | |
| // After processing the line, we get key and value, where |
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
| <html> | |
| <head> | |
| <style> | |
| html, | |
| body { | |
| margin: 0 !important; | |
| padding: 0 !important; | |
| } |
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
| worker_processes 1; | |
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| include mime.types; | |
| default_type application/octet-stream; | |
| sendfile on; | |
| keepalive_timeout 65; |
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 json | |
| import numbers | |
| import jsonschema | |
| from jsonschema import validate | |
| import sys | |
| ###################################################################### | |
| ## Abhijit Srikanth ## | |
| ## Validate if a Json string can be plotted againt Bar Graph for ## | |
| ## the given schema. ## |