This file contains 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
public static class OneDrive | |
{ | |
private static string _Path; | |
public static string Path => _Path ??= GetPath(); | |
static string GetPath() => Environment.GetEnvironmentVariable("OneDriveConsumer"); | |
} |
This file contains 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
Sub EmailDocument() | |
On Error Resume Next | |
If Len(ActiveDocument.Path) = 0 Then | |
ActiveDocument.Save | |
End If | |
Dim RanOutlook As Boolean | |
Dim Outlook As Outlook.Application |
This file contains 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
Sub EmailDocument() | |
'On Error Resume Next | |
If Len(ActiveDocument.Path) = 0 Then | |
ActiveDocument.Save | |
End If | |
Dim RanOutlook As Boolean | |
Dim Outlook As Object 'Outlook.Application throws "Compile error: User-defined type not defined" |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Slate Example Configuration</title> | |
<link rel='stylesheet' type='text/css' href='css/slate.min.css'> | |
<script src='js/slate.min.js'></script> | |
<style> | |
.title { | |
padding: 15px 10px; | |
text-transform: uppercase; |
This file contains 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 BitmapLayer *s_background_layer; | |
static GBitmap *s_background_bitmap; | |
static void configure_background(Layer *window_layer, GRect bounds) { | |
s_background_bitmap = gbitmap_create_with_resource(RESOURCE_ID_IMAGE_BACKGROUND); | |
s_background_layer = bitmap_layer_create(bounds); | |
bitmap_layer_set_bitmap(s_background_layer, s_background_bitmap); | |
This file contains 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
public interface IObservableContainerItem<T> | |
{ | |
T Observed { get; set; } | |
} |
This file contains 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
<ListBox ItemsSource="{Binding List}" /> |
This file contains 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
public class PercentageConverter : IValueConverter | |
{ | |
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) | |
{ | |
var fraction = decimal.Parse(value.ToString()); | |
return fraction.ToString("P1"); | |
} | |
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) | |
{ |
This file contains 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
{% gist 92b3fce859806a435a96 %} |
This file contains 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
@font-face { | |
font-family: 'FontAwesome'; | |
src: url("/blog/font/fontawesome-webfont.eot"); | |
src: url("/blog/font/fontawesome-webfont.eot?#iefix") format("embedded-opentype"), | |
url("/blog/font/fontawesome-webfont.woff") format("woff"), | |
url("/blog/font/fontawesome-webfont.ttf") format("truetype"), | |
url("/blog/font/fontawesome-webfont.svgz#FontAwesomeRegular") format("svg"), | |
url("/blog/font/fontawesome-webfont.svg#FontAwesomeRegular") format("svg"); | |
font-weight: normal; | |
font-style: normal; |