Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| #include <boost/flyweight.hpp> | |
| #include <boost/multi_index_container.hpp> | |
| #include <boost/multi_index/member.hpp> | |
| #include <string> | |
| #include <cstdint> | |
| #include <vector> | |
| #include <iostream> | |
| #include <tuple> | |
| typedef std::tuple<short, std::uint8_t, std::uint8_t> Date; |
| // This can be imported via ./bin/gremlin.sh -i describe.groovy | |
| // A variable 'graph' must be defined with a JanusGraph graph | |
| // Run it as a plugin command ':schema' | |
| // :schema describe | |
| // | |
| import org.janusgraph.graphdb.database.management.MgmtLogType | |
| import org.codehaus.groovy.tools.shell.Groovysh | |
| import org.codehaus.groovy.tools.shell.CommandSupport |
flatMap, especially if the following operation will result in high memory usage. The flatMap op usually results in a DataFrame with a [much] larger number of rows, yet the number of partitions will remain the same. Thus, if a subsequent op causes a large expansion of memory usage (i.e. converting a DataFrame of indices to a DataFrame of large Vectors), the memory usage per partition may become too high. In this case, it is beneficial to repartition the output of flatMap to a number of partitions that will safely allow for appropriate partition memory sizes, based upon the| from numpy.linalg import solve | |
| class ExplicitMF(): | |
| def __init__(self, | |
| ratings, | |
| n_factors=40, | |
| item_reg=0.0, | |
| user_reg=0.0, | |
| verbose=False): | |
| """ |
| # Add field | |
| echo '{"hello": "world"}' | jq --arg foo bar '. + {foo: $foo}' | |
| # { | |
| # "hello": "world", | |
| # "foo": "bar" | |
| # } | |
| # Override field value | |
| echo '{"hello": "world"}' | jq --arg foo bar '. + {hello: $foo}' | |
| { |
| package main | |
| import ( | |
| "bufio" | |
| "bytes" | |
| "fmt" | |
| "io" | |
| "log" | |
| "net" | |
| "os" |
| import com.thinkaurelius.titan.core.TitanFactory; | |
| import com.thinkaurelius.titan.core.TitanGraph; | |
| import com.thinkaurelius.titan.core.TitanKey; | |
| import com.thinkaurelius.titan.core.attribute.Geoshape; | |
| import com.thinkaurelius.titan.graphdb.configuration.GraphDatabaseConfiguration; | |
| import com.tinkerpop.blueprints.Edge; | |
| import com.tinkerpop.blueprints.Vertex; | |
| import com.tinkerpop.blueprints.util.ElementHelper; | |
| import org.apache.commons.configuration.BaseConfiguration; | |
| import org.apache.commons.configuration.Configuration; |