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
apm install react | |
apm install git-diff-details | |
apm install git-history | |
apm install merge-conflicts | |
apm install project-manager | |
apm install todo-show | |
apm install open-recent | |
apm install highlight-selected | |
npm i -g eslint |
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
// Playground - noun: a place where people can play | |
func quickSort <T : Comparable>(input : Array<T>)->(Array<T>){ | |
if(input.count <= 1) { | |
return input | |
} | |
let pivot = input[0] | |
let tail = input[1...input.count-1] | |
let less = Array(tail.filter{$0<pivot}) |
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
var file = await Windows.Storage.ApplicationData.Current.LocalFolder.CreateFileAsync("MyWav.wav", Windows.Storage.CreationCollisionOption.ReplaceExisting); | |
await Windows.Storage.FileIO.WriteBytesAsync(file, buffer); |
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 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" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
xmlns:Primitives="clr-namespace:Microsoft.Phone.Controls.Primitives;assembly=Microsoft.Phone" | |
x:Class="FacebookPivot.MainPage" | |
mc:Ignorable="d" | |
SupportedOrientations="Portrait" |
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
IEnumerable<PropertyInfo> ss = obj.GetType().GetRuntimeProperties(); | |
var ingoreAttribute = Attribute.GetCustomAttribute(s, typeof(IngoreUriSerialize)); |
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.IO; | |
using System.Text; | |
using System.Net; | |
using System.Threading.Tasks; | |
using System.Windows.Controls; | |
using Windows.Storage; | |
namespace System.Windows.Media.Imaging | |
{ |
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
var builder = new UriBuilder("http://example.com"); | |
builder.Port = -1; | |
var query = HttpUtility.ParseQueryString(builder.Query); | |
query["foo"] = "bar<>&-baz"; | |
query["bar"] = "bazinga"; | |
builder.Query = query.ToString(); | |
string url = builder.ToString(); |
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; | |
namespace Helpers { | |
public class LocConverter { | |
public static double pi = Math.PI; | |
// | |
// Krasovsky 1940 | |
// | |
// a = 6378245.0, 1/f = 298.3 |
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.IO; | |
using System.IO.IsolatedStorage; | |
using System.Linq; | |
using System.Runtime.Serialization.Json; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace Edooon.Model |
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
<Style x:Key="RatingStyle" TargetType="toolkit:Rating"> | |
<Setter Property="AllowHalfItemIncrement" Value="True" /> | |
<Setter Property="Width" Value="100" /> | |
<Setter Property="Height" Value="20" /> | |
<Setter Property="FilledItemStyle"> | |
<Setter.Value> | |
<Style TargetType="toolkit:RatingItem"> | |
<Setter Property="Background" | |
Value="#FF9900" /> | |
</Style> |
NewerOlder