- http://stackoverflow.com/questions/804115 (
rebase
vsmerge
). - https://www.atlassian.com/git/tutorials/merging-vs-rebasing (
rebase
vsmerge
) - https://www.atlassian.com/git/tutorials/undoing-changes/ (
reset
vscheckout
vsrevert
) - http://stackoverflow.com/questions/2221658 (HEAD^ vs HEAD~) (See
git rev-parse
) - http://stackoverflow.com/questions/292357 (
pull
vsfetch
) - http://stackoverflow.com/questions/39651 (
stash
vsbranch
) - http://stackoverflow.com/questions/8358035 (
reset
vscheckout
vsrevert
) - http://stackoverflow.com/questions/5798930 (
git reset
vsgit rm --cached
)
This file contains 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
static removeProductFromWishListHandler(e) { | |
e.stopPropagation(); | |
const target = $(e.currentTarget); | |
const $wishlistList = $(".wishlist-list__body"); | |
const productCode = target.data("product-code"); | |
const $myFavouritesRollover = $(".mini-favourites"); | |
const $myFavouritesSendList = $(".wishlist-send-list"); | |
const emptyWishlistHTML = $("#emptyWishlistPopupTemplate").html(); | |
const $myFavouritesRolloverContainer = $( |
This file contains 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
static $wishlistList = $(".wishlist-list__body"); | |
static $myFavouritesRollover = $(".mini-favourites"); | |
static $myFavouritesSendList = $(".wishlist-send-list"); | |
static emptyWishlistHTML = $("#emptyWishlistPopupTemplate").html(); | |
static $wishlistCount = $("[data-wishlist-item-count]"); | |
static $myFavouritesRolloverContainer = $( | |
".my-favourites-rollover__content", | |
$myFavouritesRollover | |
); |
This file contains 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
export class Strategy { | |
constructor(name, handler) { | |
this._name = name; | |
this._handler = handler; | |
} | |
execute() { | |
this._handler(); | |
} | |
} |
This file contains 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
let assert = require('assert') | |
let CSVImageDownloader = require("./index"); | |
const fs = require('fs'); | |
const path = require('path') | |
describe("CSV Image Downloader", function () { | |
const VALID_FILE = 'data.csv' | |
const INVALID_FILE = 'data2.csv' | |
const VALID_COLUMN = 'IMAGE' | |
let columnValues = [] |
This file contains 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
const puppeteer = require('puppeteer'); | |
const dotenv = require('dotenv'); | |
dotenv.config(); | |
const WAIT_FOR_PAGE = 5000; | |
const DELAY_USER_INPUT = 2000; | |
const DELAY_PW_INPUT = 1000; | |
(async () => { |
This file contains 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
final List<String> categories = source.getCategories().stream() | |
.map(category -> { | |
return getIDService().getItem(category).map(item -> { | |
return item.getId(); | |
}).get(); | |
}).collect(Collectors.toList()); |
This file contains 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
final List<String> categories = source.getCategories().stream() | |
.map(getUniqueItemIdentifierService()::getItemData) | |
.filter(Optional::isPresent) | |
.map(Optional::get) | |
.map(ItemData::getItemId) | |
.collect(Collectors.toList()); |
This file contains 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
return Optional.ofNullable(discounts) | |
.map(Collection::stream) | |
.orElseGet(Stream::empty) | |
.map(DiscountValue::getAppliedValue) | |
.reduce(itemPrice, (price, discount) -> price - discount); |
This file contains 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
final Map<String, String> map = Optional.ofNullable(target.getMap()) | |
.orElseGet(() -> getNewMap(target)); |
OlderNewer