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
| diff --git a/migemo-dict.rb b/migemo-dict.rb | |
| index 61f60ad..e44e6d1 100644 | |
| --- a/migemo-dict.rb | |
| +++ b/migemo-dict.rb | |
| @@ -33,8 +33,14 @@ class MigemoDictItem | |
| end | |
| class MigemoDict | |
| + class << self | |
| + def open(filename) |
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 _ { | |
| _ _ = _(); | |
| _ _() {return _;} | |
| { | |
| _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._(); | |
| _._._._._._._._._._._._._._._._._._._._()._._._._._._._._._._._()._._._._._._._._._._._._._._._._._(); | |
| _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._(); | |
| } | |
| {{new _();}} | |
| public static void main(String[] _) {} |
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.Comparator; | |
| public class A { | |
| public static void main(String[] args) throws Exception { | |
| new Comparator<String>() { | |
| public int compare(String a, String b) { | |
| new Runnable() { | |
| public void run() { | |
| try { | |
| Comparator cmp = (Comparator)this.getClass().getDeclaredField("this$0").get(this); |
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
| @Jenova( | |
| @Lambda(name="fn", type=Function.class) | |
| ) | |
| public class Example { | |
| public List<String> transform(List<Integer> l) { | |
| l = Lists.transform(l, new fn<Integer, Integer>() {{ | |
| return _1; | |
| }}); | |
| return Lists.transform(l, new fn<Integer, String>() {{ | |
| return Integer.toString(_1 * 2); |
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 com.github.buzztaiki.jenova.Jenova; | |
| import com.github.buzztaiki.jenova.Lambda; | |
| import com.google.common.base.Function; | |
| import com.google.common.base.Predicate; | |
| import com.google.common.collect.Iterables; | |
| import java.util.Arrays; | |
| import lombok.experimental.ExtensionMethod; | |
| @Jenova({ | |
| @Lambda(name="fn", type=Function.class), |
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 'open3' | |
| require 'terminal-table' | |
| def run_java(*args, &block) | |
| o, e, s = Open3.capture3('java', *args) | |
| o.each_line(&block) | |
| end | |
| def totals(*args) | |
| java_args = ['-server', '-XX:+PrintGCDetails', args, '-version'].flatten |
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
| (defun hilit (beg end) | |
| (interactive "r") | |
| (let ((ov (make-overlay beg end))) | |
| (overlay-put ov 'hilit-overlay t) | |
| (overlay-put ov 'face 'hi-blue)) | |
| (deactivate-mark)) | |
| (defun hilit-clear () | |
| (interactive) | |
| (loop for ov in (overlays-in (point-min) (point-max)) |
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
| for b in $branches; do | |
| git co $b && git rebase $oldbase && git rebase --onto $newbase $oldbase && git branch --set-upstream $b $newbase | |
| done |
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.concurrent.Callable; | |
| import org.mozilla.javascript.Context; | |
| import org.mozilla.javascript.Scriptable; | |
| public class RunScript { | |
| public static void main(String args[]) throws Exception { | |
| System.out.println(callable().call()); | |
| } | |
| static Callable callable() { |
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
| #!/bin/bash | |
| #/run/bin/privatetmp | |
| touch /tmp/foo.tmp | |
| ls /tmp |