Skip to content

Instantly share code, notes, and snippets.

View heavenshell's full-sized avatar
💭
Use Vim

Shinya Ohyanagi heavenshell

💭
Use Vim
  • Hyogo, Japan
  • 13:19 (UTC +09:00)
View GitHub Profile
Running Transaction
Installing : riak-1.3.1-1.el6.x86_64 1/1
chcon: can't apply partial context to unlabeled file `/usr/lib64/riak/lib/bitcask-1.6.1/priv/bitcask.so'
chcon: can't apply partial context to unlabeled file `/usr/lib64/riak/lib/syslog-1.0.1/priv/syslog_drv.so'
chcon: can't apply partial context to unlabeled file `/usr/lib64/riak/lib/runtime_tools-1.8.8/priv/lib/dyntrace.so'
chcon: can't apply partial context to unlabeled file `/usr/lib64/riak/lib/runtime_tools-1.8.8/priv/lib/trace_file_drv.so'
chcon: can't apply partial context to unlabeled file `/usr/lib64/riak/lib/runtime_tools-1.8.8/priv/lib/trace_ip_drv.so'
chcon: can't apply partial context to unlabeled file `/usr/lib64/riak/lib/erlang_js-1.2.2/priv/erlang_js_drv.so'
chcon: can't apply partial context to unlabeled file `/usr/lib64/riak/lib/crypto-2.1/priv/lib/crypto.so'
chcon: can't apply partial context to unlabeled file `/usr/lib64/riak/lib/asn1-1.7/priv/lib/asn1_erl_nif.so'
$ git clone https://github.com/ryuzee/sahara.git
$ bundle install --path vendor/bundle
$ bundle exec rake build
$ vagrant plugin install pkg/sahara-0.0.14.gem
Process: Vim [18518]
Path: /Applications/MacVim.app/Contents/MacOS/Vim
Identifier: Vim
Version: ???
Code Type: X86-64 (Native)
Parent Process: zsh [373]
User ID: 501
Date/Time: 2013-04-24 23:26:14.728 +0900
OS Version: Mac OS X 10.8.3 (12D78)
org.eclipse.core.runtime.CoreException: プラグイン org.eclipse.m2e.editor はクラス org.eclipse.m2e.editor.pom.MavenPomEditor をロードできませんでした。
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:176)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:273)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:269)
at org.eclipse.ui.internal.registry.EditorDescriptor.createEditor(E
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Sample</title>
<script type="text/javascript">
window.onload = function () {
function Foo() {
}
Foo.prototype = {
array(2) {
[1] =>
string(3) "one"
[2] =>
string(3) "two"
}
--------------------
array(2) {
[1] =>
string(3) "one"
@heavenshell
heavenshell / unicode_escape_decode.vim
Created February 18, 2013 10:35
Decode unicode escape string to utf-8
let s:save_cpo = &cpo
set cpo&vim
python << PYTHONEOF
import vim
def unicode_escape():
start = vim.eval('start')
end = vim.eval('end')
line = vim.eval('val')
string = line[int(start) - 1:int(end)]
(function () {
function Foo() {
}
Foo.prototype = {
init: function () {
var collections = {
foo: new entities.collections.Foo(),
bar: new entities.collections.Bar(),
hoge: new entities.collections.Hoge(),
fuga: new entities.collections.Fuga()
function neocomplcache#auto_complete..neocomplcache#manual_complete..neocomplcache#get_complete_resu
lts..<SNR>98_set_complete_results_words..396..jscomplete#GetCompleteWords..<SNR>124_ParseCurrentExpr
ession..<SNR>124_ParseExpression2..<SNR>124_EvalExpression..<SNR>124_GetDeclaration..<SNR>124_ParseE
xpression..<SNR>124_ParseExpression2..<SNR>124_EvalExpression..<SNR>124_ParseObject..<SNR>124_ParseE
xpression2..<SNR>124_EvalExpression..<SNR>124_GetDeclaration..<SNR>124_ParseExpression..<SNR>124_Par
seExpression2..<SNR>124_EvalExpression..<SNR>124_ParseObject..<SNR>124_ParseExpression2..<SNR>124_Ev
alExpression..<SNR>124_GetDeclaration..<SNR>124_ParseExpression..<SNR>124_ParseExpression2..<SNR>124
_EvalExpression..<SNR>124_ParseObject..<SNR>124_ParseExpression2..<SNR>124_EvalExpression..<SNR>124_
GetDeclaration..<SNR>124_ParseExpression..<SNR>124_ParseExpression2..<SNR>124_EvalExpression..<SNR>1
24_ParseObject..<SNR>124_ParseExpression2..<SNR>124_EvalExpression..<SNR>124_GetDeclaration..<SNR>12
echomsg 'begin'
python <<EOF
# coding: utf-8
import time
def func():
for i in range(0, 10):
yield i
time.sleep(1)