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
| package com.algorithms; | |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.List; | |
| public class NQueen { | |
| class Position { | |
| int row; | |
| int col; |
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
| { | |
| "logconfig": { | |
| }, | |
| "services": { | |
| "providers": { | |
| "client-a": {}, | |
| "client-b": {} | |
| } | |
| }, | |
| "plugins": { |
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
| { | |
| providers: { | |
| "oneopsDefault": { | |
| name: "oneops-default", | |
| order: 165, | |
| filter: ["{{oneOpsProfile}}"], | |
| type: Confippet.providerTypes.optional | |
| }, | |
| "oneopsProfile": { | |
| name: "oneops-{{oneOpsProfile}}", |
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
| providers: { | |
| "default": { | |
| name: "default", | |
| filter: ["{{defaultFilter}}"], | |
| type: "{{defaultType}}", | |
| order: 100 | |
| }, | |
| // {{deployment}} - resolves to "development" by default | |
| "deployment": { | |
| name: "{{deployment}}", |
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
| function compose(...funcs) { | |
| funcs = funcs.filter(func => typeof func === 'function') | |
| if (funcs.length === 0) { | |
| return arg => arg | |
| } | |
| if (funcs.length === 1) { | |
| return funcs[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
| class Action { | |
| private String type; | |
| private Object data; | |
| public Action(String type, Object data) { | |
| this.type = type; | |
| this.data = data; | |
| } | |
| public String getType() { |