Skip to content

Instantly share code, notes, and snippets.

View isuke's full-sized avatar
🎵
Listening to music, and coding

FUJIYAMA Isuke isuke

🎵
Listening to music, and coding
View GitHub Profile
@isuke
isuke / .git_consistent
Created February 9, 2018 17:09
git-consistent sample 01 default
type:
type: enum
required: true
description: 'commit type'
values:
-
name: feat
description: 'when implementing function'
-
name: fix

Initial Setup

First Mac Settings

  • Password
  • Touch ID
  • Dock
  • keyborad
    • 装飾キー
# spec/support/session_helper.rb
module SessionHelper
def login(user, with_capybara: false)
if with_capybara
page.driver.remove_cookie('user_credentials')
page.driver.set_cookie('user_credentials', "#{user.persistence_token}::#{user.id}")
else
cookies['user_credentials'] = "#{user.persistence_token}::#{user.id}"
end
{
"disallowBlockExpansion": null,
"disallowClassAttributeWithStaticValue": true,
"disallowClassLiterals": null,
"disallowClassLiteralsBeforeAttributes": null,
"disallowClassLiteralsBeforeIdLiterals": true,
"disallowDuplicateAttributes": true,
"disallowHtmlText": true,
"disallowIdAttributeWithStaticValue": true,
"disallowIdLiterals": null,
@isuke
isuke / README.md
Last active December 14, 2017 06:46
create js dependancy graph

Usage

準備

$ brew install graphviz

json作成

<template lang="pug">
.vertical-timeline
.date(
v-for="(pair, index) in AdjacentPairs" ,
v-bind:style="{ 'grid-row': index+1 + ' / span 1', 'grid-column': '1 / span 1'}"
)
slot(name="date", :from="pair[0]", :to="pair[1]")
.item(
v-for="(item, index) in items"
v-bind:style="{ 'grid-row': gridRow(item)}"
@isuke
isuke / webpack.config.admin.js
Last active December 7, 2022 11:29
webpack.config sampla
const path = require('path');
const webpack = require('webpack');
const merge = require('webpack-merge');
const AssetsPlugin = require('assets-webpack-plugin');
const baseConfig = require('./webpack.config.base.js');
var config = merge(baseConfig, {
entry: {
'build-admin': './app/frontend/javascripts/application-admin.js',
# require: $@store
# require: @path
# require: @resourceId
# option: @goToPath
export default
computed:
postData: ->
formObj = new FormData()
_.forEach @$store.state.form, (value, key) =>
@_postData(formObj, _.snakeCase(key), value)
<template lang="pug">
.smart-form
span.hint(v-text="hint" v-if="hint")
input.input(:type="type" :name="attr" :placeholder="placeholder" v-model="value" v-bind:class="{ '-error': error }" v-if="isInputTag")
textarea.input(:name="attr" :placeholder="placeholder" v-model="value" v-bind:class="{ '-error': error }" :rows="rows" v-if="isTextareaTag")
label.label(:for="attr" v-text="i18nName + (required ? requiredText : '')")
span.errors(v-text="errors")
</template>
<script lang="coffee">