Sets the cmd window title to the current folder name.
@echo off
set MYDIR=%cd%
set MYDIR1=%MYDIR:~0%
for %%f in (%MYDIR1%) do set MYDIR=%%~nxf
title %MYDIR%
Click to see more |
Click to see more |
Click to see more |
package grimbo.bmp; | |
import java.io.File; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.io.OutputStreamWriter; | |
import java.io.StringWriter; | |
import java.io.Writer; | |
import java.math.BigDecimal; |
Sets the cmd window title to the current folder name.
@echo off
set MYDIR=%cd%
set MYDIR1=%MYDIR:~0%
for %%f in (%MYDIR1%) do set MYDIR=%%~nxf
title %MYDIR%
Click to see more |
function intStream(from, to) { | |
var i = from; | |
var unbounded = ("number" !== typeof to); | |
return { | |
hasNext: function() { return unbounded ? true : (i < to); }, | |
next: function() { if (!this.hasNext()) throw "Stream Finished"; return i++; }, | |
toString: function() { | |
return "Int Stream: from " + from + ", " + (unbounded ? "unbounded" : "to " + to); | |
} | |
}; |
dojo/util version used is 1.10.4. Custom branches are forked off 1.10.4.
Running a build on this project:
Why are Node and Java results not side-by-side? Because it's hard to isolate the comparison to just the file copy as there are so many other performance differences between the Node and Java builds. So safer to just compare Node to Node and Java to Java.
OS
: W7 (Windows 7), U1404 (Ubuntu 14.04)