Skip to content

Instantly share code, notes, and snippets.

View coryt's full-sized avatar
💡
Learning

Cory Taylor coryt

💡
Learning
View GitHub Profile
public class ThrottleInfoAttribute : Attribute
{
public int PerMinute { get; set; }
public int PerHour { get; set; }
public int PerDay { get; set; }
}
@coryt
coryt / ThrottlePlugin.cs
Created January 26, 2015 00:24
ServiceStack plugin to throttle api requests
public class ThrottlePlugin : IPlugin
{
/// <param name="redisHost">host name</param>
/// <param name="redisPort">port</param>
/// <param name="redisPassword">password</param>
public ThrottlePlugin(string redisHost, int redisPort, string redisPassword = null)
{
_redisClient = new RedisClient(redisHost, redisPort, redisPassword);
}

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after