Skip to content

Instantly share code, notes, and snippets.

Ruby ToolboxからMongoDB関連のgemを見る

The Ruby ToolboxのMongoDB Clientsから動きが活発そうなものを調べてみる。

MongoDB

  • ドキュメント指向データベースの一つ
  • RDBライクな検索クエリ
  • スキーマレス
    • 任意のフィールドを好きなときに追加できる

Uniteとは

この言い回しで分かる人は分かると思いますが、EmacsでいうところのAnything.elやheimです。 きっちり説明すると、Vimからファイル・バッファ・レジスタ等々を検索するための統合インターフェイスとして作成されました。

Shougo / unite.vim

利点としては、以下の通り。

  • 大量のファイルをさばくのに便利
  • ファイル検索して、そこから絞り込みもできる
@rbtnn
rbtnn / gist:6575954
Created September 16, 2013 02:01
vimrc読書会 No.1~No.63のプラグイン統計
18: Shougo/unite.vim
15: mattn/webapi-vim
15: Shougo/vimproc
14: Shougo/neocomplcache
14: Shougo/neobundle.vim
13: tpope/vim-surround
13: thinca/vim-ref
13: Shougo/vimfiler
12: tyru/open-browser.vim
12: tpope/vim-fugitive
@d3m3vilurr
d3m3vilurr / feedly_api.md
Last active March 22, 2025 21:12
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

@philipaconrad
philipaconrad / morse.py
Created June 23, 2013 18:28
Generates ITU-Standard morse code (in bit format) from ASCII text.
#morse.py -- Generates ITU-Standard morse code (in bit format) from ASCII text.
#MIT License -- Copyright (c) Philip Conrad 2013, all rights reserved.
import time #used for testing later.
morseITUStandard = {
"a" : [1, 0, 1,1,1], #dot dash
"b" : [1,1,1, 0, 1, 0, 1, 0, 1], #dash dot dot dot
"c" : [1,1,1, 0, 1, 0, 1,1,1, 0, 1], #dash dot dash dot
<!DOCTYPE HTML>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>スタイルシートそのものを変更する</title>
<link rel="stylesheet" type="text/css" href="style-a.css" id="style-a" disabled="true">
<link rel="stylesheet" type="text/css" href="style-b.css" id="style-b" disabled="true">
<style id="style-c">
#foo {
package main
import (
"bufio"
"encoding/json"
"log"
"net/http"
)
func main() {
@PDXIII
PDXIII / Nice Button Effect
Last active April 13, 2023 19:33
Less mixin for a nice button effect. see it in action http://pdxiii.github.io/JimmyStash
// see it in action http://pdxiii.github.io/JimmyStash
.buttonFX (@color) {
color: darken(@color, 30%);
border-top: solid 2px lighten(@color, 10%);
border-left: solid 2px lighten(@color, 10%);
border-right: solid 2px darken(@color, 10%);
border-bottom: solid 2px darken(@color, 10%);
background-color: @color;
box-shadow: inset 10px 10px 10px lighten(@color, 15%),
#!/usr/bin/env ruby
require 'rubygems'
require "active_support/inflector"
require "optparse"
class Rsub
@BenConstable
BenConstable / db-size.sql
Last active December 16, 2015 12:18
Little MySQL query to find the size of database.
# Adapted from http://stackoverflow.com/questions/1733507/how-to-get-size-of-mysql-database
SELECT Round(Sum(data_length + index_length) / 1024 / 1024, 1) "DB Size in MB"
FROM information_schema.tables
WHERE table_schema = "database_name" # Replace this with the name of the database you want to inspect
GROUP BY table_schema;