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 getNumberArray(maxValue) { | |
| const a = []; | |
| let i = 0 | |
| for (i = 0; i < maxValue; i++) { | |
| a.push(i); | |
| } | |
| return a; | |
| } |
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
| # getting the duration in minutes, and shifting the arguments, which will be all passed to watson | |
| DURATION=$1 | |
| shift | |
| echo "Setting pomodoro for ${DURATION} minutes" | |
| WINDOW_DECIMAL_ID=`xdotool getwindowfocus` | |
| WINDOW_ID=`printf '0x%x\n' ${WINDOW_DECIMAL_ID}` | |
| watson start "$@" |
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 {OpR} from "./types" | |
| import {PlayId} from "@honest-news/data-types/gameplay" | |
| import {logDescriptor} from "./logTable" | |
| import {nSQL} from "@nano-sql/core" | |
| const TABLE_NAME = 'descriptor' | |
| export const TABLE_DESCRIPTOR = { | |
| name: TABLE_NAME, | |
| model: { | |
| 'id:uuid': {pk: true}, |
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
| private Set<Feature> features = new TreeSet<SearchRequestFeature>(); | |
| //Gives an error "Incompatiable types". | |
| //Even though | |
| public class SearchRequestFeature implements Feature | |
| //WAT? |
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
| humanReadableName :String | |
| remoteAuthToken :String | |
| baseUrl :String | |
| responseFormat :String //If it is decided to keep it here, rather than in individual requests | |
| /** | |
| * Whether or not this server is automatically accepted by requesting/external server. | |
| * Alternative name - canSendRequests. | |
| */ | |
| mutuallyAccepted :Boolean |
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
| Session session = this.sessionFactory.getSessionFactory().openSession(); | |
| c = session.createCriteria(Connection.class); | |
| connection = new Connection(this.publicPatientSimilarityViewFactory.convert(patientPair)); | |
| c.add(Example.create(connection).excludeProperty("id")); | |
| Session session = this.sessionFactory.getSessionFactory().openSession(); | |
| return (Connection) session.load(Connection.class, id); | |
| /** | |
| * So after a little bit of research into Hibernate and Entities, |
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
| @Override | |
| public String getExternalId() | |
| { | |
| try { | |
| for (Object identifierUncast : this.getData("identifiers")) { | |
| Map.Entry<String, String> identifier = (Map.Entry<String, String>) identifierUncast; | |
| if (identifier.getKey().equalsIgnoreCase("external_id")){ | |
| return identifier.getValue(); | |
| } | |
| } |