Mathematica
Mathematica CloudDeploy APIFunction.
Local Time in city
by Mathematica.
cityTime =
APIFunction[{"city" -> "City"}, ClockGauge[LocalTime[#city]] &,
"HTML"];
EmbedCode[CloudDeploy[cityTime]]
Local GeoGraphics in city
by Mathematica.
cityL = APIFunction[{"city" -> "City"}, GeoGraphics[#city] &,
"HTML"];
EmbedCode[CloudDeploy[cityL]]
cityP = APIFunction[{"city" -> "City",
"province" -> "AdministrativeDivision"},
GeoGraphics[{EdgeForm[Black], FaceForm[Red], Polygon[#province],
GeoMarker[#city]}, GeoScaleBar -> Automatic] &, "HTML"];
EmbedCode[CloudDeploy[cityP]]
FactorInteger
func = APIFunction[{"x" -> "Integer"}, FactorInteger[#x] &, "HTML"];
EmbedCode[CloudDeploy[func]]
Integrate
int = APIFunction[{"function" -> "Expression",
"variable" -> "Expression", "lowerLimit" -> "Real",
"upperLimit" -> "Real"},
Integrate[#function, {#variable, #lowerLimit, #upperLimit}] &,
"HTML"];
EmbedCode[CloudDeploy[int]]
Factor
fac = APIFunction[{"polynomial" -> "Expression"},
Factor[#polynomial] &, "HTML"];
EmbedCode[CloudDeploy[fac]]