This file contains 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
/* | |
NodeJS Client module for OpenUV - Global Real-Time UV Index API | |
Installation: | |
npm install --save request | |
npm install --save query-string | |
Usage: | |
const openuv = require('./openuv.js')('v1', 'YOUR_API_KEY'); |
This file contains 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
## 10 Hardest Angular Interview Questions | |
Learn one way to build applications with Angular and reuse your code and abilities to build apps for any deployment target. For web, mobile web, native mobile and native desktop. | |
##### *Q1*: What is difference between Git vs SVN? | |
**Difficulty:** ⭐ | |
The main point in Git vs SVN debate boils down to this: Git is a distributed version control system (DVCS), whereas SVN is a centralized version control system. | |
**Source:** [medium.com](https://medium.com/@gauravtaywade/15-interview-questions-about-git-that-every-developer-should-know-bcaf30409647) | |
##### *Q2*: What is the command to write a commit message in Git? | |
**Difficulty:** ⭐ |
This file contains 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
public void Consumer() | |
{ | |
foreach(int i in Integers()) | |
{ | |
Console.WriteLine(i.ToString()); | |
} | |
} | |
public IEnumerable Integers() | |
{ |
This file contains 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
public static IEnumerable Where(this IEnumerable items, Predicate< T> prodicate) | |
{ | |
foreach(var item in items) | |
{ | |
if (predicate(item)) | |
{ | |
// for lazy/deffer execution plus avoid temp collection defined | |
yield return item; | |
} | |
} |
This file contains 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 anonymousData = new | |
{ | |
ForeName = "Jignesh", | |
SurName = "Trivedi" | |
}; | |
Console.WriteLine("First Name : " + anonymousData.ForeName); |
This file contains 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
string place = "world"; |
This file contains 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
string greet = String.Format("Hello {0}!", place); |
This file contains 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
public class TweetsController : Controller { | |
// GET: /Tweets/ | |
[HttpGet] | |
public ActionResult Index() { | |
return Json(Twitter.GetTweets(), JsonRequestBehavior.AllowGet); | |
} | |
} |
This file contains 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
public class TweetsController : ApiController { | |
// GET: /Api/Tweets/ | |
public List Get() { | |
return Twitter.GetTweets(); | |
} | |
} |
This file contains 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
Integrated Security = true; | |
Integrated Security = SSPI; |
OlderNewer