Skip to content

Instantly share code, notes, and snippets.

View threetreeslight's full-sized avatar

threetreeslight threetreeslight

View GitHub Profile

About scientist

scientist gemはgithub社が作ったテストツール(=新ロジックの実験ができるツール)です。

Let's pretend you're changing the way you handle permissions in a large web app. Tests can help guide your refactoring, but you really want to compare the current and refactored behaviors under load.

気持ちとしては

テストはリファクタリングした結果、動作に問題ないことを認識するときに非常に役立つが、本当に現行とリファクタ後の振る舞いが変っていないか比較することはできない。

let blacklists = ["https://trello.com/*"]
@threetreeslight
threetreeslight / connpass.js
Last active September 15, 2018 12:34
connpass setting : ignore media update notification
// ignore media update notification
//
// access https://connpass.com/settings/ and run it on console
//
var els = document.getElementsByClassName('GroupNotifySettingsList');
Array.from(els).forEach( (e) => {
console.log(e);
e.style.display = 'block';
e.getElementsByTagName('li')[0].getElementsByTagName('input')[0].checked = true;
  • date: 2019-01-00 19:30-22:00
  • location: どこか。なかったらReproとか
  • capacity: 20-50
    • 高専ネタLT枠 * 2
    • 技術LT枠 * 3
    • 初心者LT枠 * 3

Kosen Beer Bash

StartupやIT業界に関わる高専生同士集まって、技術や高専ネタを肴に酒を飲む会

@threetreeslight
threetreeslight / script.rb
Created August 9, 2019 06:29 — forked from edwardkenfox/script.rb
slack teamのactiveなアカウントの画像をDLしてくれる君
require "slack"
require 'open-uri'
YOUR_SLACK_APP_OAUTH_TOKEN = ENV['YOUR_SLACK_APP_OAUTH_TOKEN']
Slack.configure do |config|
config.token = YOUR_SLACK_APP_OAUTH_TOKEN
end
members = Slack.users_list["members"].select { |m| !m["deleted"] }