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
| #r "nuget: Microsoft.Windows.Sdk.NET, 10.0.18362.3-preview" | |
| open System | |
| open Windows.Storage | |
| let asyncGetFiles() = | |
| async { | |
| let! files = KnownFolders.MusicLibrary.GetFilesAsync().AsTask() |> Async.AwaitTask | |
| return files |> Seq.take 5 | |
| } |
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
| #r "nuget: Microsoft.Windows.Sdk.NET, 10.0.18362.3-preview" | |
| open System | |
| open Windows.Media | |
| open Windows.Media.Core | |
| open Windows.Media.Playback | |
| open Windows.Storage | |
| open Windows.Storage.FileProperties |
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
| winrt::import!( | |
| dependencies | |
| os | |
| modules | |
| "windows.foundation" | |
| "windows.system.power" | |
| ); | |
| use windows::system::power::*; | |
| fn battery_status() -> std::string::String { |
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
| module Unsplash | |
| open FSharp.Data | |
| open System.IO | |
| open System.Net.Http | |
| type RandomPhoto = | |
| JsonProvider<"https://api.unsplash.com/photos/random?client_id=<YOUR ACCESS TOKEN>"> | |
| let getRandomPhoto = RandomPhoto.AsyncGetSample() |
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
| /// <reference types="aurelia-loader-webpack/src/webpack-hot-interface"/> | |
| import { Aurelia } from 'aurelia-framework' | |
| import environment from './environment'; | |
| import { PLATFORM } from 'aurelia-pal'; | |
| import { defineCustomElements } from '@ionic/core/loader'; | |
| import { defineCustomElements as defineShared } from '@project/shared/dist/loader'; | |
| import '@ionic/core'; | |
| import { setupConfig } from '@ionic/core'; | |
| import authConfig from 'auth.config'; |
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
| /// <reference types="aurelia-loader-webpack/src/webpack-hot-interface"/> | |
| import { Aurelia } from 'aurelia-framework' | |
| import environment from './environment'; | |
| import { PLATFORM } from 'aurelia-pal'; | |
| import { defineCustomElements } from '@ionic/core/loader'; | |
| import { defineCustomElements as defineShared } from '@project/shared/dist/loader'; | |
| import '@ionic/core'; | |
| import { setupConfig } from '@ionic/core'; | |
| import authConfig from 'auth.config'; |
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
| <template> | |
| <require from="./event-case"></require> | |
| <h1>${message}</h1> | |
| <p> | |
| Looking at the console, you can see the event was dispatched, | |
| but it was not caught by aurelia's binding <br /> | |
| <event-case ref="case1" my-click.trigger="onClick($event)"></event-case> | |
| <event-case ref="case2" my-click.delegate="onClick($event)"></event-case> | |
| </p> | |
| <p> |
| Nombre | Windows | Linux |
|---|---|---|
| nvm | https://github.com/coreybutler/nvm-windows/releases | https://github.com/creationix/nvm |
| node (con nvm) | nvm install (numero de la ultima version) | nvm install --lts |
| npm i -g typescript tslint eslint bower grunt-cli gulp-cli aurelia-cli firebase-tools | npm i -g typescript tslint eslint bower grunt-cli gulp-cli aurelia-cli firebase-tools | npm i -g typescript tslint eslint bower grunt-cli gulp-cli aurelia-cli firebase-tools |
| docker | https://store.docker.com/editions/community/docker-ce-desktop-windows | https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-18-04 |
| Git | https://git-scm.com/download/win | sudo apt install git |
| vscde | https://code.visualstudio.com/ | https://code.visualstudio.com/ |
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
| <template> | |
| <v-toolbar dark> | |
| <v-btn icon @click="pickAudio"> | |
| <v-icon>library_music</v-icon> | |
| </v-btn> | |
| <v-btn icon v-if="file.isAvailable && !isPlaying" @click="play"> | |
| <v-icon>play_arrow</v-icon> | |
| </v-btn> | |
| <v-btn icon v-else-if="file.isAvailable && isPlaying" @click="pause"> | |
| <v-icon>pause</v-icon> |