🚴♂️
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
static void Main(string[] args) | |
{ | |
string foo = string.Format("foo{0}", "bar"); | |
} |
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
<Style x:Key="ToggleAppBarButtonStyle" TargetType="ToggleButton"> | |
<Setter Property="Foreground" Value="{StaticResource AppBarItemForegroundBrush}"/> | |
<Setter Property="VerticalAlignment" Value="Stretch"/> | |
<Setter Property="FontFamily" Value="Segoe UI Symbol"/> | |
<Setter Property="FontWeight" Value="Normal"/> | |
<Setter Property="FontSize" Value="21.333"/> | |
<Setter Property="AutomationProperties.ItemType" Value="AppBar ToggleButton"/> | |
<Setter Property="Template"> | |
<Setter.Value> | |
<ControlTemplate TargetType="ToggleButton"> |
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
<Page | |
x:Class="Application141.BlankPage" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:local="using:Application141" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
mc:Ignorable="d"> | |
<Grid Background="{StaticResource ApplicationPageBackgroundBrush}"> |
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
#if DEBUG | |
if (Debugger.IsAttached) | |
{ | |
FirstFloor.XamlSpy.XamlSpyConnection.Current.Open("localhost", 4530); | |
} | |
#endif |
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
<Page.Resources> | |
<local:LengthConverter x:Key="lc" /> | |
<local:LengthBoolConverter x:Key="lb" /> | |
</Page.Resources> | |
<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}"> | |
<Grid.Resources> | |
<local:MyViewModel x:Key="MyVM" BoundText="{Binding Path=Text, ElementName=inputbox, Mode=TwoWay}" /> | |
</Grid.Resources> | |
<StackPanel DataContext="{Binding Source={StaticResource MyVM}}"> | |
<TextBox x:Name="inputbox" FontSize="24.667" Text="{Binding BoundText, Mode=TwoWay}" /> |
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 System.ComponentModel; | |
using System.Runtime.CompilerServices; | |
namespace App1 | |
{ | |
public class ViewModelBase : INotifyPropertyChanged | |
{ | |
public event PropertyChangedEventHandler PropertyChanged; | |
protected void SetValue<T>(ref T storage, T value, [CallerMemberName]string propertyName = null) |
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
# ask the user for a gist name | |
param ( | |
[string]$gistname = "$(Read-Host 'Enter a name for the gist')" | |
) | |
# constant | |
$gistapi = "https://api.github.com/gists" | |
$filename = $gistname + '.diff' | |
$teststring = "`{`"description`": `"the description for this gist`",`"public`": true,`"files`": `{`"file1.txt`": `{`"content`": `"String file contents`"`}`}`}" | |
# get the diff from the current session |
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
diff --git a/DiffGist.psm1 b/DiffGist.psm1 | |
index 89004da..a57686d 100644 | |
--- a/DiffGist.psm1 | |
+++ b/DiffGist.psm1 | |
@@ -1,11 +1,9 @@ | |
. (join-path $PSScriptRoot "/json 1.7.ps1") | |
- | |
function Get-Github-Credential($username) { | |
$host.ui.PromptForCredential("Github Credential", "Please enter your Github user name and password.", $username, "") | |
} |
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
diff --git a/src/Callisto/Controls/Settings/SettingsFlyout.cs b/src/Callisto/Controls/Settings/SettingsFlyout.cs | |
index 2846ea5..eebed12 100644 | |
--- a/src/Callisto/Controls/Settings/SettingsFlyout.cs | |
+++ b/src/Callisto/Controls/Settings/SettingsFlyout.cs | |
@@ -5,6 +5,7 @@ | |
using Windows.Foundation; | |
using Windows.UI; | |
using Windows.UI.ApplicationSettings; | |
+using Windows.UI.ViewManagement; | |
using Windows.UI.Xaml; |
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
function dostuff() { | |
var j = document.getElementById("mycontent"); | |
j.innerText = ""; | |
var b = new WindowsRuntimeComponent6.Class1(); | |
var c = b.initializeAsync().done(onStuffComplete, onStuffError); | |
} | |
function onStuffComplete() { | |
var j = document.getElementById("mycontent"); |
OlderNewer