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 多分いらない
# 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"
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"
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'
// 指定したタスクが2秒以内に終わらなかったらTimeoutを発生させる。リトライは3回したい。
// 期待する動作: タスクA実行 -> 2秒経過Timeout -> すぐにタスクA実行 -> Timeout -> タスクA実行 -> Timeout -> Exception投げて終了
// 実際の動作: タスクA実行 -> 2秒経過Timeout -> 前の処理が終わるまで待ってるので8秒の待ち時間 -> タスクA実行 -> 以下略
// Create無いでObservable.Startとかして非同期処理走らせる?
// でもそうするとタスクAが二重で走ることになってしまい困る。スレッドAbortしたいけどできない。さてどうしよう
// 実際はタスクAが3時間とか10時間とかそんな感じなんで、前の処理が終わるまで待ってるのはつらい。。。
@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")