Skip to content

Instantly share code, notes, and snippets.

diff --git a/Sample/src/ItemLookupSample.cs b/Sample/src/ItemLookupSample.cs
index 9d8212b..b36fdc8 100644
--- a/Sample/src/ItemLookupSample.cs
+++ b/Sample/src/ItemLookupSample.cs
@@ -32,15 +32,16 @@ namespace AmazonProductAdvtApi
class ItemLookupSample
{
private const string MY_AWS_ACCESS_KEY_ID = "YOUR_AWS_ACCESS_KEY_ID";
- private const string MY_AWS_SECRET_KEY = "YOUR_AWS_SECRET_KEY";
+ private const string MY_AWS_SECRET_KEY = "YOUR_AWS_SECRET_KEY";
diff --git a/Sample/src/SignedRequestHelper.cs b/Sample/src/SignedRequestHelper.cs
index 050e946..dec1058 100644
--- a/Sample/src/SignedRequestHelper.cs
+++ b/Sample/src/SignedRequestHelper.cs
@@ -31,6 +31,7 @@ namespace AmazonProductAdvtApi
{
private string endPoint;
private string akid;
+ private string associateTag;
private byte[] secret;
#coding:utf-8
def application(environ, start_response):
status = '200 OK'
response_headers = [('Content-type', 'text/plain')]
start_response(status, response_headers)
yield 'こんにちは\n'
#coding:utf-8
import cgi
def application(environ, start_response):
fs = cgi.FieldStorage(environ=environ, fp=environ['wsgi.input'])
value = fs.getfirst('val', 'Python')
status = '200 OK'
response_headers = [('Content-type', 'text/plain')]
' GET api/values/5
<CacheOutput(ClientTimeSpan:=86400, ServerTimeSpan:=86400)>
Public Function GetValue(ByVal id As Integer) As String
Return ""
End Function
Public Class AllowCrossSiteJsonAttribute
Inherits System.Web.Http.Filters.ActionFilterAttribute
Public Overrides Sub OnActionExecuted(actionExecutedContext As Http.Filters.HttpActionExecutedContext)
If actionExecutedContext.Request IsNot Nothing Then
actionExecutedContext.Response.Headers.Add("Access-Control-Allow-Origin", "*")
End If
MyBase.OnActionExecuted(actionExecutedContext)
End Sub
<AllowCrossSiteJson>
Public Function GetValue(ByVal id As Integer) As String
Return ""
End Function
(function($) {
var mainContent = $("#primary"),
height = mainContent.outerHeight(), // コンテンツの縦幅 この幅までモジュールを追加する
aside = $("#content-sidebar"), // モジュールを追加する領域
buffer = 80;
function getMoreContent() {
$.ajax({
type: "GET",
url: "http://***.azurewebsites.net/api/values", // 追加モジュールのデータを返す API を用意
$('body').easterEgg();
$('body').on('jQuery.esterEgg', function () {
$("#pronama-logo").rotate({
angle: 0,
animateTo: 360
});
});
@jz5
jz5 / style.css
Last active August 29, 2015 14:02
div#mainArea {
background: url('//pronama.azurewebsites.net/chrome/conoha/bgKeiMode2.jpg') no-repeat right 100px;
}
div#imgDeformedConoHa {
background-image: url('//pronama.azurewebsites.net/chrome/conoha/imgKeiInfo.png');
}
div#loading > div div {
background-image: url('//pronama.azurewebsites.net/chrome/conoha/bgLoadingFilmKei.png');
}