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
| public class Test { | |
| public static void main(String[] args) { | |
| System.out.println("Hello."); | |
| } | |
| } |
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
| javac Triangle.java | |
| appletviewer index.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
| require 'webrick' | |
| WEBrick::HTTPServer.new( | |
| :DocumentRoot => '.', | |
| :Port => 8013, | |
| ).start |
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
| # ruby.pl | |
| # カレントディレクトリの *.tex から、 | |
| # ruby{A}{B}とindex{A@B}とindex{A}を探し、 | |
| # indexされていないと思われるrubyを表示する。 | |
| use strict; | |
| use warnings; | |
| my %index; | |
| my %ruby; |
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
| \documentclass{jsbook} | |
| \begin{document} | |
| Hello! | |
| \end{document} |
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
| <?xml version="1.0"?> | |
| <root> | |
| <list> | |
| <item> | |
| <name>LeaveInsMode with EISUU(Terminal)</name> | |
| <identifier>private.app_terminal_esc_with_eisuu</identifier> | |
| <only>TERMINAL</only> | |
| <autogen>--KeyToKey-- KeyCode::ESCAPE, KeyCode::ESCAPE, KeyCode::JIS_EISUU</autogen> | |
| <autogen>--KeyToKey-- KeyCode::JIS_BRACKET_LEFT, VK_CONTROL, KeyCode::JIS_BRACKET_LEFT, VK_CONTROL, KeyCode::JIS_EISUU</autogen> | |
| </item> |
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
| augroup filetypedetect | |
| au BufNewFile,BufRead *.txt setf txt | |
| augroup END |
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
| #!/usr/bin/env ruby | |
| DESTDIR = "~/Dropbox/Backup" | |
| if ARGV.length != 2 | |
| puts "Usage: zip_to_dropbox projectname srcdirname" | |
| puts "Example: zip_to_dropbox girldoc doc" | |
| puts "It will create #{DESTDIR}/girldoc_yyyy-mm-dd-hhmmss.zip." | |
| abort | |
| end | |
| PROJECTNAME = ARGV[0] | |
| SRCDIRNAME = ARGV[1] |
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
| class Hello {} | |
| class World {} | |
| class Main { | |
| public static void main(String[] args) { | |
| String h = Hello.class.getName(), w = World.class.getName(); | |
| System.out.println(h + (char)(h.length() / h.length() << w.length()) + w); | |
| } | |
| } |
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
| bookscan = Hash.new | |
| dropbox = Hash.new | |
| File::open("bookscan.txt") do |f| | |
| f.each do |line| | |
| line.match(/_([\dX]+)$/) | |
| bookscan[$1] = line | |
| end | |
| end | |
| File::open("dropbox.txt") do |f| |
OlderNewer