Skip to content

Instantly share code, notes, and snippets.

@aalinat
aalinat / wcf self hosted soap
Last active August 29, 2015 14:07
wcf self hosted soap
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Description;
using System.ServiceModel.Web;
using System.Text;
using System.Threading.Tasks;
namespace WCFServer
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Description;
using System.ServiceModel.Web;
using System.Text;
using System.Threading.Tasks;
namespace WCFServer
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.ServiceModel.Web;
using System.Text;
namespace TESTRestFulWCF
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.ServiceModel.Web;
using System.Text;
namespace TESTRestFulWCF
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.5.1" />
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.5.1" />
@aalinat
aalinat / creating angular services
Created July 18, 2014 21:25
creating angular services
angular.module('myApp', [])
.factory('myService', function () {
return {
say: function () {
return "Hello World";
}
}
});
@aalinat
aalinat / Index.erb
Created July 18, 2014 19:40
angular + ruby on rails demo
<h1>Angular</h1>
<div ng-controller="Numbers" ng-cloak>
<button ng-click="SaveCookie()">Save Cookie</button>
<button ng-click="PrintCookie()">Print Cookie</button>
<button ng-click="Increment()">Increment</button>
count: {{count}}
@aalinat
aalinat / activity.java
Last active December 16, 2015 03:49
android http post/get requests
package com.example.single;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.List;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
@aalinat
aalinat / do_contact.html.erb
Created July 14, 2012 23:37
rails inline attachment
<h2>New Message!</h2>
<p>Priority:</p>
<%=@priority%>
<p>
<%= image_tag attachments['image.jpg'].url %>
</p>
<p>
<%=@description%>