Usage:
C:\eclipse> ora
Result:
| import tornado.ioloop | |
| import tornado.web | |
| import tornado.escape | |
| import tornado.options | |
| import tornado.httputil | |
| import jinja2 | |
| import pyjade.compiler | |
| import coffeescript | |
| import markdown |
| #!/bin/bash | |
| # virtualenv-auto-activate.sh | |
| # | |
| # Installation: | |
| # Add this line to your .bashrc or .bash-profile: | |
| # | |
| # source /path/to/virtualenv-auto-activate.sh | |
| # | |
| # Go to your project folder, run "virtualenv .venv", so your project folder | |
| # has a .venv folder at the top level, next to your version control directory. |
| import unittest, os, os.path, sys, urllib | |
| import tornado.database | |
| import tornado.options | |
| from tornado.options import options | |
| from tornado.testing import AsyncHTTPTestCase | |
| # add application root to sys.path | |
| APP_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) | |
| sys.path.append(os.path.join(APP_ROOT, '..')) |
| module Jekyll | |
| class MathJaxBlockTag < Liquid::Tag | |
| def render(context) | |
| '<script type="math/tex; mode=display">' | |
| end | |
| end | |
| class MathJaxInlineTag < Liquid::Tag | |
| def render(context) | |
| '<script type="math/tex">' | |
| end |
| #!/usr/bin/env ruby | |
| # -*- coding: utf-8; -*- | |
| # | |
| # scraping nikkei.com for Kindle | |
| # | |
| require 'nokogiri' | |
| require 'open-uri' | |
| TOP = 'http://www.nikkei.com' |