Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View paulirwin's full-sized avatar
🙃

Paul Irwin paulirwin

🙃
View GitHub Profile
@mlienau
mlienau / DictionaryToMapConverter.cs
Created February 9, 2018 20:29
JSON.NET converter for serializing a C# Dictionary to a javascript Map initialization array
public class DictionaryToMapConverter<TKey, TValue> : JsonConverter
{
public override bool CanConvert(Type objectType)
{
return false;
}
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
{
// I'm only using this for writing as of now
@anaisbetts
anaisbetts / .gitattributes
Created December 3, 2014 16:26
USE THIS GITATTRIBUTES FOR EVERY NEW PROJECT FOREVER AND EVER
# Auto detect text files and perform LF normalization
* text=auto
# Custom for Visual Studio
*.cs diff=csharp
@tshrkmd
tshrkmd / styles_noactionbar.xml
Last active November 3, 2022 09:58
Theme.AppCompat.Light.NoActionBar
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.AppCompat.Light.NoActionBar" parent="@style/Theme.AppCompat.Light">
<item name="android:windowNoTitle">true</item>
<item name="windowActionBar">false</item> <!-- For 2.x version -->
</style>
</resources>