I hereby claim:
- I am triniMahn on github.
- I am trinimahn (https://keybase.io/trinimahn) on keybase.
- I have a public key whose fingerprint is 637B D6DD E483 ED3E 3C01 50C0 21ED CFD3 9174 936A
To claim this, I am signing this object:
| public static class LinqToCSV | |
| { | |
| public static string ToCsv(SqlDataReader reader) | |
| { | |
| StringBuilder csvBuilder = new StringBuilder(); | |
| string line = null; | |
| int i = 0; | |
| //Get column headings | |
| for (i = 0; i < reader.FieldCount - 1; i++) |
| class Foo extends Bar | |
| constructor: (@name, job) -> | |
| #With @name we can auto set an instance variable named "name", if we like. | |
| @Job = job | |
| longAssFunction: (param)-> | |
| #Use parentheses for function calls | |
| result = eat(param) |
| class DocumentRow extends Backbone.View | |
| tagName: "li" | |
| className: "document-row" | |
| events: | |
| "click .icon": "open" | |
| "click .button.edit": "openEditDialog" | |
| "click .button.delete": "destroy" |
| var DocumentRow = Backbone.View.extend({ | |
| tagName: "li", | |
| className: "document-row", | |
| events: { | |
| "click .icon": "open", | |
| "click .button.edit": "openEditDialog", | |
| "click .button.delete": "destroy" |
I hereby claim:
To claim this, I am signing this object:
| Backbone = require 'backbone' | |
| RestController = require 'backbone-rest' | |
| AppSettings = require('./_config') | |
| class Todo extends Backbone.Model | |
| urlRoot: "mongodb://#{AppSettings.DB.cnnString}/Todos" | |
| sync: require('backbone-mongo').sync(Todo) | |
| defaults: | |
| title: '' |
| searchArchivedByDate: => | |
| dateFrom = Date.parse(@ui.dateFrom.val()) | |
| dateTo = Date.parse(@ui.dateTo.val()) | |
| Todo.find {archived: true, created: {$gte: dateFrom.valueOf(), $lt: dateTo.valueOf()}}, (err,todos)-> | |
| console.log(err) if err | |
| app.collections.tds.reset(todos or []) |
| class window.Todo extends Backbone.Model | |
| #You can use this to test the (client-side) app logic if you're having issues with BackboneORM to start | |
| #localStorage: new Backbone.LocalStorage('todos-backbone-marionettejs') | |
| urlRoot: '/todos' | |
| #Use backbone-http to communicate with your server -- overriding the model sync method here | |
| sync: BackboneHTTP.sync(Todo) |
| window.TodoMVC = new Backbone.Marionette.Application() | |
| window.app = {} | |
| window.app.collections = {} | |
| TodoMVC.addRegions | |
| header: '#header' | |
| main: '#main' | |
| footer: '#footer' | |
| filters: '#filters' | |
| class window.Automobile extends Backbone.SF.CompositeModel | |
| initialize: (attributes,options)-> | |
| defaults: | |
| modelName: null | |
| startEngine: => | |
| @__.Engine.start() | |