Remember, Xmx corresponds to max heap and Xms corresponds to starting heap. It can be an optimization to set these equal.
bootRun {
jvmArgs = ['-Xmx1g']
}
| import numpy as np | |
| ### <summary> | |
| ### Basic template algorithm simply initializes the date range and cash. This is a skeleton | |
| ### framework you can use for designing an algorithm. | |
| ### </summary> | |
| class BasicTemplateAlgorithm(QCAlgorithm): | |
| '''Basic template algorithm simply initializes the date range and cash''' | |
| def Initialize(self): |
| function traverse(obj) { | |
| var stack = []; | |
| var i = 0; | |
| stack.push(obj); | |
| while (stack.length) { | |
| for (var j in stack[0]) { | |
| i++; | |
| if (typeof stack[0][j] === 'object') { |
| // function that returns a promise | |
| function getAMessage() { | |
| return new Promise(resolve => { | |
| setTimeout(() => { | |
| resolve("passing this value back..."); | |
| }, 2000); | |
| }); | |
| } | |
| // function is marked async |
| 0x683A802cB2346CB769dd0E3D7FaCcf08d1073fBE |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.List; | |
| import java.util.Scanner; | |
| public class ExampleMultipleStringsToList { | |
| public static void main(String[] args) { | |
| // read in a line | |
| Scanner scanner = new Scanner(System.in); |
| // assume some stuff like this exists | |
| ArrayList<String> lines = ... | |
| BufferedWriter writer = ... | |
| // get your iterator instance. | |
| Iterator<String> iterator = lines.iterator(); | |
| String write = null; | |
| // iterate + check inside of the while loop condition test. | |
| while (iterator.hasNext() && (write = iterator.next()) != null) { |
| <html> | |
| <head> | |
| <title>Canvas Boilerplate</title> | |
| <style type="text/css"> | |
| *,html{ | |
| margin: 0;padding: 0; | |
| } | |
| canvas { | |
| width: 100%; |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/components/core-min.js"></script> | |
| <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/rollups/hmac-sha1.js"></script> | |
| </head> |
| # cassandra runs on 9042 for devCenter management | |
| # expose it (9999 locally) running on a remote server locally: | |
| ssh -L 9999:localhost:9042 -f -N remoteuser@remotehost |