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
// CAREERS AT CONTOSO - TRIAL #2 | |
// TITLE: Punch Card Puzzle | |
// AUTHOR: Vogel | |
// DESCRIPTION: Send screenshot of su ccessful output to @contosoishiring | |
<x:Code><![CDATA[private void mutYUUJ U7(object ksn8879, RoutedEventArgs khJJUh3){ | |
System.Collections.Generic.Dictionary <int, Color>RX99RTOOUKL = new System.Collections.Generic.Diction | |
ary<int, Color>(); | |
RX99RTOOUKL.Add(0, Color.FromRgb(0, 0 , 0));RX99RTOOUKL.Add(1, Color.FromRgb(255, 255, 255)); | |
RX99RTOOUKL.Add(2, Color.FromRgb(224, 64, 64));RX99RTOOUKL.Add(3, Color.FromRgb(96, 255, 255)); |
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
using System; | |
using System.Collections.Generic; | |
using System.Collections.ObjectModel; | |
using System.Globalization; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Windows.Web.Http; | |
using Windows.Web.Http.Headers; | |
using Newtonsoft.Json; |
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
addAppointment = function(e, t, n) { | |
if ("undefined" != typeof Windows) { | |
var o = new Windows.ApplicationModel.Appointments.Appointment; | |
o.allDay = !0, o.startTime = new Date(i(t, "dddd, Do MMM YYYY").format()), o.subject = "Trip to " + n, Windows.ApplicationModel.Appointments.AppointmentManager.showAddAppointmentAsync(o, { | |
x: 300, | |
y: 0, | |
width: 600, | |
height: 100 | |
}).done(function(t) { | |
t ? (console.log("created!"), e()) : console.log("issue") |
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
using System.Drawing; | |
using System.Drawing.Imaging; | |
using System.Windows; | |
namespace GenerateMultiColorImages | |
{ | |
public partial class MainWindow : Window | |
{ | |
public MainWindow() | |
{ |
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
<Grid> | |
<Universal:AdMediatorControl x:Name="AdControl" | |
Id="ecba2d7a-f2d9-43bb-ab12-f8c5df300987" | |
Height="90" | |
Width="728" /> | |
<VisualStateManager.VisualStateGroups> | |
<VisualStateGroup x:Name="VisualStateGroup"> | |
<VisualState x:Name="Mobile"> | |
<VisualState.StateTriggers> |
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
internal bool CanPin() | |
{ | |
return !this.IsPinned() | |
&& this.UnderlyingModel != null | |
&& !this.IsRunningInKidsCorner() | |
&& (this.UnderlyingModel.IsSpecial | |
|| string.IsNullOrWhiteSpace(this.UnderlyingModel.ArtUrl) | |
|| (!string.IsNullOrWhiteSpace(this.UnderlyingModel.ArtUrl) | |
&& this.imageCacher.IsCached(this.UnderlyingModel.ArtUrl))); | |
} |
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
internal bool CanPin() | |
{ | |
if (this.IsPinned()) | |
{ | |
Debug.WriteLine("Cannot pin as already pinned"); | |
return false; | |
} | |
if (this.UnderlyingModel == null) | |
{ |
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
namespace JsonSerialization | |
{ | |
using System; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var firstObject = new MyClass { Something = "a value", Anotherthing = "another value" }; |
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
<phone:PhoneApplicationPage | |
x:Class="CaretBrushTest.MainPage" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" | |
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" | |
SupportedOrientations="Portrait" | |
shell:SystemTray.IsVisible="True"> | |
<phone:PhoneApplicationPage.Resources> |
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
private static List<AlphaKeyGroup<PhoneContact>> CreateGroups(SortedLocaleGrouping slg) | |
{ | |
var list = new List<AlphaKeyGroup<PhoneContact>>(); | |
foreach (string key in slg.GroupDisplayNames) | |
{ | |
var k = key; | |
if (key == "...") | |
{ | |
k = "🌐"; // 🌐 |
OlderNewer