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
<?php | |
class TagCrawler { | |
private $api_url; | |
private $target_tags; | |
private $output_file_name; | |
const PAGE_MAX = 200; | |
const MAX_RECORD_PAR_PAGE = 50; | |
const WORK_ID = 0; | |
const USER_ID = 1; | |
const TITLE = 3; |
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
<?php | |
function plugin_machinations_init() { | |
} | |
function plugin_machinations_inline() { | |
$args = func_get_args(); | |
$xml = $args[0]; | |
$width = $args[1]; | |
$height = $args[2]; |
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
ERROR_MESSAGE = process.env.HUBOT_ZATSUDAN_ERROR_MESSAGE or 'エラーです' | |
zatsudan = (msg, zatsudan) -> | |
request = require('request') | |
request.post({url : "https://api.apigw.smt.docomo.ne.jp/dialogue/v1/dialogue?APIKEY=XXXXXX", | |
form : {"utt" : "#{zatsudan}", "place" : "東京", "mode" : "dialog"}}, (err, httpResponse, body) -> | |
if error or httpResponse.statusCode != 200 | |
return msg.send("雑談に失敗しました") | |
data = JSON.parse(body)[0] | |
msg.send "#{data.utt}") |
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
input { | |
file { | |
path => "<抽出したログへのパス>" | |
type => "miraivariant" | |
start_position => "beginning" | |
} | |
} | |
filter { | |
csv { | |
columns => ["timestamp","source_ip","source_port","dist_port"] |
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
echo "this is test" > test.txt |
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
<center><b>作品置き場</b></center> | |
<a href="■自分のTwitterアカウントのURL■" target="_blank" rel="noopener"> | |
<div style="text-align:center;background:#12a5f4;padding:0.8em;margin:0.5em;text-decoration:none;color:#eeeeee;"> | |
Twitter</div></a> | |
<a href="■自分のpixivのURL■" target="_blank" rel="noopener"> | |
<div style="text-align:center;background:#005bd3;padding:0.8em;margin:0.5em;text-decoration:none;color:#eeeeee;"> | |
Pixiv</div></a> |