Skip to content

Instantly share code, notes, and snippets.

<configuration>
.. 省略 ..
<appSettings>
<add key="ConsumerKey" value="** API key **"/>
<add key="ConsumerSecret" value="** API secret **"/>
<add key="AccessToken" value="** Access token **"/>
<add key="AccessTokenSecret" value="** Access token secret **"/>
</appSettings>
</configuration>
@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');
}
$('body').easterEgg();
$('body').on('jQuery.esterEgg', function () {
$("#pronama-logo").rotate({
angle: 0,
animateTo: 360
});
});
(function($) {
var mainContent = $("#primary"),
height = mainContent.outerHeight(), // コンテンツの縦幅 この幅までモジュールを追加する
aside = $("#content-sidebar"), // モジュールを追加する領域
buffer = 80;
function getMoreContent() {
$.ajax({
type: "GET",
url: "http://***.azurewebsites.net/api/values", // 追加モジュールのデータを返す API を用意
<AllowCrossSiteJson>
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
' GET api/values/5
<CacheOutput(ClientTimeSpan:=86400, ServerTimeSpan:=86400)>
Public Function GetValue(ByVal id As Integer) As String
Return ""
End Function
#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')]
#coding:utf-8
def application(environ, start_response):
status = '200 OK'
response_headers = [('Content-type', 'text/plain')]
start_response(status, response_headers)
yield 'こんにちは\n'
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;