Skip to content

Instantly share code, notes, and snippets.

CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 2.8)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
@echo off
FOR /F "usebackq" %%t IN (`where vim`) DO SET _VIM=%%t
set VIM=%_VIM:\vim.exe=%
set _VIMRC=%HOME%\_vimrc
if exist %_VIMRC% goto EXEC_NEOBUNDLE_INSTALL
if not exist %_VIMRC% goto DOTVIMRC
:DOTVIMRC
set VIMRC=%HOME%\.vimrc
if exist %VIMRC% goto EXEC_NEOBUNDLE_INSTALL
checking --enable-pythoninterp argument... dynamic
checking for python2... (cached) /usr/sbin/python2
checking Python version... (cached) 2.7
checking Python is 2.3 or better... yep
checking Python's install prefix... (cached) /usr
checking Python's execution prefix... (cached) /usr
(cached) checking Python's configuration directory... (cached) /usr/lib/python2.7/config
(cached) checking if -pthread should be used... yes
checking if compile and link flags for Python are sane... yes
checking --enable-python3interp argument... dynamic
nicothumb.rb:108:in `block (2 levels) in <top (required)>'
/app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.3.2/lib/sinatra/base.rb:783:in `each'
/app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `[]'
/app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `block (3 levels) in route!'
nicothumb.rb:106:in `map'
/app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `block (2 levels) in route!'
/app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.3.2/lib/sinatra/base.rb:820:in `process_route'
nicothumb.rb:106:in `block in <top (required)>'
/app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:in `call!'
/app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.3.2/lib/sinatra/base.rb:784:in `block in route!'
/app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `block (2 levels) in route!'
/app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.3.2/lib/sinatra/base.rb:1212:in `block in compile!'
/app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `[]'
/app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.3.2/lib/sinatra/base.rb:801:in `route_eval'
/app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `block (3 levels) in route!'
nicothumb.rb:43:in `block (2 levels) in <top (required)>'
2013-08-24T17:41:46.970690+00:00 app[web.1]: NoMethodError - undefined method `empty?' for nil:NilClass:
nicothumb.rb:28:in `map'
nicothumb.rb:28:in `block in <top (required)>'
/app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.3.2/lib/sinatra/base.rb:1212:in `call'
Client> 2013-08-25 00:28:47 [SEVERE] [ForgeModLoader] Unable to launch
Client> java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
Client> at cpw.mods.fml.relauncher.CoreModManager.injectTransformers(CoreModManager.java:463)
Client> at cpw.mods.fml.relauncher.FMLLaunchHandler.injectPostfixTransformers(FMLLaunchHandler.java:108)
Client> at cpw.mods.fml.relauncher.FMLLaunchHandler.appendCoreMods(FMLLaunchHandler.java:113)
Client> at cpw.mods.fml.common.launcher.FMLTweaker.injectIntoClassLoader(FMLTweaker.java:80)
Client> at net.minecraft.launchwrapper.Launch.launch(Launch.java:51)
Client> at net.minecraft.launchwrapper.Launch.main(Launch.java:18)
Client> Caused by: java.lang.reflect.InvocationTargetException
Client> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
@raa0121
raa0121 / smart!.vim
Last active December 21, 2015 06:19 — forked from mopp/smart!.vim
let lst = [ ['<', "smartchr#loop(' < ', ' << ', '<')" ],
\ ['>', "smartchr#loop(' > ', ' >> ', ' >>> ', '>')"],
\ ['+', "smartchr#loop(' + ', ' ++ ', '+')"],
\ ['-', "smartchr#loop(' - ', ' -- ', '-')"],
\ ['/', "smartchr#loop(' / ', '//', '/')"],
\ ['&', "smartchr#loop(' & ', ' && ', '&')"],
\ ['%', "smartchr#loop(' % ', '%')"],
\ ['*', "smartchr#loop(' * ', '*')"],
\ ['<Bar>', "smartchr#loop(' | ', ' || ', '|')"],
\ [',', "smartchr#loop(', ', ',')"]]
set nocompatible
filetype off
if has('vim_starting')
set runtimepath+=~/.vim/neobundle.vim.git
endif
call neobundle#rc(expand('~/.bundle_test'))
NeoBundleLazy 'Shougo/vimshell.vim', { 'depends' : [ 'vimproc.vim' ] }
def post_bitly(url)
open("http://api.bit.ly/shorten?#{@query[0]}#{url}#{@query[1]}").read
end
[9] pry(main)> atnd = JSON.parse(open("http://api.atnd.org/events/?event_id=33746&format=json").read)
=> {"results_available"=>1,
"events"=>
[{"lat"=>nil,
"address"=>"",
"owner_nickname"=>"manga_osyo",
"lon"=>nil,
"catch"=>"Vim!書かずにはいられないッ!",
"title"=>"Vim Advent Calendar 2012",
"recommended_twitter_account"=>"",