Skip to content

Instantly share code, notes, and snippets.

@voluntas
voluntas / erlang.rst
Last active February 2, 2023 12:00
Erlang/OTP (仮)

Erlang/OTP (仮)

日時:2016-09-21
作:@voluntas
バージョン:1.0.1
url:https://voluntas.github.io/

2016 年 6 月 24 日に行われる BPStudy の発表資料です

@btroncone
btroncone / ngrxintro.md
Last active March 5, 2025 20:40
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series

Comprehensive Introduction to @ngrx/store

By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on egghead.io!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents

@adham90
adham90 / spacemacs-keybindings
Last active September 12, 2024 20:41
spacemacs keybindings that i need to learn
SPC s c remove highlight
**** Files manipulations key bindings
Files manipulation commands (start with ~f~):
| Key Binding | Description |
|-------------+----------------------------------------------------------------|
| ~SPC f c~ | copy current file to a different location |
| ~SPC f C d~ | convert file from unix to dos encoding |
| ~SPC f C u~ | convert file from dos to unix encoding |
@nashirox
nashirox / rails-validates.rb
Last active January 29, 2025 11:07
Rubyのバリデーション用正規表現集
#
# 数字
#
# 全て数値(全角)
/\A[0-9]+\z/
# 全て数値(半角)
/\A[0-9]+\z/
@joker1007
joker1007 / ginzarb_21.md
Last active April 14, 2021 06:41
Ginza.rb 21回の発表資料。rails_adminのつらみとオススメgem達。

rails_adminのつらみとオススメGemについて

rails_adminのつらみ

カスタマイズできるようで出来ない

レコード件数が一定以上になると使えない機能

  • ダッシュボード
  • 何も考えずに各モデルをカウントするのでレコード件数増えるとえらいことになる。
@taea
taea / how-to-esa.md
Last active March 4, 2022 00:42
esaのつかいかた(\( ⁰⊖⁰)/)

esa.io のつかいかた

Save as WIP Ship it! ボタンについて

esa-man.jpg

Save as WIP ボタン

  • 投稿画面、編集画面に Save as WIP というボタンがあります。これを押すと、「書き途中だけど保存して公開する」という意味になります。
  • WIP = Work in Progress (作業中)
  • Save as WIP で保存された記事は、一覧画面などの投稿タイトルに WIP と付いてグレーアウトした状態になります。
@jashkenas
jashkenas / semantic-pedantic.md
Last active November 22, 2024 04:13
Why Semantic Versioning Isn't

Spurred by recent events (https://news.ycombinator.com/item?id=8244700), this is a quick set of jotted-down thoughts about the state of "Semantic" Versioning, and why we should be fighting the good fight against it.

For a long time in the history of software, version numbers indicated the relative progress and change in a given piece of software. A major release (1.x.x) was major, a minor release (x.1.x) was minor, and a patch release was just a small patch. You could evaluate a given piece of software by name + version, and get a feeling for how far away version 2.0.1 was from version 2.8.0.

But Semantic Versioning (henceforth, SemVer), as specified at http://semver.org/, changes this to prioritize a mechanistic understanding of a codebase over a human one. Any "breaking" change to the software must be accompanied with a new major version number. It's alright for robots, but bad for us.

SemVer tries to compress a huge amount of information — the nature of the change, the percentage of users that wil

@zk-phi
zk-phi / setup_description_ja.org
Last active October 16, 2022 13:54
[Emacs] setup.el で安全・爆速な init.el を書く

[Emacs] setup.el で安全・爆速な init.el を書く

Emacs プラグイン setup.el は、安全・爆速な設定ファイルを書くためのマク ロ集です。

ここでいう「安全」とは、「セットアップの途中でエラーが出て、ほとんどデ フォルトの Emacs が立ち上がる」ような悲劇が起きないことをいいます。

setup.el を使って書かれた設定ファイルがどれくらい爆速かというと、 5000 行以上の設定が入った Emacs が 0.29 秒でセットアップできるくらい爆速です。

@tkawa
tkawa / application_helper.rb
Created March 26, 2014 11:12
Railsのビューヘルパー内でHamlを使う
module ApplicationHelper
def render_thumbsup_button(options)
options[:url] ||= thumbsup_path
options[:method] ||= :put
options[:count] ||= 0
# ローカル変数を渡したいときのみ locals が必要
render inline: <<-HAML.strip_heredoc, type: :haml, locals: options
.thumbsup
= form_tag url, method: method do
%button.btn.btn-xs