This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": 34234, | |
"firstname": "Suhas", | |
"lastname": "Chatekar", | |
"email": "[email protected]", | |
"memberships": [{ | |
"meetup_id": 2345, | |
"name": "London Erlang Group" | |
}], | |
"rsvps": [{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"href": "https://myapi.com/v1/member/34234", | |
"id": 34234, | |
"firstname": "Suhas", | |
"lastname": "Chatekar", | |
"email": "[email protected]", | |
"memberships": [{ | |
"href": "https://myapi.com/v1/meetup/2345", | |
"meetup_id": 2345, | |
"name": "London Erlang Group" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function modify(req, res, next){ | |
if(res.status == 400){ | |
res.body = ""; | |
} | |
next(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"locale": "string", | |
"displayTexts": { | |
"concourse": "On {concourse}", | |
"airside": "string", | |
"landside": "string", | |
"beforeSecurity": "string", | |
"afterSecurity": "string", | |
"beforeImmigration": "string", | |
"afterImmigration": "string", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//collection- borrowers | |
{ | |
"_id": "some id", | |
"name": "Suhas Chatekar", | |
"borrowed_books": [ | |
{ | |
"bookid": "book 1" | |
}, | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//collection- borrowers | |
{ | |
"_id": "some id", | |
"name": "Suhas Chatekar", | |
"borrowed_books": [ | |
{ | |
"_id": "book 1", | |
"name": "Build Single Page Applications with SQL", | |
"author": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var conversion = require("phantom-html-to-pdf")(); | |
var fs = require('fs'); | |
console.time("phantom"); | |
var writeStream = fs.createWriteStream('linkedin_phantom.pdf'); | |
conversion({ url: "https://www.linkedin.com/in/chatekar" }, function(err, pdf) { | |
console.log(pdf.numberOfPages); | |
pdf.stream.pipe(writeStream); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Persistence | |
{ | |
public class PersonDto | |
{ | |
public string FirstName {get; set;} | |
public string LastName {get; set;} | |
public DateTime BirthDate {get; set;} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Domain | |
{ | |
public class Person | |
{ | |
public string FirstName {get; set;} | |
public string LastName {get; set;} | |
public DateTime BirthDate {get; set;} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getToDoHtml(todo) { | |
return '<li><span class="todo">' + todo + '</span><a class="edit">Edit</a><a class="remove">Remove</a></li>'; | |
} | |
$('input[type="submit"].add-todo').click(function () { | |
var todo = $('input[type="text"].add-todo').val(); | |
if (todo) { | |
$('.todo-list').append(getToDoHtml(todo)); |