Skip to content

Instantly share code, notes, and snippets.

View kenchan's full-sized avatar
💭
😄

Kenichi Takahashi kenchan

💭
😄
View GitHub Profile
@rummelonp
rummelonp / faraday.md
Last active May 20, 2022 12:23
Ruby の HTTP クライアントライブラリ Faraday が便利そう

Ruby の HTTP クライアントライブラリ Faraday が便利そう

Ruby の HTTP クライアントライブラリ Faraday が便利そう

API ラッパの開発には [RestClient gem][rest_client_gem] だとか
OAuth の必要なものは [Net/HTTP][net_http] + [OAuth gem][oauth_gem] を使ってた

[Twitter gem][twitter_gem] や [Instagram gem][instagram_gem] など API ライブラリのソースを読んでみると
[Faraday gem][faraday_gem] というものがよく使われてた

@taichi
taichi / code_reading.md
Last active April 10, 2024 13:04
太一のコードの読み方メモ

太一のコードの読み方メモ

全体として太一が感覚的に実践している事を論理的に説明しようと試みている為、
説明の粒度が適切でなかったり一貫性が無いように見える部分があるかもしれない。
普段やっているけども書ききれていない事も多分きっとある。

コードを読むとは何か

  • コードを嗜む
  • コードを学ぶ
  • 武器を手に入れる
@paulmillr
paulmillr / active.md
Last active April 23, 2024 17:32
Most active GitHub users (by contributions). http://twitter.com/paulmillr

Most active GitHub users (git.io/top)

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Wed, 21 Sep 2022 till Thu, 21 Sep 2023.

Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:

githubUsers
 .filter(user => user.followers > 1000)
@matope
matope / NoSQLデータモデリング技法.markdown
Created April 16, 2012 03:35
NoSQLデータモデリング技法

#NoSQLデータモデリング技法

原文:NoSQL Data Modeling Techniques « Highly Scalable Blog

I translated this article for study. contact matope[dot]ono[gmail] if any problem.

NoSQLデータベースはスケーラビリティ、パフォーマンス、一貫性といった様々な非機能要件から比較される。NoSQLのこの側面は実践と理論の両面からよく研究されている。ある種の非機能特性はNoSQLを利用する主な動機であり、NoSQLシステムによく適用されるCAP定理がそうであるように分散システムの基本的原則だからだ。一方で、NoSQLデータモデリングはあまり研究されておらず、リレーショナルデータベースに見られるようなシステマティックな理論に欠けている。本稿で、私はデータモデリングの視点からのNoSQLシステムファミリーの短い比較といくつかの共通するモデリングテクニックの要約を解説したい。

本稿をレビューして文法を清書してくれたDaniel Kirkdorfferに感謝したいと思う

@sbleon
sbleon / acceptance_stats.rake
Created April 11, 2012 17:52
Add Turnip acceptance test LOC stats to "rake stats"
# lib/tasks/acceptance_stats.rake
#
# Add acceptance tests to "rake stats" output
if Rake::Task.task_defined? 'spec:statsetup'
Rake::Task['spec:statsetup'].enhance do
require 'rails/code_statistics'
::STATS_DIRECTORIES << %w(Acceptance\ tests spec/acceptance) if File.exist?('spec/acceptance')
::CodeStatistics::TEST_TYPES << 'Acceptance tests' if File.exist?('spec/acceptance')
end
end
@hitode909
hitode909 / SolarizedLight.css
Created December 7, 2011 03:30
Solarized like LimeChat theme
html {
font-family: "Monaco";
background-color: #fdf6e3;
color: #657b83;
word-wrap: break-word;
margin: 0;
padding: 3px 4px 10px 4px;
}
body {
*learn-vimscript.txt* Vimスクリプト基礎文法
Author: |thinca|
------------------------------------------------------------------------------
基礎 |learn-vimscript-basic|
数値 |learn-vimscript-number|
文字列 |learn-vimscript-string|
リスト |learn-vimscript-list|
辞書 |learn-vimscript-dictionary|
制御コマンド |learn-vimscript-command|
repo for a more modern version of qt (4.7)
http://atrpms.net/documentation/install/
http://packages.atrpms.net/dist/el5/qt4/
cat /etc/yum.repos.d/atrpms.repo
[atrpms]
name=ATrpms manual
baseurl=http://dl.atrpms.net/el5-$basearch/atrpms/testing/
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
require 'socket'
class RubyIrcClient
def initialize(server = 'irc.freenode.net', port = 6667)
@server = server
@port = port
@socket= TCPSocket.new(@server, @port)
end
def login
nick('ukstudio_test').
@moro
moro / gist:746211
Created December 18, 2010 05:52
neocomplepop snippet for rspec uesr.
snippet describe
abbr describe DESC do before do end end
describe '${1:DESC}' do
before do
${2}
end
end
snippet RS::M
abbr RSpec::Matcher.define