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
Show hidden characters
| { | |
| "compilerOptions": { | |
| "module": "commonjs", | |
| "esModuleInterop": true, | |
| "target": "es6", | |
| "moduleResolution": "node", | |
| "sourceMap": true, | |
| "outDir": "dist" | |
| }, | |
| "include": ["src"], |
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
| "HotPink", | |
| "PeachPuff", | |
| "Crimson", | |
| "BurlyWood", | |
| "CornflowerBlue", | |
| "Thistle", | |
| "Gold", |
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
| // Get video url from context which has been passed by ExtensionEnvironment when we create a MediaProcessor | |
| const videoUrl = window.context.ENV_videoUrl; | |
| const videoClip = document.getElementById('video'); // Your video element <video id="video"></video> | |
| videoClip.src = videoUrl; | |
| videoClip.load(); | |
| const stream = video.captureStream(); | |
| const videoClipStream = stream.getVideoTracks()[0]; | |
| videoClip.play(); |
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
| const videoUrl = window.context.ENV_videoUrl; | |
| const videoClip = document.getElementById('video'); // Your video element <video id="video"></video> | |
| videoClip.src = videoUrl; | |
| videoClip.load(); | |
| // If we want to play the video right away | |
| videoClip.play(); | |
| videoClip.addEventListener( | |
| 'ended', | |
| () => { |
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
| const videoClip = document.getElementById("video"); // Your video element <video id="video"></video> | |
| const stream = video.captureStream(); | |
| const videoClipStream = stream.getVideoTracks()[0]; | |
| // Create a new LocalVideoTrack | |
| const videoTrack = new Video.LocalVideoTrack(videoClipStream, { | |
| name: "video-composer-presentation", | |
| }); | |
| // Publish the LocalVideoTrack to the Room |
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
| <div | |
| class="u-margin-bottom--huge u-display--flex u-justify-content--center u-align-items--center" | |
| > | |
| <svg height="45" width="45"> | |
| <circle | |
| cx="22.5" | |
| cy="22.5" | |
| r="22.5" | |
| stroke-width="1" | |
| fill="#40b28c" |
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
| class AuthService { | |
| private static instance: AuthService; | |
| private _counter: number = 0; | |
| constructor() { | |
| console.log('AuthService constructor') | |
| } | |
| public static getInstance() { | |
| console.log('AuthService getInstance') | |
| if (!AuthService.instance) { | |
| AuthService.instance = new AuthService(); |
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
| #!/usr/bin/env python | |
| """ to enable this hook: | |
| replace the file prepare-commit-msg.sample | |
| under (.git/hooks/) without the sample preffix. | |
| Eg: We're in the branch: feature/ABC-123-fix-this-ASAP | |
| when we push our commit it will be refactored as "[ABC-123] my commit" | |
| """ | |
| import subprocess, sys | |
| commit_msg_filepath = sys.argv[1] |
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
| <table> | |
| <thead> | |
| <tr> | |
| <th><a href (click)="sortTable('company')">Company</a></th> | |
| <th><a href (click)="sortTable('domain')">Domain</a></th> | |
| <th><a href (click)="sortTable('info.country')">Country</a></th> | |
| <th><a href (click)="sortTable('info.cash')">Cash</a></th> | |
| </tr> | |
| </thead> | |
| <tbody> |
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
| export class AppComponent implements OnInit { | |
| companies: Company[]; | |
| path: string[] = ['company']; | |
| order: number = 1; // 1 asc, -1 desc; | |
| constructor(private dataService: MockDataService) {} | |
| ngOnInit(): void { | |
| this.companies = this.dataService.getCompanies(); |