Skip to content

Instantly share code, notes, and snippets.

Avatar
🌴
On vacation

Hikaru Tooyama vexus2

🌴
On vacation
View GitHub Profile
@vexus2
vexus2 / import_and_export_firebase_auth.txt
Created Feb 18, 2019
2019-02-18_Firestoreリージョン移行に伴うFirebaseプロジェクト移行手順
View import_and_export_firebase_auth.txt
$ firebase auth:export firebase-auth-users.json --format json --project 旧Firebaseプロジェクト
$ firebase auth:import firebase-auth-users.json --project 新Firebaseプロジェクト
@vexus2
vexus2 / bot2bot.coffee
Created Apr 20, 2015
Slack内で外部Bot/API経由の特定の発言を受け取って別のアクションを実行するスクリプト
View bot2bot.coffee
# Description:
# 外部Bot/API経由の特定の発言を受け取って別のアクションを実行する
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
@vexus2
vexus2 / gist:7c36c33c206f96dd4bfd
Last active Aug 29, 2015
リモートワーク_マイクを選ぶときの観点
View gist:7c36c33c206f96dd4bfd
@vexus2
vexus2 / private.xml
Created Aug 8, 2014
Ctrl+P→手前のUnreadチャンネル、Ctrl+N→次のUnreadチャンネルに移動
View private.xml
<?xml version="1.0"?>
<root>
<appdef>
<appname>SLACK</appname>
<equal>com.tinyspeck.slackmacgap</equal>
</appdef>
<item>
<name>For Slack CTRL+N=move previous unread hannel, CTRL+P=move unread next channel</name>
<identifier>private.app_slack_move_channel_with_altn_altp</identifier>
<only>SLACK</only>
@vexus2
vexus2 / joke.coffee
Created Jun 4, 2014
"ぬるぽ"に反応してガッしてくれるHubotスクリプト Slack内での表示に最適化済
View joke.coffee
# Description:
# Joke commands.
#
# Commands:
# ぬるぽ - You reply with, "ガッ" When you post a "ぬるぽ" word.
#
# Notes:
# ネタ/ジョーク系のbot全般
module.exports = (robot) ->
@vexus2
vexus2 / gist:3f2d7eb8fd9b59b383d5
Created May 9, 2014
Update local ruby to 2.1.2
View gist:3f2d7eb8fd9b59b383d5
$ sudo brew update
$ sudo brew upgrade ruby-build
$ rbenv install 2.1.2
$ rbenv global 2.1.2
$ rbenv rehash
$ ruby --version
View .pryrc
begin
require "awesome_print"
AwesomePrint.pry!
rescue LoadError => err
puts "no awesome_print :("
end
# hirbの設定
begin
require 'hirb'
@vexus2
vexus2 / send_pr_count_to_chatwork.rb
Last active Aug 29, 2015
特定リポジトリにたまっているPull Request数をChatWorkに通知
View send_pr_count_to_chatwork.rb
#!/usr/bin/env ruby
#-*- encoding: utf-8 -*-
require 'json'
require 'pit'
require 'time'
require 'net/https'
require 'octokit'
## get config from pit
@vexus2
vexus2 / contributor.java
Created Nov 21, 2013
completion contributor
View contributor.java
@Override
public void fillCompletionVariants(CompletionParameters parameters, CompletionResultSet result) {
String arr$[] = new String[] {"foo", "bar"};
int len$ = arr$.length;
for (int i$ = 0; i$ < len$; i$++) {
String s = arr$[i$];
result.addElement(createDocTagLookup(false, s));
}
@vexus2
vexus2 / gist:5931909
Created Jul 5, 2013
Show Dialog and catch handlers
View gist:5931909
public void syncWithSonar(Project project) {
Collection<Rule> sonarRules = this.sonarRulesByRuleKey.values();
int oldSize = sonarRules.size();
clearState();
Collection<SonarSettingsBean> allSonarSettingsBeans = SonarSettingsComponent.getSonarSettingsBeans(project);
SonarService sonarService = ServiceManager.getService(SonarService.class);
if (null != allSonarSettingsBeans) {
for (Rule rule : sonarService.getAllRules(allSonarSettingsBeans)) {
this.sonarRulesByRuleKey.put(rule.getKey(), rule);