This file contains 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
// 他の言語でありそうなコード | |
response = get('https://api.github.com'); # レスポンスが帰るまで待つ | |
print(response); | |
// JS(jQuery) | |
$.get('https://api.github.com', function(response) { | |
console.log(response); | |
}); | |
// ES6 |
This file contains 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 inputs = process.argv.slice(2); | |
var result = inputs.map((x) => x[0]).reduce((result, x) => result += x); | |
console.log(result); |
This file contains 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
diff --git a/src/main/webapp/static/js/kintone/proxy/proxy_spec.js b/src/main/webapp/static/js/kintone/proxy/proxy_spec.js | |
index 64d416a..9840fc4 100644 | |
--- a/src/main/webapp/static/js/kintone/proxy/proxy_spec.js | |
+++ b/src/main/webapp/static/js/kintone/proxy/proxy_spec.js | |
@@ -108,7 +108,15 @@ describe('kintone.proxy', function() { | |
cybozu.data['REQUEST_TOKEN'] = 'hoge'; | |
kintone.proxy('url', 'POST', {}, {}, callback); | |
- server.requests[0].respond(200, {}, ''); | |
+ server.requests[0].respond(200, {}, JSON.stringify({ |
This file contains 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
// ---- | |
// Sass (v3.4.6) | |
// Compass (v1.0.1) | |
// ---- | |
@import "compass"; | |
$svg-gradient-shim-threshold: 100; | |
.hoge { |
This file contains 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
// ---- | |
// Sass (v3.4.6) | |
// Compass (v1.0.1) | |
// ---- | |
.block1 { | |
&__element { | |
color: red; | |
&--modifier { | |
color: blue; |
This file contains 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
// ---- | |
// Sass (v3.4.5) | |
// Compass (v1.0.1) | |
// ---- | |
@import "compass"; | |
$svg-gradient-shim-threshold: 100; | |
.ng { |
This file contains 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
describe('サンプル', function() { | |
it('テスト', function() { | |
// コメント | |
assert(1 === 2); | |
}); | |
}); |
This file contains 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
function getProvideRequireSrc(buf, info) { | |
var toProvide = info.toProvide.map(function(namespace) { | |
/*jshint quotmark:false */ | |
return "goog.provide('" + namespace + "');"; | |
}); | |
var ignoredProvide = info.ignoredProvide.map(function(namespace) { | |
/*jshint quotmark:false */ | |
return "goog.provide('" + namespace + "'); // fixclosure: ignore"; | |
}); | |
var allToProvide = toProvide.concat(ignoredProvide).sort(); |
This file contains 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
kintone.events.on('app.record.index.show', function() { | |
kintone.app.getHeaderMenuSpaceElement().innerHTML = | |
'<input type="text" id="keyword" placeholder="キーワード" > <button id="search">検索</button>' | |
document.getElementById('search').onclick = function() { | |
var keyword = document.getElementById('keyword').value; | |
var url = location.href; | |
url += '?query=' + '文字列__1行_ like "' + keyword + '"'; | |
location.href = url; | |
} | |
}); |
NewerOlder