Skip to content

Instantly share code, notes, and snippets.

View chucker34's full-sized avatar
🎣
I'm fishing.

Takahiro Kawakami chucker34

🎣
I'm fishing.
View GitHub Profile

目次

  1. html, cssコーディング
  2. 静的コンポーネント作成
  3. store設計 (JSON)
  4. storeを参考にactionTypesを作成
  5. actionTypesからactionCreatorsを実装
  6. XHRはmodelに
  7. actionCreatorsreducerを作成
  8. mountComponentとmountComponentWithRedux関数
@nashirox
nashirox / rails-validates.rb
Last active April 7, 2024 08:07
Rubyのバリデーション用正規表現集
#
# 数字
#
# 全て数値(全角)
/\A[0-9]+\z/
# 全て数値(半角)
/\A[0-9]+\z/
@voluntas
voluntas / webrtc.rst
Last active April 30, 2024 14:20
WebRTC コトハジメ

Font Face

A mixin for writing @font-face rules in SASS.

Usage

Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.

@include font-face(Samplino, fonts/Samplino);
@bsodmike
bsodmike / _free_shipping_and_discount.html.erb
Last active June 5, 2016 07:11
Custom Spree Promotion (Spree::PromotionAction) for Discount + Free Shipping
<!--
# app/views/spree/admin/promotions/actions/_free_shipping_and_discount.html.erb
Empty File. Spree automatically renders the name and description you provide,
but you could expand here if you'd like.
-->
@taea
taea / rm_pid.md
Last active January 12, 2023 14:22
postgres をちゃんと終了しないと.pidファイルが残っちゃって、Rails が起動しないもんだい

Rails 起動しようとするとこんなエラーでる

PG::ConnectionBad at /
could not connect to server: Connection refused
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
@shin1x1
shin1x1 / gist:7006593
Last active August 30, 2016 00:29
2013/10/17 Twilio API 勉強会でのハンズオン内容です。

Composer インストール

$ mkdir yourdir
$ cd yourdir
$ curl -s http://getcomposer.org/installer | php

$ ls
composer.phar
@SabretWoW
SabretWoW / rspec_model_testing_template.rb
Last active March 7, 2024 03:56
Rails Rspec model testing skeleton & cheat sheet using rspec-rails, shoulda-matchers, shoulda-callbacks, and factory_girl_rails. Pretty much a brain dump of examples of what you can (should?) test in a model. Pick & choose what you like, and please let me know if there are any errors or new/changed features out there. Reddit comment thread: http…
# This is a skeleton for testing models including examples of validations, callbacks,
# scopes, instance & class methods, associations, and more.
# Pick and choose what you want, as all models don't NEED to be tested at this depth.
#
# I'm always eager to hear new tips & suggestions as I'm still new to testing,
# so if you have any, please share!
#
# @kyletcarlson
#
# This skeleton also assumes you're using the following gems:
@d3m3vilurr
d3m3vilurr / feedly_api.md
Last active March 30, 2024 08:21
Unofficial Feedly API Document

IDs

  • user_id - user/:uid
  • feed_id - feed/:feed_uri
  • category_id - :user_id/category/:category (special category: global.all, global.uncategorized)
  • tag_id - :user_id/tag/:tag (special tag: global.saved)

APIs

http://cloud.feedly.com/:version/:api

@kenjiskywalker
kenjiskywalker / nginx_ssl_server_name.md
Last active February 18, 2024 21:11
nginxのserver_nameとSSLの設定についてのメモ