Skip to content

Instantly share code, notes, and snippets.

@curist
Last active December 11, 2015 20:18
Show Gist options
  • Select an option

  • Save curist/4653914 to your computer and use it in GitHub Desktop.

Select an option

Save curist/4653914 to your computer and use it in GitHub Desktop.
gist-vim and this gist-driven-blog

Prelude

trying out gist-vim...

Usage

(copied from https://github.com/mattn/gist-vim)

  • set description :Gist -s "nonsense random description"

  • list all my gists :Gist -l

MyBlogTODO

  • fix styling, currently listed items are messed up.
  • when a gist got deleted, the blog can fail to load it and cause javascript error.
  • need to fork gist-vim, for better gist-blog editing experience, need things like:
    1. only list gist-blog related gists
    2. easier to set gist description
    3. easier to delete gist
    4. gist-vim window position, and opened gist window position
  • code highlighting
function extend(base, extendy) {
  var prop;
  for(prop in extendy) {
    // js comment
    if(extendy.hasOwnProperty(prop)) {
      base[prop] = extendy[prop];
    }
    /*
     * js comments
     */
  }
}
gt = GoogleTranslate.new

if ARGV.length == 1
  # one shot translate
  puts gt.translate(ARGV[0])
else
  # translating console, keep it opened
  while buf = Readline.readline("> ", true)
    puts gt.translate(buf)
  end
end
  • img

Boston Terrier

and maybe more to come..

@curist

curist commented Feb 23, 2013

Copy link
Copy Markdown
Author

not sure if this actually works or not?

lets

try it!!

  • some
  • list
  • can't
  • be wrong
console.log('no can do?');

@curist

curist commented Feb 24, 2013

Copy link
Copy Markdown
Author

works or not

that's a question

@curist

curist commented Feb 24, 2013

Copy link
Copy Markdown
Author

try again

# shall we?

@curist

curist commented Mar 24, 2013

Copy link
Copy Markdown
Author

marked

not that broken
#plz
\* 1
\* 2
\* 3

@curist

curist commented Mar 24, 2013

Copy link
Copy Markdown
Author

foo

\* 123
\* bar

@curist

curist commented Jun 29, 2013

Copy link
Copy Markdown
Author

yo!!

  • 1
  • 2

bar

  1. list item 1
  2. list item foo

@curist

curist commented Jun 29, 2013

Copy link
Copy Markdown
Author

yo!!

  • 1
  • 2

bar

  1. list item 1
  2. list item foo

@curist

curist commented Jun 29, 2013

Copy link
Copy Markdown
Author

yo!!

  • 1
  • 2

bar

  1. list item 1
  2. list item foo

@curist

curist commented Jun 29, 2013

Copy link
Copy Markdown
Author

yo!!

  • 1
  • 2

bar

  1. list item 1
  2. list item foo

@curist

curist commented Jun 29, 2013

Copy link
Copy Markdown
Author

Man.. I have no idea..!! WAT does WAT stands for?

@curist

curist commented Jun 29, 2013

Copy link
Copy Markdown
Author

#123

  • list item 1
  • list item 2

hello!!

blah
balh

@curist

curist commented Jun 29, 2013

Copy link
Copy Markdown
Author

#123

4
5
5
6
7

1213
kkthx bye!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment