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
| using (var client = new HttpClient()) | |
| { | |
| var url = new Uri("https://api.github.com/repos/Grabacr07/KanColleViewer/releases"); | |
| client.DefaultRequestHeaders.UserAgent.Add(new ProductInfoHeaderValue("Grabacr07-LINQPad", "1.0")); | |
| var result = Util.Cache(() => client.GetAsync(url).Result); | |
| var json = await result.Content.ReadAsStringAsync(); | |
| var start = new DateTime(2015, 02, 01); | |
| var end = start.AddYears(1).AddMilliseconds(-1.0); |
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
| powershell Set-ExecutionPolicy RemoteSigned | |
| powershell iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1')) | |
| powershell Set-ExecutionPolicy Restricted | |
| set PATH=%PATH%;C:\Chocolatey\bin; | |
| call cinst .\packages.config | |
| pause |
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
| <Window x:Class="WpfBackGroundWorker.Window1" | |
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| Title="Window1" Height="300" Width="300"> | |
| <Grid> | |
| <ProgressBar Name="ProgressBar1" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="12,12,0,0" Height="16" Width="254" Minimum="0" Maximum="100" Value="0"/> | |
| <Button Content="START" Height="23" HorizontalAlignment="Left" Margin="12,34,0,0" Name="btnStart" VerticalAlignment="Top" Width="75" Click="btnStart_Click"/> | |
| <Button Content="STOP" Height="23" HorizontalAlignment="Right" Margin="0,34,110,0" Name="btnStop" VerticalAlignment="Top" Width="75" Click="btnStop_Click"/> | |
| </Grid> | |
| </Window> |