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
| version: '2' | |
| services: | |
| plex: | |
| image: linuxserver/plex | |
| container_name: plex | |
| volumes: | |
| - /path/to/plex/config:/config | |
| - /path/to/plex/Movies:/data/movies | |
| - /path/to/plex/Shows:/data/tvshows | |
| - /path/to/plex/transcode:/data/transcode |
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
| #version: '3' | |
| # | |
| #services: | |
| # portainer: | |
| # image: portainer/portainer | |
| # command: -H unix:///var/run/docker.sock | |
| # restart: always | |
| # ports: | |
| # - 9000:9000 | |
| # volumes: |
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
| var data = [[1,2,[3,4,[5,6]]],7]; | |
| function flatten(array) { | |
| var output = []; | |
| array.forEach(function(value) { | |
| if(value instanceof Array) { | |
| output = output.concat(flatten(value)); | |
| } else { | |
| output.push(value) | |
| } |
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 UserPreview extends React.Component { | |
| toggle = () => this.setState({DropdownOpen: !this.state.DropdownOpen}); | |
| render() { | |
| return ( | |
| <tr className="user"> | |
| <td> | |
| <Media> | |
| <img | |
| alt={`${user.name} avatar`} |
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 { async, ComponentFixture, TestBed } from '@angular/core/testing'; | |
| import { By } from '@angular/platform-browser'; | |
| import { DebugElement } from '@angular/core'; | |
| import { RouterTestingModule } from '@angular/router/testing'; | |
| import {UserComponent} from './users'; | |
| describe('User component', () => { | |
| let comp: UserComponent; | |
| let fixture: ComponentFixture<UserComponent>; |