Skip to content

Instantly share code, notes, and snippets.

{
"embeddings": [
{
"tensorName": "My tensor",
"tensorShape": [
1000,
50
],
"tensorPath": "https://gist.githubusercontent.com/s-kiriki/465b7c676623f12dc256504261d288ab/raw/tensor.tsv",
"metadataPath": "https://gist.githubusercontent.com/s-kiriki/465b7c676623f12dc256504261d288ab/raw/metadata.tsv"
@s-kiriki
s-kiriki / slackbot-contribution.php
Created December 24, 2014 01:44
年末だしSlack上のHubotの今年一年の労をねぎらってあげる ref: http://qiita.com/s-kiriki/items/a39a512bc65c1f4c3871
<?php
if (!getenv(SLACK_API_TOKEN)) {
exit('You must set env SLACK_API_TOKEN');
}
ini_set('date.timezone', 'Asia/Tokyo');
@s-kiriki
s-kiriki / gist:2df9ca0e787f91cb8ce3
Last active August 29, 2015 14:11
Slack上のBotの貢献度を図るスクリプト
<?php
if (!getenv(SLACK_API_TOKEN)) {
exit('You must set env SLACK_API_TOKEN');
}
ini_set('date.timezone', 'Asia/Tokyo');
@s-kiriki
s-kiriki / Dockerfile
Created December 12, 2014 10:43
ChatOps( Slack / Hubot / Docker )で検証環境をポンポン作って、ポンポン捨てる ref: http://qiita.com/s-kiriki/items/501c08d22827def4ec9f
FROM centos:centos6
RUN yum update -y
RUN yum install -y httpd
RUN yum install -y git
ADD ./app_init.sh /
RUN mkdir /root/.ssh/
ADD id_rsa /root/.ssh/id_rsa
@s-kiriki
s-kiriki / gist:b73c912d29738a3b91f2
Created December 5, 2014 01:36
Swift勉強会#3 クラス操作
// Playground - noun: a place where people can play
import UIKit
var str = "Hello, playground"
//クラスの勉強
//クラス宣言
class Player{
@s-kiriki
s-kiriki / gist:98aec175f3490aa0c958
Created December 2, 2014 04:53
Swift勉強会#2
// Playground - noun: a place where people can play
import UIKit
//Optional型
//Optionalとはnilの代入を許すこと
//Optionalにするには?をつけてwrapする。
var a : Int = 3
var b : Int? = 2
@s-kiriki
s-kiriki / gist:d18fd2be18040e0718d6
Last active October 31, 2016 04:12
【ChatOps用】Github上のプルリクを作るHubotスクリプト
# Description:
# create pull requests in a Github repository
#
# Dependencies:
# "githubot": "0.4.x"
#
# Configuration:
# HUBOT_GITHUB_TOKEN
# HUBOT_GITHUB_API
#
@s-kiriki
s-kiriki / file0.txt
Created August 1, 2014 06:20
Githubでコミット時に、匿名アカウントになってしまう ref: http://qiita.com/kiriki-qwt/items/d27ae507a6c54fab2482
git config (--global) user.email="Githubに登録済みのアドレス"
@s-kiriki
s-kiriki / file0.txt
Created July 11, 2014 12:32
yumで「The GPG keys listed for the "CentOS / .....」というエラーが起こる ref: http://qiita.com/kiriki-qwt/items/2407dceeb10974009e46
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY.atomicorp.txt
file:///etc/pki/rpm-gpg/RPM-GPG-KEY.art.txt
@s-kiriki
s-kiriki / file0.txt
Created July 2, 2014 02:58
ec2をChef-Serverに新規クライアントとして登録する ref: http://qiita.com/kiriki-qwt/items/bf6ad65f2ba61174872a
knife bootstrap [登録したいホスト] --ssh-user root -i ~/.ssh/****.pem --node-name [登録したいクライアント名]