#Base URL
http://192.168.1.254
GET / file management panel
all options follow the template:
/?custom=1&cmd={Command}&par={Option}
Command - setting/mode of the device
... | |
scalaVersion := "2.11.4" | |
libraryDependencies ++= Seq( | |
... | |
"com.sksamuel.scrimage" %% "scrimage-core" % "1.4.1", | |
"com.sksamuel.scrimage" %% "scrimage-canvas" % "1.4.1", | |
"com.sksamuel.scrimage" %% "scrimage-filters" % "1.4.1" | |
) |
implicit def newLocationToLocation(l: NewLocation):Location={ | |
val id:Int = 1 //sql"select s_id.nextval from dual".execute | |
new Location(id,l.name,l.serverId,s"${l.directory}/${l.regexp}",l.directory,l.quartzPattern,l.triggerBy,l.disabled,l.ftpConnectionMode,l.dataTransferMode,l.preSite,l.postSite,l.transferBy,l.wasModified,l.filterOutTransferred) | |
} |
def mergesort(toSort: List[Int]) : List[Int] = { | |
if(toSort.length<=1) toSort | |
else{ | |
val (left, right) = split(toSort) | |
merge(mergesort(left), mergesort(right)) | |
} | |
def split(toSplit: List[Int]): (List[Int], List[Int]) = toSplit splitAt toSplit.length/2 | |
def merge(left: List[Int], right: List[Int]):List[Int] = { | |
(left, right) match { |
public class LoanApplication { | |
private long applicationNo; | |
private long amount; | |
private String email; | |
private String contact; | |
private boolean approved; | |
public LoanApplication() { | |
applicationNo = LoanHandler.getNextId(); |
object Mergesort { | |
def sort(items: List[Int], sorter: (Int, Int) => Boolean): List[Int] = { | |
if (items.length == 0) { | |
List[Int](); | |
} else if (items.length == 1) { | |
items; | |
} else { | |
merge( | |
sort(items.slice(0, items.length / 2), sorter), |
on run {input, parameters} | |
if (count of input) > 0 then | |
tell application "System Events" | |
set runs to false | |
try | |
set p to application process "iTerm" | |
set runs to true | |
end try | |
end tell | |
tell application "iTerm" |
# To build vim against homebrew Python 2.7.3. | |
# You'll also need to adjust the symbolic link of the current | |
# system Python framework (cf. http://goo.gl/b66fs): | |
# | |
# cd /System/Library/Frameworks/Python.framework/Versions | |
# sudo rm Current | |
# sudo ln -sf /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/Current Current | |
require 'formula' |