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
<?php | |
require_once('vendor/autoload.php'); | |
require_once('conf.php'); // ACCESS_KEY, SECRET_KEY, ASSOCIATE_TAGを定義 | |
const RETRY_COUNT = 5; // 試行回数 | |
const RETRY_SLEEP_SEC = 10; // 試行時の待ち時間(秒) | |
const RESULT_ERROR_JSON = '{ "result": false }'; | |
use ApaiIO\Configuration\GenericConfiguration; |
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
# Disqus | |
disqusShortname = "backport" |
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
applicationVariants.all { variant -> | |
variant.outputs.each { output -> | |
if (output.outputFile != null && output.outputFile.name.endsWith('.apk')) { | |
def nameSuffix = variant.buildType.hasProperty('versionNameSuffix') ? variant.buildType.versionNameSuffix : "" | |
def newName = "${APPLICATION_NAME}-${defaultConfig.versionName}${nameSuffix}.apk" | |
output.outputFile = new File(output.outputFile.parent, newName) | |
} | |
} | |
} |
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
... | |
<receiver | |
android:name=".FirebaseDataReceiver" | |
android:exported="true" | |
android:permission="com.google.android.c2dm.permission.SEND"> | |
<intent-filter> | |
<action android:name="com.google.android.c2dm.intent.RECEIVE"/> | |
</intent-filter> | |
</receiver> | |
... |
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
/** | |
* @param context Context | |
* @param fileName ファイル名 | |
* @param charset 文字コード | |
* @return 読み込んだテキスト | |
*/ | |
public static String loadStringFromAssets(Context context, String fileName, String charset) throws IOException { | |
String str = null; | |
InputStream is = null; |
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
const client = require('cheerio-httpcli'); | |
const ids = [ | |
'B06XDFJJRS', | |
'B00IOY56P8', | |
'B01FIG3SMC', | |
'B0186FEWLS', | |
]; | |
ids.forEach(function(value) { |
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
require 'asciidoctor/extensions' unless RUBY_ENGINE == 'opal' | |
include Asciidoctor | |
Extensions.register do | |
preprocessor do | |
process do |document, reader| | |
new_lines = [] | |
status = Status::OUTSIDE |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
# box | |
config.vm.box = "centos/7" | |
# Create a forwarded port mapping which allows access to a specific port | |
# within the machine from a port on the host machine. In the example below, |
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
root = true | |
[*] | |
charset = utf-8 | |
end_of_line = lf | |
indent_size = 4 | |
indent_style = space | |
insert_final_newline = true | |
trim_trailing_whitespace = true |
OlderNewer