This is vimscript for gist (http://gist.github.com)
:Gist
post whole text to gist.
doc1= | |
"_id" : 12345678 | |
"starttime" : "20101207010500" | |
"length" : 300 | |
"interval" : 60 | |
"device_data" : | |
"2323" : | |
"123" : | |
"ca" : [ 4, 7, 3, 3, 3 ] | |
"cd" : [ 7, 3, 6, 9, 8 ] |
This is vimscript for gist (http://gist.github.com)
:Gist
post whole text to gist.
david@david-laptop:~/test/rails$ templater myapp | |
create | |
create README | |
create Rakefile | |
create config.ru | |
create .gitignore | |
create Gemfile | |
create app | |
create app/controllers/application_controller.rb | |
create app/helpers/application_helper.rb |
require 'rubygems' | |
require 'mini_magick' | |
image = MiniMagick::Image.open("abc.png") | |
image.colorspace('Gray') | |
image.colors(16) | |
image.write "bcd.png" |
require 'rubygems' | |
require 'mini_magick' | |
#curl "http://maps.google.com/maps/api/staticmap?center=广州+天河区+科韵路+广州信息港A栋&size=600x640&maptype=satellite&sensor=false" > abc.png | |
image = MiniMagick::Image.open("abc.png") | |
image.colorspace('Gray') | |
image.colors(16) | |
image.write "bcd.png" |
#!/usr/bin/env bash | |
__bdsm_bash_completion() | |
{ | |
local current_word previous flags commands extensions | |
COMPREPLY=() | |
current_word="${COMP_WORDS[COMP_CWORD]}" | |
previous="${COMP_WORDS[COMP_CWORD-1]}" | |
extensions="$( bdsm list | tr "\n" ' ')" |
#!/usr/bin/env bash | |
__bdsm_bash_completion() | |
{ | |
local current_word previous flags commands extensions | |
# COMPREPLY=() | |
current_word="${COMP_WORDS[COMP_CWORD]}" | |
previous="${COMP_WORDS[COMP_CWORD-1]}" | |
extensions="$( bdsm list | tr "\n" ' ')" |
" Don't use abbreviations! Spelling things out makes grepping easy. | |
" Let Pathogen bring in all the plugins | |
filetype off | |
call pathogen#runtime_append_all_bundles() | |
set modelines=0 | |
filetype indent plugin on | |
syntax on | |
" TODO: clean all this junk out! |
; Summary: Proxy Switchy! Exported Rule List | |
; Date: Sunday, May 15, 2011 | |
; Website: http://bit.ly/proxyswitchy | |
#B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