DevOps
What is DevOps? by Rackspace - Really great introduction to DevOps https://www.youtube.com/watch?v=_I94-tJlovg
Sanjeev Sharma series on DevOps (great repetition to really get the DevOps concept)
DevOps
What is DevOps? by Rackspace - Really great introduction to DevOps https://www.youtube.com/watch?v=_I94-tJlovg
Sanjeev Sharma series on DevOps (great repetition to really get the DevOps concept)
| // Michael Riethmuller | |
| // | |
| // https://css-tricks.com/snippets/css/fluid-typography/ | |
| // https://www.youtube.com/watch?v=Wb5xDcUNq48 | |
| // https://www.youtube.com/watch?v=mAvQUIKtW_Y | |
| // Example | |
| // $min-screen:400px; | |
| // $max-screen: 1280px; | |
| // $min-font: 14px; |
https://docs.docker.com/engine/reference/commandline/cli/
docker run --name wpmysql -e MYSQL_ROOT_PASSWORD=secret-pw -d mysql:5.7
docker run --name wordpress --link wpmysql:mysql --volume /$PWD/wp-themes:/var/www/html/wp-content/themes --publish 8080:80 --detach wordpress
Vejledning til hvordan du får git på din computer, opretter dit første repository og hvilke kommandoer du oftes skal bruge i dit daglige work-flow, når du bruger git til versionsstyring af dine projekter.
Hvis du ikke før har arbejdet med git på din computer skal du gå ind på den officielle side til git for at downloade og efterfølgende installere git.
For at navigere rundt på din lokale computer ved at bruge Git Bash, skal du bruge UNIX kommandoer. Du kan se en liste over kommandoer her. Du skal primært bruge cd og ls
Opret et nyt repository på GitHub.com og kopier link. Åben 'git bash' og clone (klone) dit nye repository ned på din computer.
| // Class: Defines the shape of a type of object. The shape for each instance. | |
| class Book { | |
| // Constructor: Properties that each instance are supposed to have. | |
| constructor(slots) { | |
| this.isbn = slots.isbn; | |
| this.title = slots.title; | |
| this.year = slots.year; | |
| }; | |
| // Static Method: A static method call is made directly on the class and are not callable on instances of the class. Static methods are often used to create utility functions. |
| /** | |
| * REFLESKTIONS- og EVALUERINGSopgave | |
| * | |
| * Fomål: Du skal få endnu bedre styr på koden og refletere over hvordan og hvorfor Book data sættes op i forskellige strukturer (datastrukturer). | |
| * Tid: Du må maksimalt bruge tre lektioner (en halv dag) til opgaven. | |
| * | |
| * Du bestemmer selv hvordan du vil svare på opgaven. Du kan enten skrive dine svar under hvert spørgsmål eller skrive det ind i et Word dokument. | |
| * Når du er færdig skal du sende din besvarelse til din lærer (KLJO) via mail, så vil jeg give dig feedback. | |
| * | |
| * Hjælp: Du kan finde mange af svarene ved at åbne programmet i din browser og bruge udviklerværktøjets console. Du kan fx kalde en metode eller property. |
| //https://www.reddit.com/r/learnjavascript/comments/9tyxni/any_benefit_to_using_async_await_vs_standard/e908nwx | |
| export default { | |
| URI: 'https://api.openweathermap.org', | |
| getLocalWeather: async function(city=null, countryCode=null) { | |
| try { | |
| // fetch the API key from environment | |
| const API_KEY = await fetch('http://localhost:8000') | |
| .then(response=> response.json()) | |
| const testMovies = [ | |
| { | |
| "Title": "Blade Runner", | |
| "Year": "1982", | |
| "Genre": "Sci-Fi, Thriller", | |
| "Plot": "A blade runner must pursue and terminate four replicants who stole a ship in space, and have returned to Earth to find their creator.", | |
| "Poster": "https://m.media-amazon.com/images/M/MV5BNzQzMzJhZTEtOWM4NS00MTdhLTg0YjgtMjM4MDRkZjUwZDBlXkEyXkFqcGdeQXVyNjU0OTQ0OTY@._V1_SX300.jpg", | |
| "imdbID": "tt0083658", | |
| "Type": "movie" | |
| }, |