Bundle! 'my_plugin'
instructs Vundle that
- this plugin should not be synchronized/cloned
- it's located in
bundles/my_plugin
| From 6737da2323d9896fe30de66394a659de2b41e9b1 Mon Sep 17 00:00:00 2001 | |
| From: gmarik <gmarik@gmail.com> | |
| Date: Tue, 16 Nov 2010 22:05:27 -0600 | |
| Subject: [PATCH] Do not set Content-Type header when body defined | |
| --- | |
| platform/shared/net/AsyncHttp.cpp | 1 - | |
| 1 files changed, 0 insertions(+), 1 deletions(-) | |
| diff --git a/platform/shared/net/AsyncHttp.cpp b/platform/shared/net/AsyncHttp.cpp |
| # looks like Content-type is set to application/octet-stream for nil values | |
| # | |
| User-Agent: Mozilla-5.0 (ANDROID; generic; 2.2) | |
| I/APP ( 3006): Content-Length: 3531 | |
| I/APP ( 3006): Content-Type: multipart/form-data; boundary=----------------------------44729c969b01 | |
| I/APP ( 3006): | |
| I/APP ( 3006): I 12/04/2010 20:55:34:609 0066c790 Net| => Send data (818 bytes): ------------------------------44729c969b01 | |
| I/APP ( 3006): Content-Disposition: form-data; name="bill[amount]" | |
| I/APP ( 3006): Content-Type: application/octet-stream | |
| I/APP ( 3006): Content-Length: 0 |
| bills = [ | |
| {:name=>"bill[attachment]", | |
| :filename=>"/data/data/com.rhomobile.imageupload/rhodata/apps/rhoconfig.txt"}, | |
| {:name=>"bill[amount]", | |
| :body=>nil}] | |
| Rho::AsyncHttp.upload_file( | |
| :url => 'http://localhost:3000/bills.json', | |
| :callback => url_for(:action => :push_callback), | |
| :multipart => bills) |
| class Fixnum | |
| def upto2(n) | |
| (self..n).to_a.map{|k| yield k } | |
| end | |
| end | |
| class A | |
| def sum(n) | |
| sum = 0 | |
| 1.upto(n) do |i| |
| module Kernel | |
| alias require_orig_bench require | |
| def require(*args) | |
| from = Time.now.to_f | |
| $__deep ||= 0; $__deep += 1 | |
| require_orig_bench(*args) | |
| $stderr.puts %Q[ #{" " * ($__deep - 1) } #{(Time.now.to_f - from)} in #{args.inspect} ] | |
| $__deep -= 1 |
| # workaround for https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/6634-railsrack-inconsistency-about-expires_afterexpires-cookie-option#ticket-6634-3 | |
| # expiration issue | |
| # drop into RAILS_ROOT/config/initializers/expires_fix_2311.rb | |
| # | |
| require 'rack' | |
| Rack::Utils.class_eval do | |
| class << self | |
| def set_cookie_with_expire!(header, key, value) | |
| if value[:expires].blank? && value[:expire_after] |
| @rem Do not use "echo off" to not affect any child calls. | |
| @setlocal | |
| @rem Get the abolute path to the parent directory, which is assumed to be the | |
| @rem Git installation root. | |
| @for /F "delims=" %%I in ("%~dp0..") do @set git_install_root=%%~fI | |
| @set PATH=%git_install_root%\bin;%git_install_root%\mingw\bin;%PATH% | |
| @if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH% | |
| @if not exist "%HOME%" @set HOME=%USERPROFILE% |
| nnoremap <silent> <special> <C-x><C-s> :if expand("%") == ""<Bar>browse confirm update<Bar> else<Bar>confirm update<Bar>endif<CR> | |
| vmap <special> <C-x><C-s> <Esc><D-s>gv | |
| imap <special> <C-x><C-s> <C-O><D-s> | |
| cmap <special> <C-x><C-s> <C-C><D-s> | |
| omap <special> <C-x><C-s> <Esc><D-s> |
| syntax on | |
| set nocompatible " Unset compatibility with VI, it's 2011! | |
| set wildmenu | |
| set wildmode=list:longest " make cmdline tab completion similar to bash | |
| set backup " Activate backup stuff | |
| set backupdir=~/.vim/backup | |
| set directory=~/.vim/tmp | |
| set showmatch " Show matching brackets |