Skip to content

Instantly share code, notes, and snippets.

class Flap extends Backbone.Model
class TimelineCollection extends Backbone.Collection
model: Flap
url: /tweets/
timeline = new TimelineCollection()
TweetView = Backbone.View.extend
initalize:->
@Grummle
Grummle / RestfulRouteModule.cs
Created June 1, 2012 19:52
Http Module to write Route 'pattern' to server_variables
using System;
using System.Diagnostics;
using System.Web;
using System.Web.Routing;
using YourApp.Infrastructure.Framework;
namespace YourApp.Web.UI
{
public class RestfulRouteModule : IHttpModule
{
document.write('<link rel="stylesheet" href="https://gist.github.com/stylesheets/gist/embed.css"/>')
document.write('<div id=\"gist-2854760\" class=\"gist\">\n\n <div class=\"gist-file\">\n <div class=\"gist-data gist-syntax\">\n <div class=\"gist-highlight\"><pre><div class=\'line\' id=\'LC1\'><span class=\"k\">using<\/span> <span class=\"nn\">System<\/span><span class=\"p\">;<\/span><\/div><div class=\'line\' id=\'LC2\'><span class=\"k\">using<\/span> <span class=\"nn\">System.Diagnostics<\/span><span class=\"p\">;<\/span><\/div><div class=\'line\' id=\'LC3\'><span class=\"k\">using<\/span> <span class=\"nn\">System.Web<\/span><span class=\"p\">;<\/span><\/div><div class=\'line\' id=\'LC4\'><span class=\"k\">using<\/span> <span class=\"nn\">System.Web.Routing<\/span><span class=\"p\">;<\/span><\/div><div class=\'line\' id=\'LC5\'><span class=\"k\">using<\/span> <span class=\"nn\">YourApp.Infrastructure.Framework<\/span><span class=\"p\">;<\/span><\/div><div class=\'line\' id=\'
namespace Reachmail.Web.UI.api
{
public class Outputmodel
{
public int hello { get; set; }
}
public class PostCollectionHandler
{
public Outputmodel Execute(IEnumerable<ListModel> lists )
@Grummle
Grummle / .tmux.conf
Created July 23, 2012 21:51 — forked from snuggs/.tmux.conf
TMUX configuration file
set-window-option -g mode-keys vi # vi key
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
{
"logPath": "C:\\iislogreader.log",
"sources": [
{
"id":"go.site.net",
"templates":["c:\\iisExtendedTemplate.json","c:\\iisAdvancedLogginTemplate.json"],
"logDirectory": "D:\\IIS\\Logs\\W3SVC2\\",
"staticElements": [
{
@Grummle
Grummle / gist:11293838
Created April 25, 2014 15:37
Logstash work in progress
input {
file {
type => "iis"
start_position => "beginning"
path => "C:/IISLogs/W3SVC2/*.log"
format => "plain"
}
}
filter