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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>com.euromonitor</groupId> | |
| <artifactId>Via-Dataflow-Service</artifactId> | |
| <version>1.0-SNAPSHOT</version> |
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
| #!/usr/bin/env bash | |
| # Pipeline vars | |
| PROJECT=my-project | |
| BUCKET_NAME=my-bucket | |
| TABLE={$PROJECT}:my-dataset.my-table | |
| NODE_ADDRESSES=comma-separated-list-nodes | |
| INDEX=my-index | |
| DOCUMENT_TYPE=my-type |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>com.euromonitor</groupId> | |
| <artifactId>Via-Dataflow-Service</artifactId> | |
| <version>1.0-SNAPSHOT</version> |
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
| // Define the size of the canvas above so we can re-use it later to generate co-ordinates | |
| var width = 1000; | |
| var height = 1000; | |
| // create our canvas | |
| var canvas = d3.select("body").append("svg") | |
| .attr("width", width) | |
| .attr("height", height); | |
| // Helper function to help generate coords. |
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
| spring.redis.cluster.max-redirects= # Maximum number of redirects to follow when executing commands across the cluster. | |
| spring.redis.cluster.nodes= # Comma-separated list of "host:port" pairs to bootstrap from. | |
| spring.redis.database=0 # Database index used by the connection factory. | |
| spring.redis.url= # Connection URL, will override host, port and password (user will be ignored), e.g. redis://user:password@example.com:6379 | |
| spring.redis.host=localhost # Redis server host. | |
| spring.redis.password= # Login password of the redis server. | |
| spring.redis.ssl=false # Enable SSL support. | |
| spring.redis.pool.max-active=8 # Max number of connections that can be allocated by the pool at a given time. Use a negative value for no limit. | |
| spring.redis.pool.max-idle=8 # Max number of "idle" connections in the pool. Use a negative value to indicate an unlimited number of idle connections. | |
| spring.redis.pool.max-wait=-1 # Maximum amount of time (in milliseconds) a connection allocation should block before throwing an exception when the |
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 java.io.{ByteArrayInputStream, ByteArrayOutputStream, ObjectInputStream, ObjectOutputStream} | |
| object Serialization extends App { | |
| def serialise(value: Any): Array[Byte] = { | |
| val stream: ByteArrayOutputStream = new ByteArrayOutputStream() | |
| val oos = new ObjectOutputStream(stream) | |
| oos.writeObject(value) | |
| oos.close | |
| stream.toByteArray |
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
| ;; -*- mode: emacs-lisp -*- | |
| ;; This file is loaded by Spacemacs at startup. | |
| ;; It must be stored in your home directory. | |
| (defun dotspacemacs/layers () | |
| "Configuration Layers declaration. | |
| You should not put any user code in this function besides modifying the variable | |
| values." | |
| (setq-default | |
| ;; Base distribution to use. This is a layer contained in the directory |
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 scala.concurrent.Future | |
| import scala.concurrent.ExecutionContext.Implicits.global | |
| val x = 5 | |
| val y = 6 | |
| def makeFuture(text: String) = Future { println(text) } | |
| for { | |
| foo <- makeFuture("hi") if x == 5 | |
| bar <- makeFuture("yo") if y == 4 |
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
| ;; -*- mode: emacs-lisp -*- | |
| ;; This file is loaded by Spacemacs at startup. | |
| ;; It must be stored in your home directory. | |
| (defun dotspacemacs/layers () | |
| "Configuration Layers declaration. | |
| You should not put any user code in this function besides modifying the variable | |
| values." | |
| (setq-default | |
| ;; Base distribution to use. This is a layer contained in the directory |
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 Ember from 'ember'; | |
| import through from '../indirect'; | |
| // Inlined, since no addons in twiddles. Really use this: | |
| // import through from 'ember-computed-indirect/utils/indirect'; | |
| export default Ember.Component.extend({ | |
| user: Ember.inject.service('user-permissions'), | |
| flagName: '', // specify in extending component | |
| flagPath: Ember.computed('flagName', function() { | |
| return 'user.permissions.' + this.get('flagName'); |