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

Initial Setup

First Mac Settings

  • Password
  • Touch ID
  • Dock
  • keyborad
    • 装飾キー
/**
* テキストを右端で折り返す
*/
@mixin text-break() {
text-wrap: normal;
word-wrap: break-word;
white-space: pre-wrap;
}
/**
{
"files.insertFinalNewline": true,
"[csv]": {
"files.insertFinalNewline": false
},
"[tsv]": {
"files.insertFinalNewline": false
}
}
@isuke
isuke / _card.styl
Last active July 1, 2023 12:01
stylus mixins
@require '../styles/_variables.styl'
@require './_shadow'
card(depth = 1)
shadow(depth)
padding: base-spacing
border-radius: base-border-radius
&:hover
shadow(depth + 1)
Task.select(
Arel::Nodes::NamedFunction.new(
'to_char',
[
Task.arel_table[:created_at],
Arel::Nodes.build_quoted('YYYY')
]
).as('year')
)
# => SELECT to_char("tasks"."created_at", 'YYYY') AS year FROM "tasks"
@isuke
isuke / .git_consistent
Last active February 9, 2023 11:20
git-consistent sample 03 emoji
emoji:
type: enum
required: true
description: 'commit type'
values:
-
name: ':heavy_plus_sign:'
description: 'Feature: when implementing function'
-
name: ':sunny:'
@isuke
isuke / .git_consistent
Last active February 9, 2023 11:20
git-consistent sample 04 issue link by branch name
type:
type: enum
required: true
description: 'commit type'
values:
-
name: feat
description: 'when implementing function'
-
name: fix
@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',
# ver: 0.9.6
# rubocop: v1.38.0
inherit_from:
- .rubocop_rails.yml
- .rubocop_rspec.yml
- .rubocop_todo.yml
AllCops:
TargetRubyVersion: 3.1
(1..50).map { ('a'..'z').to_a[rand(26)] }.join