Skip to content

Instantly share code, notes, and snippets.

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

oppara oppara

:octocat:
::
View GitHub Profile
@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 / ftp.sh
Created June 23, 2010 08:52
vimのパッチをゲット
#!/bin/sh
#-----------------------------------------------------------
# Config
#-----------------------------------------------------------
VERSION='7.2'
HOST_NAME="ftp.vim.org" # FTP Server
USER_NAME="anonymous" # FTP User
PASSWORD="hoge" # FTP Password
@oppara
oppara / build_vim.sh
Created September 26, 2010 15:39
build vim
#!/bin/sh
VER=7.3
PREFIX="${HOME}/local"
HOST="ftp://ftp.vim.org/"
URL="${HOST}pub/vim"
PATCHS_DIR="pub/vim/patches/${VER}"
PATCH_LIST='list.txt'
VER_FILE='patch_version'
@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:820602
Created February 10, 2011 14:35
switching php version
#!/bin/sh
#
# phpの切り替え
#
# pearのエイリアス設定(.zshrc or .bashrc)
# alias pear='pear -C /usr/local/php/etc/pear.conf $@'
#
PHP_LIB="/usr/local"
@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 / csstidy.diff
Created February 22, 2011 16:21
csstidy diff
diff -uBb csstidy-source-1.4.org/csstidy/main.cpp csstidy-source-1.4/csstidy/main.cpp
--- csstidy-source-1.4.org/csstidy/main.cpp 2007-07-10 10:20:54.000000000 +0900
+++ csstidy-source-1.4/csstidy/main.cpp 2011-02-23 01:04:12.000000000 +0900
@@ -73,6 +73,21 @@
predefined_templates["low"].push_back("</span>\n"); //after comment
predefined_templates["low"].push_back("\n"); // after last line @-rule
+ predefined_templates["opp"].push_back("<span class=\"at\">");
+ predefined_templates["opp"].push_back("</span> <span class=\"format\">{</span>\n");
+ predefined_templates["opp"].push_back("<span class=\"selector\">");
@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")