Skip to content

Instantly share code, notes, and snippets.

@formix
formix / xd2md.cs
Last active January 17, 2024 21:13
Generates Markdown From VisualStudio XML documentation files
using System;
using System.Collections.Generic;
using System.IO;
using System.Text.RegularExpressions;
using System.Xml;
using System.Xml.Linq;
namespace Formix.Utils
{
class Program
@JonDouglas
JonDouglas / gist:b9fa806f40365acf3cbb
Created September 29, 2014 20:18
Xamarin Forms Renderers
Platform Specific renderers can be found in the following namespaces:
iOS: Xamarin.Forms.Platform.iOS
Android: Xamarin.Forms.Platform.Android
Windows Phone: Xamarin.Forms.Platform.WinPhone
Base Renderer
To start with, all renders usually derive from a platform specific base renderer class that in turn inherit from a platform specific control. If you want to create platform specific renderers from scratch you are probably going to be deriving them from the correct platform's base renderer class. These have been substantially standardized in version 6201 with all controls inheriting from a generic version of ViewRenderer. There is also a non-generic version that appears to be used sometimes by navigation controls. The methods on these classes are also more in line with each other than they had been but still not the same. For example the iOS version has a method called ViewOnUnfocusRequested while the Android's version of the same method is called OnUnfocusRequested.
iOS:
@TheXenocide
TheXenocide / Lunar.html
Last active August 29, 2015 14:01
A remake of one of the earliest games I ever ported to JavaScript. I decided to remake it this past weekend while showing the old one to my roommate. Complete re-implementation using AngularJS took about 4 hours.
<html>
<head><title>Lunar Lockout</title>
<script src="https://code.angularjs.org/1.2.9/angular.js"></script>
<script>
// note that ng-keydown is available since angular 1.1.5
var app = angular.module('lunar', []);
app.filter('range', function() {
return function(input, total) {
total = parseInt(total);