Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

use std::{fs, thread, time::Duration};
use notify::{Config, RecursiveMode, Watcher};
use notify_debouncer_full::{new_debouncer_opt, FileIdMap};
use tempfile::tempdir;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let dir = tempdir()?;
let dir_path = dir.path().to_path_buf();
@y-yagi
y-yagi / codetriage.md
Last active September 18, 2020 04:53
Ginzarb 77

CodeTriage

概要

  • Get Started Contributing to Open Source Projects | CodeTriage
  • オープンソースプロジェクトにコントリビュートするためのサービス
  • コントリビュートしたいリポジトリを購読すると、そのリポジトリのissueやdocについての通知がくる
  • 作者はRichard Schneeman
    • Railsコミッター、Pumaコミッター、Heroku社員(のはず)
  • Railsのissueトリアージュ見てて大変そう、と思ってこのサービスを作ったらしい
@y-yagi
y-yagi / a.rb
Last active November 14, 2019 04:28
assigned but unused variable
a = 1
eval(:a.to_s)
=begin
$ ruby -vw a.rb
ruby 2.7.0preview1 (2019-05-31 trunk c55db6aa271df4a689dc8eb0039c929bf6ed43ff) [x86_64-linux]
a.rb:1: warning: assigned but unused variable - a
=end
@y-yagi
y-yagi / actions.md
Last active November 10, 2019 23:25

GitHub Actions

  • GitHub Actions
  • GitHub公式のサービス
  • 現行のサービスはv2と呼ばれているもの(まだbeta)
    • 去年話題になっていたのはv1で、実質別物
    • About GitHub Actions
    • 設定ファイルの書き方も全然違う
a = 1
eval(:a.to_s)
@y-yagi
y-yagi / tutorial.md
Created July 17, 2018 04:50 — forked from swalkinshaw/tutorial.md
Designing a GraphQL API

Tutorial: Designing a GraphQL API

This tutorial was created by Shopify for internal purposes. We've created a public version of it since we think it's useful to anyone creating a GraphQL API.

It's based on lessons learned from creating and evolving production schemas at Shopify over almost 3 years. The tutorial has evolved and will continue to change in the future so nothing is set in stone.

module Thor
module ClassMethods
def attr_reader(*)
super
end
def attr_writer(*)
super
end

y-yagi

お仕事

主にRubyを使ってプログラミングをしています。

最近の課題

  • RailsアプリのインフラにGCPを使うのはどうだろうと思い最近検討しています。既にやられた事ある方いらっしゃいましたらお話うかがいたいです。
  • 綺麗なroutingの書き方
@y-yagi
y-yagi / gist:8909044
Last active November 20, 2017 22:36
Gemfile
ruby '2.4.1'
source 'https://rubygems.org'
gem 'rails', '~> 5.1.4'
gem 'active_decorator'
gem 'array_form_helper'
gem 'coffee-rails'
gem 'dotenv-rails'
gem 'doorkeeper', '>= 4.2.0'