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
#!/bin/sh | |
# | |
# chkconfig: - 85 15 | |
# description: fluentd daemon | |
# Source function library. | |
. /etc/rc.d/init.d/functions | |
# parameter | |
shell=/bin/bash |
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
// ==UserScript== | |
// @name test | |
// @namespace test | |
// @description test | |
// @grant GM_xmlhttpRequest | |
// ==/UserScript== | |
(function() { | |
// var user_name = document.hoge_form.user_input.value; | |
var user_name = '島風'; |
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
# rpmでfleutndのインストール | |
curl -L http://toolbelt.treasuredata.com/sh/install-redhat.sh | sh | |
# elasticsearchプラグインのインストール | |
/usr/lib64/fluent/ruby/bin/fluent-gem install fluent-plugin-elasticsearch |
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
#!/usr/local/bin/ruby | |
# coding: utf-8 | |
require 'net/http' | |
require 'uri' | |
require 'openssl' | |
require 'digest/md5' | |
require 'nokogiri' | |
# ================================ | |
# TODO: seeq txt |
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
<?xml version="1.0"?> | |
<opencv_storage> | |
<cascade> | |
<size> | |
24 24</size> | |
<stages> | |
<_> | |
<trees> | |
<_> | |
<_> |
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
<?xml version="1.0"?> | |
<opencv_storage> | |
<cascade type_id="opencv-haar-classifier"> | |
<size> | |
24 24</size> | |
<stages> | |
<_> | |
<trees> | |
<_> | |
<_> |
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
#!/usr/bin/env ruby | |
require 'opencv' | |
include OpenCV | |
# if ARGV.size != 1 | |
# puts 'Usage: ruby #{__FILE__} Image' | |
# exit | |
# end |
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 | |
// access and get api key | |
// chose :authorized_type -> Anonymus usage without user authorization | |
// https://api.imgur.com/oauth2/addclient | |
// plz input ur api_id | |
$client_id = 'plz-input-urapi-id'; | |
if (!$_POST) exit('post plz'); |
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 | |
// access and get api key | |
// chose :authorized_type -> Anonymus usage without user authorization | |
// https://api.imgur.com/oauth2/addclient | |
// plz input ur api_id | |
$client_id = 'plz-input-urapi-id'; | |
if (!$_POST) exit('post plz'); | |
$file = file_get_contents($_FILES['media']['tmp_name']); | |
$url = 'https://api.imgur.com/3/image.json'; | |
$headers = array("Authorization: Client-ID $client_id"); |
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
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
host = '127.0.0.1' | |
port = 9199 | |
name = 'test' | |
require 'jubatus/classifier/client' | |
client = Jubatus::Classifier::Client::Classifier.new(host, port, name) |
OlderNewer