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.containerstore.project.order | |
| import com.containerstore.store.order.services.feature.FeatureService | |
| import spock.lang.Specification | |
| import static com.containerstore.project.order.MinCutLength.EIGHTY_INCH_TRACK_PLATINUM | |
| import static com.containerstore.project.order.MinCutLength.EIGHTY_INCH_TRACK_WHITE | |
| import static com.containerstore.project.order.MinCutLength.SIXTY_INCH_STANDARD | |
| class MinCutLengthTest extends Specification { |
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
| SELECT | |
| spc.FILE_ID | |
| ,img.IMAGE | |
| ,img.IMAGE_TYPE | |
| ,img.IMAGE_URL | |
| ,img.WALL_NAME | |
| FROM | |
| storeord.cpc_space spc | |
| INNER JOIN storeord.cpc_image img | |
| ON spc.FILE_ID = img.FILE_ID |
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.util.function.Function; | |
| import java.util.stream.Stream; | |
| public class Pipe { | |
| @SafeVarargs | |
| public final <T> Function<T, T> compose(Function<T, T>... functions) { | |
| return Stream.of(functions) | |
| .reduce(Function.identity(), Function::andThen); | |
| } |
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
| find . -type f | xargs -I {} grep -Hin DEPLOYMENT_ENVIRONMENT {} | |
| # Note - the xargs usage here is OSX-specific |
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
| -- This is oracle-specific. | |
| -- If using * instead of img.*, if there is a FK relationship, deletion will occur in both tables! | |
| DELETE (SELECT | |
| img.* | |
| FROM | |
| storeord.cpc_space spc | |
| INNER JOIN storeord.cpc_image img | |
| ON spc.FILE_ID = img.FILE_ID | |
| WHERE |
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 { fromElfaXml } from '../elfaConverter'; | |
| import fs from 'fs'; | |
| import path from 'path'; | |
| import { intersectingStandards } from '../splitShelves'; | |
| import validator from '../../schemas/validator'; | |
| function load(file) { | |
| return fs.readFileSync(path.resolve(__dirname, `fixtures/${file}`), { | |
| encoding: 'utf8', | |
| }); |
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 fs from 'fs'; | |
| function save(fname, document) { | |
| fs.writeFile( | |
| fname, | |
| document, | |
| function(err) { | |
| if (err) { | |
| return console.log(err); | |
| } |
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
| { | |
| "name": "schemas2", | |
| "version": "1.0.0", | |
| "description": "", | |
| "main": "index.js", | |
| "scripts": { | |
| "test": "jest --projects ./src --watch --testPathPattern=.test.js$" | |
| }, | |
| "author": "", | |
| "license": "ISC", |
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
| mvn install:install-file \ | |
| -Dfile=./Downloads/license.jar \ | |
| -DgroupId=com.teamdev.license \ | |
| -DartifactId=license \ | |
| -Dversion=6.23 \ | |
| -Dpackaging=jar \ | |
| -DgeneratePom=true; | |
| mvn install:install-file \ | |
| -Dfile=./Downloads/jxbrowser-6.23-cross-desktop-win_mac_linux/lib/jxbrowser-win32-6.23.jar \ |
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 JSONObject findWall(String match){ | |
| JSONArray walls = getWalls(this.jsonObject); | |
| return StreamSupport.stream(walls.spliterator(), false) | |
| .map(w -> (JSONObject)w) | |
| .filter(w -> w.getString("id").equals(match)) | |
| .findFirst() | |
| .orElseThrow(() -> new IllegalStateException(format("Wall Id %s not found", match))); | |
| } |