https://github.com/cerebris/jsonapi-resources
- open source活動好き
- サービス作っていた
https://github.com/cerebris/jsonapi-resources
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/*"] |
// 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; |
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"] } |