Skip to content

Instantly share code, notes, and snippets.

#r "../bin/Microsoft.Owin.dll"
using System.Net;
public static async Task<HttpResponseMessage> Run(HttpRequestMessage req, TraceWriter log)
{
log.Info("We are refering a dll");
// parse query parameter
string name = req.GetQueryNameValuePairs()
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<config>
<add key="repositoryPath" value=".\packages" />
</config>
<packageSources>
<add key="nuget.org" value="https://www.nuget.org/api/v2/" />
<add key="vsts_package_name" value="your vsts package name" />
</packageSources>
<packageSourceCredentials>
{
"frameworks": {
"net46": {
"dependencies": {
"Microsoft.Azure.DocumentDB": "1.11.1"
}
}
}
}
@hewei8829
hewei8829 / AngularJsRestApiCall.js
Created December 28, 2016 02:31
AngularJs Rest Api call Get & Post
appModule.service('ApiCall', ['$http', function ($http) {
var result;
var config = { headers: { 'Content-Type': 'text/json' } };
// This is used for calling get methods from web api
this.GetApiCall = function (url, queryString) {
result = $http.get(url + queryString, config).success(function (data, status) {
result = (data);
}).error(function () {
alert("Something went wrong during get call");
@hewei8829
hewei8829 / angularJsSample.html
Last active December 23, 2016 04:47
Here is a basic AngularJs Sample
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<div class="col-md-4">
<h4>AngularJs Sample</h4>
<p> Here is a sample I wrote. </p>
<div ng-app="demoApp" ng-controller="demoCtrl">
<p style="font-style:italic">This shows the basic bindings from model.</p>
First Name: <input type="text" ng-model="firstName"><br>
Last Name: <input type="text" ng-model="lastName"><br>
Full Name: {{firstName + " " + lastName}} <br>
@hewei8829
hewei8829 / showInChrome.json
Last active December 20, 2016 01:43
viusal studio code html
{
"version": "0.1.0",
"command": "showInChrome",
"windows": {
"command": "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
},
"osx": {