Skip to content

Instantly share code, notes, and snippets.

View yhirano55's full-sized avatar
🐕
Enjoy

yhirano55 yhirano55

🐕
Enjoy
View GitHub Profile
@voluntas
voluntas / shiguredo_model.rst
Last active December 26, 2023 21:46
時雨堂を支えるビジネスモデル

時雨堂を支えるビジネスモデル

更新

2023-12-08

作者

@voluntas

バージョン

2023.2

URL

https://voluntas.github.io/

タイポなどは Twitter の @voluntas までお願いします。

@ginjo
ginjo / omniauth-slack-integration.md
Last active February 20, 2024 21:50
OmniAuth::Slack OAuth2 Cycle Description and Integration Notes

OmniAuth::Slack OAuth2 Cycle Description and Integration Notes

This document was written for the ginjo-omniauth-slack ruby gem. It attempts to clarify the OAuth2 authorization cycle and how that cycle is implemented in your appliation with the ginjo-omniauth-slack gem.

OAuth2

The OAuth2 cycle is a three-way dance between the user's browser, the OAuth2 provider (Slack API), and the application server (your Slack App). It should work this way for any OAuth2 provider, including Slack.

  1. The user/browser makes a request to https://slack.com/oauth/authorize, passing the application's client-id, requested-scopes, and optionally state, team-id, and redirect-uri. Slack then runs the user through the authorization dialogs.
@kule
kule / mini_rspec.rb
Created September 11, 2018 09:37
Simplified example of how rspec works
require 'bundler/inline'
gemfile do
source 'https://rubygems.org'
gem 'colorize'
end
class MatcherInterface
def initialize(some_object)
@some_object = some_object
@thijskok
thijskok / config.yml
Last active April 4, 2023 05:47
CircleCI 2.0 Laravel build configuration with PHP 7.1, NodeJS, and MySQL support. Runs both PHPunit as well as Laravel Dusk. Proper GD configuration for image editing purposes. Several linters included (requires including them in composer / package.json).
version: 2
jobs:
build:
working_directory: ~/user/repo
environment:
BASH_ENV: ~/.bashrc
docker:
@sinsoku
sinsoku / catalog.md
Last active September 11, 2017 14:36
Rails 本に書きたい内容の目次(仮)
  1. まえがき
  2. Rails プロジェクトの始め方
  3. クラスの探索順序と重複定義
  4. DB 制約とバリデーション
  5. 安定したステージング環境
  6. モデルの多重コールバック問題
  7. ポリモーフィック関連の使い所と注意点
  8. Rails で大量のレコードを扱う方法
  9. RESTful なコントローラー
  10. current_user の汚染
begin
require "bundler/inline"
rescue LoadError => e
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
raise e
end
gemfile(true) do
source "https://rubygems.org"
@mizchi
mizchi / webpack.config.js
Last active December 6, 2019 21:20
minimum webpack with babel
/*
yarn init -y
yarn add webpack webpack-cli webpack-serve html-webpack-plugin -D
yarn add babel-loader@^8.0.0-beta @babel/core @babel/preset-env -D
echo '{ "presets": ["@babel/preset-env"] }' > .babelrc
*/
const HtmlPlugin = require("html-webpack-plugin");
module.exports = {
mode: process.env.NODE_ENV || "development",
@willnet
willnet / be_a_rails_contributer.md
Last active August 21, 2023 05:44
Railsコントリビュータへの道

これはなに

  • Railsにプルリクストを送るときに知っておくと便利なお作法集
  • Railsにプルリクエストを送りたいけど何から始めたらいいのかわからない人向けの指針

お作法についてはRuby on Rails に貢献する方法 | Rails ガイドを参考にしています。

前提知識

Railsのコードを読むには、最低限次の二つの知識があったほうがよいです

@azrsjp
azrsjp / dtm.markdown
Last active April 3, 2024 14:11
究極初心者がとりあえず聴けるレベルの曲を作れるようになるまで

究極初心者がとりあえず聴けるレベルの曲を作れるようになるまで

@azrsjp です。これは,DTM Advent Calendar 2015の19日目の記事です。

はじめに

本記事はDTM究極初心者が「こういうことをしたらとりあえず前よりは聞ける曲が完成させられるレベルになれた」という思い出話を綴ります。あくまで思い出話です。思い出話。今現在DTMに興味があるけど,何をしたらいいかわからない,__センスがないのでは…__と悩んでる方に,センスがなくても,まぁ形にはなるということを示し,希望を持って頂くために書きます。

この記事を読んで幸せになる人物像は以下のような方(昔の僕)

  • DTMでオリジナル曲を作りたい
  • DTMによる曲がどういう風にできているか大体の想像はつく(DAWというソフトがあり,ピアノロールで打ち込んで曲を表現する等)