Skip to content

Instantly share code, notes, and snippets.

View oppara's full-sized avatar
:octocat:
::

oppara oppara

:octocat:
::
View GitHub Profile
@oppara
oppara / css.vim
Created November 10, 2009 12:03 — forked from hail2u/css.vim
css_color.vim
" Language: Colored CSS Color Preview
" Maintainer: Niklas Hofer <niklas+vim@lanpartei.de>
" URL: svn://lanpartei.de/vimrc/after/syntax/css.vim
" Last Change: 2008 Feb 12
" Licence: No Warranties. Do whatever you want with this. But please tell me!
" Version: 0.6
function! s:FGforBG(bg)
" takes a 6hex color code and returns a matching color that is visible
let pure = substitute(a:bg,'^#','','')
@oppara
oppara / .vimrc
Created March 5, 2010 11:47 — forked from c9s/.vimrc
vim colorscheme selector
fun! s:SelectColorS()
50vnew
setlocal bufhidden=wipe buftype=nofile nonu fdc=0
file ColorSchemeSelector
let files = split(glob(expand('~/.vim/colors/').'*'))
for file in files
let name = matchstr( file , '\w\+\(\.vim\)\@=' )
if strlen(name) > 0
put=name
endif
@oppara
oppara / app_email.php
Created November 8, 2010 22:40 — forked from nojimage/app_email.php
cake AppEmailComponent
<?php
/**
*
* AppEmailComponent (for Japanese)
*
* Copyright 2010, nojimage (http://php-tips.com/)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
@oppara
oppara / Rakefile
Created January 14, 2011 20:37 — forked from masuidrive/Rakefile
build Rakefile for Titanium mobile on OSX
#
# Titanium mobile Rakefile for iPhone build
#
DEV_PROVISIONING_UUID = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
DEV_SIGN = "Developer name"
DEV_APP_NAME = "DevApp"
DEV_APP_ID = 'com.example.dev'
TITANIUM_SDK_VERSION = '1.3.2'
@oppara
oppara / gist:837295
Created February 21, 2011 16:26 — forked from mrkn/gist:836608
macvim ruby conf
if has('gui_macvim') && has('kaoriya')
let s:ruby_libdir = system("ruby -rrbconfig -e 'print Config::CONFIG[\"libdir\"]'")
let s:ruby_libruby = s:ruby_libdir . '/libruby.dylib'
if filereadable(s:ruby_libruby)
let $RUBY_DLL = s:ruby_libruby
endif
endif
@oppara
oppara / jquery.smarthistory.js
Created February 27, 2011 08:27 — forked from hokaccha/jquery.smarthistory.js
jquery.smarthistory.js
/*
* jquery.smarthistory.js
*
* Copyright (c) 2010 Kazuhito Hokamura
* Licensed under the MIT License:
* http://www.opensource.org/licenses/mit-license.php
*
* @author Kazuhito Hokamura (http://webtech-walker.com/)
* @version 0.0.1
*
@oppara
oppara / dirstack.zsh
Created February 27, 2011 17:17 — forked from hchbaw/dirstack.zsh
zaw.zsh source for the elements of the directory stack.
# zaw.zsh source for the elements of the directory stack.
# https://github.com/nakamuray/zaw
# Thank you very much, nakamuray!
zmodload zsh/parameter
function zaw-src-dirstack() {
: ${(A)candidates::=$dirstack}
actions=("zaw-callback-execute" "zaw-callback-replace-buffer" "zaw-callback-append-to-buffer")
act_descriptions=("execute" "replace edit buffer" "append to edit buffer")
" こういうHTMLがあったときに
" <div id="hoge" class="fuga">
" ...
" </div>
"
" 実行するとこうなる
" <div id="hoge" class="fuga">
" ...
" </div><!-- /div#hoge.fuga -->
@oppara
oppara / solarized-for-teraterm.ini
Created October 3, 2011 01:42 — forked from sss/solarized-for-teraterm.ini
Solarized for TeraTerm
;
; Solarized [1] for TeraTerm [2]
;
; [1] <http://ethanschoonover.com/solarized>
; [2] <http://ttssh2.sourceforge.jp/>
;
; * Add this to your TERATERM.ini
; * ANSIColor setting is the same between Solarized Light and Dark,
; but you need to choose VTColor and VTReverseColor settings
; depending on your flavour (Light or Dark).
@oppara
oppara / post-merge
Created October 4, 2011 14:58 — forked from hirochachacha/post-merge
git-hook script for vimproc
#!/bin/sh --
set -e
echo ""
echo "START POST-MERGE HOOK"
echo ""
HOOK_DIR=`dirname $0` #git_hooks directory
PROC_DIR="$HOOK_DIR/../.." #vimproc directory