1 | // standard function adder, auto importer |
2 | !595 592 |
3 | |
4 | public class main {
|
5 | public static void main(String[] args) throws Exception {
|
6 | print "Translator starting" |
7 | String s = loadMainJava(); |
8 | String code = loadSnippet("#597");
|
9 | Matcher matcher = Pattern.compile("\\d+").matcher(s);
|
10 | if (matcher.find()) |
11 | code = code.replaceAll("port = \\d+", "port = " + matcher.group());
|
12 | saveMainJava(code); |
13 | print "Translator done" |
14 | } |
15 | } |
download show line numbers debug dex old transpilations
Travelled to 17 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, jtubtzbbkimh, kajysqoxcvfe, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt
2 comment(s) hidden. show
| Snippet ID: | #598 |
| Snippet name: | Stub HTTP server from shortcut (translator, shortened) |
| Eternal ID of this version: | #598/1 |
| Text MD5: | daa5c76b45fc0e2378990d450d9ce59a |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX source code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2015-04-30 17:21:19 |
| Source code size: | 461 bytes / 15 lines |
| Pitched / IR pitched: | No / Yes |
| Views / Downloads: | 1729 / 1718 |
| Referenced in: | [show references] |