Uncheck ⌘-Q
Mac Shortcut | Virtual Machine Shortcut |
---|---|
⌘-Z | Control-Z |
⌘-X | Control-X |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
public abstract class BaseViewModel : INotifyPropertyChanged | |
{ | |
public event PropertyChangedEventHandler PropertyChanged; | |
public virtual void ReverseInit(object value) { } | |
protected void PushViewModel<T> () where T : BaseViewModel | |
{ | |
PushViewModel<T> (null); | |
} |
// Xamarin.iOS (using MonoTouch.UIKit;) | |
static Random rand = new Random(); | |
public static UIColor GetRandomColor() { | |
int hue = rand.Next(255); | |
UIColor color = UIColor.FromHSB( | |
(hue / 255.0f), | |
1.0f, | |
1.0f); | |
return color; | |
} |
using System; | |
using System.Collections; | |
using System.Collections.Specialized; | |
using System.Diagnostics; | |
using MonoTouch.Foundation; | |
using MonoTouch.UIKit; | |
namespace Praeclarum.UI | |
{ |
using System; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using System.Collections.Concurrent; | |
namespace Praeclarum | |
{ | |
/// <summary> | |
/// Wraps a value and only allows access to it using a single thread | |
/// of execution (see SingleThreadQueue). |
using System; | |
using MonoTouch.UIKit; | |
namespace OneLove | |
{ | |
public static class FlatUIColors | |
{ | |
public static UIColor TurqoiseColor = UIColor.FromRGBA(26, 188, 156, 100); | |
public static UIColor GreenSeaColor = UIColor.FromRGBA(22, 160, 133, 100); | |
public static UIColor EmeraldColor = UIColor.FromRGBA(46, 204, 113, 100); |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
using System.Security.Cryptography; | |
/// Hashes an email with MD5. Suitable for use with Gravatar profile | |
/// image urls | |
public static string HashEmailForGravatar(string email) | |
{ | |
// Create a new instance of the MD5CryptoServiceProvider object. | |
MD5 md5Hasher = MD5.Create(); | |
// Convert the input string to a byte array and compute the hash. |