選択範囲を外部プログラムで加工するサクラエディタ用JScriptマクロの雛形 | anobota http://haraita9283.blog98.fc2.com/blog-entry-257.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; ################################ | |
; HOME | |
C:\Users\{user} | |
; ################################ | |
; %HOME%/.emacs | |
(add-to-list 'load-path (expand-file-name "~/emacs_d")) | |
(load (expand-file-name "~/emacs_d/__emacs.el")) | |
; ################################ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var MyJSON = {}; | |
function isArray(arg){ | |
return Object.prototype.toString.call(arg) === '[object Array]'; | |
} | |
function escapeStr(s){ | |
return '"' + s | |
.replace(/\\/g, "\\\\") | |
.replace(/\t/g, "\\t") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set JJS=C:\path\to\java\bin\jrunscript.exe | |
set LIBO_DIR=C:\Program Files (x86)\LibreOffice 4 | |
set CLASSPATH=%LIBO_DIR%\program\classes\unoil.jar | |
set CLASSPATH=%CLASSPATH%;%LIBO_DIR%\URE\java\juh.jar | |
set CLASSPATH=%CLASSPATH%;%LIBO_DIR%\URE\java\jurt.jar | |
set CLASSPATH=%CLASSPATH%;%LIBO_DIR%\URE\java\ridl.jar | |
rem echo %CLASSPATH% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// jrunscript/Rhino | |
/** | |
* @param writer java.io.Writer | |
*/ | |
function FileWriter(writer){ | |
this.writer = writer; | |
} | |
FileWriter.prototype.close = function(){ | |
this.writer.close(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// JScript | |
function toWinPath(path){ | |
return path.replace(/\//g, "\\"); | |
} | |
var MYSQLADMIN = toWinPath("C:/path/to/mysql/bin/") + "mysqladmin -uXXXX -pXXXX"; | |
function print(value){ | |
WScript.StdOut.Write("" + value); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
def format_datetime(y, m, d, hour, min) | |
"%04d-%02d-%02d %02d:%02d" % [y, m, d, hour, min] | |
end | |
def auto_hour(from_or_to) | |
if from_or_to == :from | |
0 | |
elsif from_or_to == :to |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; (c) 2011 sonota486 <[email protected]> | |
;; license: GPL | |
;; ;; .emacs.el example | |
;; (require 'volatile-highlight) | |
;; (set-face-background 'volatile-highlight-face "#ffff00") ; optional | |
(copy-face 'highlight 'volatile-highlight-face) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dbunitsample; | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.PreparedStatement; | |
import java.sql.SQLException; | |
public class Memebers { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
# (setq org-export-htmlize-output-type 'css) | |
# (setq org-export-html-style-include-default nil) | |
#+style: <link href="org.css" rel="stylesheet" type="text/css" /> | |
*/ | |
* { line-height: 170%; |