This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| grid = 0.01; | |
| iter = 50; | |
| %% mandelbrot set | |
| [Re,Im] = meshgrid(-2:grid:1,-1:grid:1); | |
| z0 = Re + Im*1i; % creates a grid of complex numbers from -2 to 1 on the real axis and from -1 to 1 on the imaginary axis | |
| values = zeros(size(z0)); | |
| z = z0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "release": "not a release", | |
| "topographyhash": "d439ba0f5e95a65942da5d53374e3fb1372c2020", | |
| "name": "New_scenario", | |
| "processWriters": [], | |
| "attributeshash": "bf1f2ba3b13f6b61e215e57743c81a3de5973418", | |
| "vadere": { | |
| "attributesModel": { | |
| "OPTIMAL_STEPS_MODEL": { | |
| "stepCircleResolution": 18.0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public abstract class Attributes {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import com.fasterxml.jackson.databind.JsonNode; | |
| import com.fasterxml.jackson.databind.ObjectMapper; | |
| import com.fasterxml.jackson.databind.node.ObjectNode; | |
| import java.io.IOException; | |
| import java.util.Iterator; | |
| public class Main { | |
| public static void main(String[] args) throws IOException { | |
| ObjectMapper mapper = new ObjectMapper(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class AttributesExample { | |
| private String str = "foo"; | |
| private double dbl = 0.8; | |
| private boolean bool = false; | |
| public String toString() { return str + ", " + dbl + ", " + bool; } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class AttributesExample { | |
| private String str = "foo"; | |
| private double dbl = 0.8; | |
| private boolean bool = false; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class AttributesExample { | |
| private String str; | |
| private Double dbl; | |
| private Boolean bool; | |
| public boolean allFieldsNotNull() { | |
| return str != null && dbl != null && bool != null; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Put your file to "YOUR_UNITY_PROJ/Assets/StreamingAssets" | |
| // example: "YOUR_UNITY_PROJ/Assets/StreamingAssets/db.bytes" | |
| string dbPath = ""; | |
| if (Application.platform == RuntimePlatform.Android) | |
| { | |
| // Android | |
| string oriPath = System.IO.Path.Combine(Application.streamingAssetsPath, "db.bytes"); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Set = ['A', 'B', 'C', 'D'] | |
| Subsets = [] | |
| n = len(Set) | |
| for i in xrange(pow(2, n)): | |
| binaryDigits = (bin(i)[2:]).zfill(n) | |
| subset = '' | |
| j = 0 | |
| for digit in binaryDigits: | |
| if(digit == '1'): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.graphstream.graph.Graph; | |
| import org.graphstream.graph.Node; | |
| import org.graphstream.graph.implementations.SingleGraph; | |
| import org.graphstream.ui.layout.HierarchicalLayout; | |
| import org.graphstream.ui.view.Viewer; | |
| public class graphstreamHierarchicalLayoutTesting { | |
| public static void main(String[] args) { | |
| Graph graph = new SingleGraph("Test"); |