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
$(document).ready(function () { | |
// Returns formatted HTML for a todo item | |
function getToDoHtml(todo) { | |
return '<li><span class="todo">' + todo + '</span><a class="edit">Edit</a><a class="remove">Remove</a></li>'; | |
} | |
// When Add button is clicked, appends the todo item from the textbox to the list of todo items | |
$('input[type="submit"].add-todo').click(function () { | |
var todo = $('input[type="text"].add-todo').val(); |
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)); |
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
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
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
//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
//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
{ | |
"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
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
{ | |
"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" |
OlderNewer