Usage:
C:\eclipse> ora
Result:
| #!/usr/bin/env ruby | |
| # -*- coding: utf-8; -*- | |
| # | |
| # scraping nikkei.com for Kindle | |
| # | |
| require 'nokogiri' | |
| require 'open-uri' | |
| TOP = 'http://www.nikkei.com' |
| 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 |
| 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, '..')) |
| #!/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 tornado.ioloop | |
| import tornado.web | |
| import tornado.escape | |
| import tornado.options | |
| import tornado.httputil | |
| import jinja2 | |
| import pyjade.compiler | |
| import coffeescript | |
| import markdown |
| data_sets <- c("mtcars", "morley", "rock") | |
| shinyServer(function(input, output) { | |
| # Drop-down selection box for which data set | |
| output$choose_dataset <- renderUI({ | |
| selectInput("dataset", "Data set", as.list(data_sets)) | |
| }) | |
| # Check boxes |
| <!-- Drop this in ~/Library/Preferences/PyCharm20/tools --> | |
| <!-- make sure you set the path to flake8 executable for your machine in the COMMAND option --> | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <toolSet name="Flake8"> | |
| <tool name="Flake8 File" showInMainMenu="true" showInEditor="true" showInProject="true" showInSearchPopup="false" disabled="false" useConsole="true" synchronizeAfterRun="true"> | |
| <exec> | |
| <option name="COMMAND" value="/usr/local/share/python/flake8" /> | |
| <option name="PARAMETERS" value="--max-line-length=120 --ignore=E301,E302,E261,E262,W404 $FileDir$/$FileName$" /> | |
| <option name="WORKING_DIRECTORY" value="$FileDir$" /> |
| # 少し凝った zshrc | |
| # License : MIT | |
| # http://mollifier.mit-license.org/ | |
| ######################################## | |
| # 環境変数 | |
| export LANG=ja_JP.UTF-8 | |
| # 色を使用出来るようにする |