Skip to content

Instantly share code, notes, and snippets.

View noppolp's full-sized avatar

noppolp noppolp

View GitHub Profile
@noppolp
noppolp / MessageBox.cs
Last active November 5, 2015 15:51 — forked from CH3COOH/MessageBox.cs
MessageBox.Show for Xamarin.iOS
using System;
using System.Drawing;
using UIKit;
using Foundation;
using System.Collections.Generic;
namespace UIKit
{
public enum MessageBoxResult
{
@noppolp
noppolp / 0_reuse_code.js
Last active August 29, 2015 14:20
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
.filter("timeago", function () {
//time: the time
//local: compared to what time? default: now
//raw: wheter you want in a format of "5 minutes ago", or "5 minutes"
return function (time, local, raw) {
if (!time) return "never";
if (!local) {
(local = Date.now())
}