Skip to content

Instantly share code, notes, and snippets.

View qrg's full-sized avatar
🏠
Working from home

Qurage qrg

🏠
Working from home
View GitHub Profile

4.1.1. データベースの作成

    $ groonga -n test_groonga.db
    > status
    [
> dump
table_create Site TABLE_HASH_KEY ShortText
column_create Site title COLUMN_SCALAR ShortText
table_create Terms TABLE_PAT_KEY|KEY_NORMALIZE ShortText --default_tokenizer TokenMecab
column_create Terms blog_title COLUMN_INDEX|WITH_POSITION Site title
load --table Site
[
["_key","title"],
["http://example.org/","This is test record 1!"],
["http://example.net/","test record 2."],
$ tailf doc/workspace/test_groonga/groonga.log
2012-09-13 14:53:19.278760|n| grn_init
2012-09-13 14:53:19.278977|n| vm.overcommit_memory kernel parameter should be 1: <0>: See INFO level log to re solve this
2012-09-13 14:54:33.678884|n| DDL:table_create Site
2012-09-13 14:55:55.933505|n| DDL:column_create Site title
2012-09-13 14:57:38.466483|n| DDL:table_create Terms
2012-09-13 14:57:55.074220|n| DDL:column_create Terms blog_title
2012-09-13 14:57:55.087659|n| DDL:set_source Terms.blog_title Site.title
2012-09-13 14:57:55.089125|n| flushing:0 npostings:58
2012-09-13 14:57:55.089559|n| flushed: 0 encsize:175
@qrg
qrg / gist:3897548
Created October 16, 2012 06:34
git log で reverse 使ったら見やすくなるかとおもった結果
$ git config --global pretty.medium-reverse "format:%C(red reverse)%d%Creset%C(white reverse) %h% Creset %C(green reverse) %an %Creset %C(cyan)%ar%Creset%n%C(white bold)%w(80)%s%Creset%n%n%w(80,2,2)%b"
$ alias gl='git log --pretty="medium-reverse" --graph --stat'
$ gl
module.exports = (grunt) ->
target = grunt.option('target') || 'dev'
grunt.initConfig
pkg: grunt.file.readJSON 'package.json'
dir:
src : 'src/'
# mixin ---------------------------------------------
mixins = require 'mixins'
module.exports = mixins.foo =
bindings:
'.js-mixin-binding-target': 'someModelAttr'
mixinMethod: ->
# do something
@qrg
qrg / file0.txt
Last active August 29, 2015 14:06
Mac OSX Mavericks で pyenv ref: http://qiita.com/Qurage/items/a93f3cebe54daf5b3e2f
~/.pyenv/shims:/usr/local/bin:/usr/bin:/bin
# [PackageDev] target_format: plist, ext: tmLanguage
---
name: JIRA Syntax
scopeName: text.jira-syntax-tmlanguage
fileTypes: []
uuid: d16334ef-4dd6-4b0d-bf17-2c06f48c1b9d
patterns:
- match: ^h[1-6][ ].*$
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.0</real>
<key>Green Component</key>
<real>0.0</real>
@qrg
qrg / github-comment-highlight-by-url-hash.css
Last active August 29, 2015 14:23
highlight github issue comment element by url hash
.comment:target {
background-color: rgb(255, 255, 175) !important;
}