This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
source "https://rubygems.org" | |
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } | |
gem 'mackerel-client' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import re | |
from xkeysnail.transform import * | |
# [Global modemap] Change modifier keys as in xmodmap | |
define_modmap({ | |
Key.CAPSLOCK: Key.LEFT_CTRL | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[mysqld] | |
character-set-server=utf8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pg94: | |
restart: always | |
image: postgres:9.4.9 | |
ports: | |
- "5432:5432" | |
environment: | |
- POSTGRES_USER=xxxxx | |
volumes: | |
- /Users/xxxxx/docker-dev/pg94/data:/var/lib/postgresql/data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>test</title> | |
</head> | |
<style> | |
input[type=checkbox] { | |
display: none; | |
} | |
label { | |
display: inline-block; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Hoge | |
def mmtest | |
hoge #method_missing が呼ばれる => :hoge | |
hoge = 10 #mmtestメソッド内のローカル変数が定義される | |
self.hoge=10 #method_missing が呼ばれる => :hoge= | |
end | |
def method_missing(method_name, *args) | |
p method_name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<stdlib.h> | |
#define MAX_N 10000000 | |
void set_bit(char *sort_bit, int value, int bit); | |
int get_bit(char *sort_bit, int value); | |
int main(void) { | |
FILE *fp; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax on | |
set nocompatible | |
filetype off | |
"""" neobundle.vimの設定 | |
if has('vim_starting') | |
set runtimepath+=~/.vim/bundle/neobundle.vim/ | |
endif | |
call neobundle#rc(expand('~/.vim/bundle')) | |
NeoBundleFetch 'Shougo/neobundle.vim' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task :before_db do | |
require './db_initialize' | |
end | |
namespace :db do |ns| | |
ns.tasks.each do |db_task| | |
db_task.enhance([:before_db]) | |
end | |
end |
NewerOlder