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
| import java.net.URLClassLoader; | |
| import java.net.URL; | |
| class Classpath { | |
| public static void main( String[] args ) { | |
| URLClassLoader ucl = (URLClassLoader) Classpath.class.getClassLoader(); | |
| for ( URL url : ucl.getURLs() ) { | |
| System.out.println( url ); | |
| } | |
| } | |
| } |
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 kink | |
| # vim: et sw=4 sts=4 | |
| useclass('javax.swing.JFrame') | |
| useclass('javax.swing.JButton') | |
| useclass('javax.swing.JOptionPane') | |
| &BUTTON = JButton.new('Push').via { | |
| __.addActionListener { | |
| JOptionPane.showMessageDialog(null 'You pushed!') |
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
| sudo /sbin/mount.cifs //192.168.51.1/Taku /mnt/winhome/ -o username=<UserName>,codepage=utf8,iocharset=utf8,uid=taku,gid=taku |
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
| import java.util.Arrays; | |
| import java.util.Comparator; | |
| public class Sort { | |
| public static void main(String[] args) { | |
| // [0, 1000) の整数列 | |
| Integer[] numbers = new Integer[10]; | |
| for (int index = 0; index < numbers.length; ++ index) | |
| numbers[index] = (int) (Math.random() * 1000); |
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
| transform(emp, nation2 = ifelse(nation == 'England', 'Eng', as.character(nation))) |
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
| ln -snf jdk1.7_17 jdk7 |
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
| [Unit] | |
| Description=Auto Shutdown Service (SimpleShutdown) for Omron UPS | |
| [Service] | |
| Type=forking | |
| ExecStart=/usr/lib/ssd/master/ssdService | |
| KillSignal=SIGUSR1 | |
| Restart=on-abort | |
| RestartSec=4 |
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
| command! -nargs=1 Grep call s:Grep(<f-args>) | |
| function! s:Grep(command) | |
| let orig_grepprg = &l:grepprg | |
| let &l:grepprg = substitute(a:command, '|', '\\|', 'g') | |
| grep | |
| let &l:grepprg = orig_grepprg | |
| endfunction |
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
| import jenkins.model.Jenkins | |
| import hudson.slaves.OfflineCause | |
| for (node in Jenkins.instance.getNodes()) { | |
| computer = node.toComputer() | |
| if (computer.getOfflineCause() instanceof OfflineCause.LaunchFailed) { | |
| node.terminate() | |
| } | |
| } |
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 | |
| # vim: et sw=2 sts=2 | |
| require 'rexml/document' | |
| require 'open-uri' | |
| require 'nokogiri' | |
| require 'json' | |
| class Issue | |
| def initialize(entry) |
OlderNewer