Skip to content

Instantly share code, notes, and snippets.

@deepblue-will
deepblue-will / ng-add-postcss-plugin.js
Last active January 25, 2019 08:03
Angular CLIでPostCSSのプラグインを差し込むためのスクリプト
const fs = require('fs');
const commonCliConfig = 'node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/styles.js';
// 使いたいPostCSSのプラグインを文字列で列挙する
const plugins = `
require('rucksack-css')`;
fs.readFile(commonCliConfig, (err, data) => {
if (err) throw err;
const configText = data.toString();
tap "argon/mas"
tap "caskroom/cask"
tap "caskroom/drivers"
tap "caskroom/eid"
tap "caskroom/fonts"
tap "caskroom/versions"
tap "eugenmayer/dockersync"
tap "homebrew/bundle"
tap "homebrew/core"
tap "homebrew/dupes"
@deepblue-will
deepblue-will / aliases.fish
Last active October 26, 2018 14:24
fish config
# -n 行数表示, -I バイナリファイル無視, svn関係のファイルを無視
alias grep "grep --color -n -I --exclude='*.svn-*' --exclude='entries' --exclude='*/cache/*'"
# tree
alias tree "tree -NC" # N: 文字化け対策, C:色をつける
# development
alias gs "grunt server"
alias rs "bundle exec rails server"
@deepblue-will
deepblue-will / my_zsh_theme.zsh-theme
Last active August 29, 2015 14:25
誰かのgistで公開されてたんだけど、特殊文字のところがおかしかったので直しました。
# Original theme https://github.com/agnoster zsh theme
ZSH_THEME_GIT_PROMPT_DIRTY='±'
function _git_prompt_info() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || ref="➦ $(git show-ref --head -s --abbrev |head -n1 2> /dev/null)"
echo "${ref/refs\/heads\// }$(parse_git_dirty)"
}
function _git_info() {
@deepblue-will
deepblue-will / .zshrc
Last active August 29, 2015 14:14
oh my zsh 用の.zshrc
# Path to your oh-my-zsh installation.
export ZSH=~/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="my_zsh_theme"
# Uncomment the following line to use case-sensitive completion.

RubyKaigi2014

  • ノベルティがいいかんじ!普通に使ってもオシャレ!
  • お弁当でた!1日目のPartyも豪華!(参加してないけど。。)
  • 昼休みに他の人と交流できた。弁当を食べながら。
  • スーツで来てたのは数人。。皆さん今どきの会社にお勤めのよう
  • 皆ノートPC持参。紙でメモとってたの私ぐらい。
  • 船堀とおい。。
  • 英語のセッション多くて、通訳もないもんだから全体の1割ぐらいしか理解できなかった。
  • 参加者は英語もできる人多いみたい。プログラムも英語もできるなんてすごい。。
  • Rubyのコアな話が多くて、Ruby開発者のためのTipsみたいな発表がなくて残念。。
@deepblue-will
deepblue-will / Gruntfile.coffee
Last active August 29, 2015 14:04
Gruntfile.coffee Sample
module.exports = (grunt) ->
'use strict'
grunt.initConfig
pkg: grunt.file.readJSON 'package.json'
connect:
app:
options:
port: 8080
{
"in_process_packages":
[
],
"installed_dependencies":
[
"0_package_control_loader",
"bz2"
],
"installed_packages":
@deepblue-will
deepblue-will / sublime_settings.json
Last active August 29, 2015 14:03
sublime text settings
{
"bold_folder_labels": true,
"close_windows_when_empty": true,
"color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme",
"detect_slow_plugins": false,
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"flatland_square_tabs": false,
"font_face": "Ricty",
"font_size": 16.0,
@deepblue-will
deepblue-will / devsumi2014.md
Last active August 29, 2015 14:00
Developers Summit2014 所感

#1日目

  • HTML5系のセッションばかり聴講
  • HTML5jのひとばっか
  • エンタープライズ向けということだったけど、あんま実感わかなかった
  • よしおりさんは発表うまいなぁ

##JavaからJavaScriptへ!HTML5適用から見えた次世代業務アプリケーション