Skip to content

Instantly share code, notes, and snippets.

View nishio-dens's full-sized avatar

S.Nishio nishio-dens

View GitHub Profile
@nishio-dens
nishio-dens / plugin.md
Last active April 10, 2024 16:01
DTM PC入れ替えにあたりライセンス移行が必要なプラグイン一覧2024
Name Vendor Type Deactivate手順
Airmusic Baseline AIR Music Technology Synthesizer iLok
AIR Essential Synths Pack AIR Music Technology Synthesizer iLok
AIR Drum Machine Pack AIR Music Technology Synthesizer iLok
AIR Legends Pack AIR Music Technology Synthesizer iLok
AIR Power pack AIR Music Technology Synthesizer iLok
ABPL2 Ample Sound Synthesizer 不要
AGML2 Ample Sound Synthesizer 不要
ADSR London Synphonic Strings ARIA Sounds Strings 多分いらない
require "bundler/inline"
gemfile(true) do
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
gem "capybara"
gem "rspec"
gem "webdrivers"
@nishio-dens
nishio-dens / debug_test.rb
Created October 23, 2021 02:47
正常終了しないやつ
# frozen_string_literal: true
require "bundler/inline"
gemfile(true) do
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
gem "rails", "~> 6.1.4"
# frozen_string_literal: true
require "bundler/inline"
gemfile(true) do
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
gem "rails", "~> 6.1.4"
import glob
import pandas as pd
pd.options.display.max_columns = None
JA_DIR = "./All_20053_20193_ja"
EN_DIR = "./All_20053_20193_en"
# JA file has PricePerUnit column
JA_FILE_HEADERS = [
@nishio-dens
nishio-dens / file0.txt
Created March 11, 2018 10:07
本番環境のデータを別環境に差分コピーするRuby製ツールを作りました ref: https://qiita.com/nishio-dens/items/182d752da57e6b46c023
gem install gamma
@nishio-dens
nishio-dens / gist:56a7c252fa59e63c825e
Created March 19, 2016 10:36
readmeをなくすとうまく動く
{
"result": [
{
"id": 67519,
"is_incomplete": false,
"github_item_id": 4162554,
"name": "params_extractor",
"full_name": "kristianmandrup/params_extractor",
"owner_id": 125005,
"owner_login_name": "kristianmandrup",
@nishio-dens
nishio-dens / hero.ts
Created October 25, 2015 10:49
AppComponentからServiceにアクセスするにはforwardRefを使う
import {bootstrap, Component, View, FORM_DIRECTIVES, CORE_DIRECTIVES, Inject, forwardRef} from 'angular2/angular2';
class Hero {
id: number;
name: string;
birthday: Date;
}
@Component({
selector: 'hero-app'
@nishio-dens
nishio-dens / 58ab6409f0da60a326e3.rb
Last active August 29, 2015 14:25
Qiita:58ab6409f0da60a326e3 Squeelを使った実装
require 'active_record'
require 'active_support'
require 'squeel'
require 'minitest/autorun'
require 'logger'
require 'pry'
db_name = 'qiita_58ab6409'
ActiveRecord::Base.establish_connection adapter: 'mysql2', database: 'mysql', host: 'localhost'
@nishio-dens
nishio-dens / gist:1437642199087fa23290
Last active October 6, 2015 12:49
自分用railsなプロジェクトでgitのコミットメッセージを一部自動生成するスクリプト
#!/usr/bin/env ruby
#
# .git/hooks/prepare-commit-msg に配置する
# RAILS用コミットメッセージ追加
if ARGV[1] && ARGV[1].include?("message")
files = `git diff --cached --name-only`
change_files = files.split("\n")