This file contains hidden or 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 user = 'YOUR_NAME'; // ユーザ名 | |
var access_token = 'YOUR_ACCESS_TOKEN'; // アクセストークン | |
$.ajax({ | |
url: 'https://qiita.com/api/v1/users/' + user + '/items?token=' + access_token, | |
type: 'GET', | |
dataType: 'json', | |
scriptCharset: 'utf-8', | |
success: function(res) { | |
// 成功した時の処理 |
This file contains hidden or 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
$ cordova plugin add [プラグインのID] |
This file contains hidden or 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
self.cb = window.open(url, '_blank', 'location=no,toolbar=no,clearsessioncache=yes'); | |
self.cb.addEventListener('loadstart', function(e) { | |
var loc = e.url; | |
if (loc.indexOf(REDIRECT_URL) != -1) { | |
// 認可完了後の処理 | |
return; | |
} | |
}); |
This file contains hidden or 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 params = { | |
'client_id': clientID, // 登録したアプリのクライアントID | |
'client_secret': clientSecret, // 登録したアプリのクライアントシークレット | |
'code': code // リダイレクトURLのクエリのcodeの値 | |
}; | |
$.ajax({ | |
url: getAPIURL('https://qiita.com/api/v2/access_tokens'), | |
type: 'POST', | |
headers: { |
This file contains hidden or 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
<script type="text/javascript" src="marked.js"></script> |
This file contains hidden or 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
<link rel="stylesheet" href="css/ext/github.css" type="text/css" /> | |
<script type="text/javascript" src="js/ext/highlight.pack.js"></script> |
This file contains hidden or 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
marked.setOptions({ | |
langPrefix: '' | |
}); | |
var html = marked(src); | |
$('#src').html(html); | |
$('#src pre code').each(function(i, block) { | |
hljs.highlightBlock(block, block.className); | |
}); |
This file contains hidden or 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
// Don't send a synthetic click to disabled inputs (issue #62) | |
case 'button': | |
case 'select': | |
+ if (target.disabled) { | |
+ return true; | |
+ } | |
+ break; | |
case 'textarea': | |
- if (target.disabled) { | |
- return true; |
This file contains hidden or 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
@@ -6,11 +6,13 @@ github.com style (c) Vasily Polovnyov <[email protected]> | |
.hljs { | |
display: block; | |
+ word-wrap: break-word; | |
overflow-x: auto; | |
padding: 0.5em; | |
color: #333; | |
background: #f8f8f8; | |
-webkit-text-size-adjust: none; |
This file contains hidden or 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
GetComponent(Nend_Ad_Banner_Controller).OnScreenChanged(); |