This file contains 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
-- ノートブックの指定 | |
property nb : "Ideas" | |
property _newNote : missing value | |
on alfred_script(q) | |
set _inputText to q | |
set AppleScript's text item delimiters to "-open" | |
set _text to text items of _inputText | |
This file contains 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
" release autogroup in MyAutoCmd | |
augroup MyAutoCmd | |
autocmd! | |
augroup END | |
"------------------------ | |
"検索関係 | |
"------------------------ | |
set ignorecase " 大文字小文字を区別しない | |
set smartcase |
This file contains 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
# unite {{{ | |
[[plugins]] | |
repository = 'Shougo/unite.vim' | |
[[plugins]] | |
repository = 'Shougo/unite-outline' | |
[[plugins]] | |
repository = 'Shougo/neomru.vim' |
This file contains 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
# like ide {{{ | |
[[plugins]] | |
repository = 'Shougo/vimfiler' | |
explorer = 1 | |
mappings = '<Plug>' | |
[[plugins]] | |
repository = 'thinca/vim-quickrun' | |
mappings = '<Plug>' |
This file contains 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
" set showtabline=2 | |
" ツールバーを削除 | |
set guioptions-=T | |
"半角文字の設定 | |
set visualbell t_vb= | |
" ------------------------------------------------------ | |
" colorscheme |
This file contains 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
(define (sum term a next b) | |
(if (> a b) | |
0 | |
(+ (term a) | |
(sum term (next a) next b)))) | |
; (define (pi-sum a b) | |
; (define (pi-term x) | |
; (/ 1.0 (* x (+ x 2)))) | |
; (define (pi-next x) | |
; (+ x 4)) |
This file contains 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
require "find" | |
require "fileutils" | |
def copy(source_path, target_path) | |
Find.find(source_path) do |source| | |
next if File.directory? source | |
#パスにopencv2が含まれていなければ除外 | |
next unless File.dirname(source).include?("opencv2") |
This file contains 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
#!/usr/bin/env python | |
#!coding: utf-8 | |
import sys, os, re, shutil | |
from optparse import OptionParser | |
parser = OptionParser(usage= | |
'''%prog [options] <target-dir> | |
Example: |
This file contains 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
#import "MyWebViewController.h" | |
#import "AFNetworking.h" | |
#if false // facebook | |
#define LOGIN_URL @"http://sample/login.php?command=facebook&app=true" | |
#define REDIRECT_URL @"command=facebook_cb" | |
#else |
This file contains 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 | |
require "fileutils" | |
require 'find' | |
count = 0 | |
Find.find('./check_xml'){|f| | |
if File.basename(f) == ".DS_Store" | |
next | |
end |
NewerOlder