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 priceArray = [] | |
var casePrice = 0 | |
let items = document.getElementsByClassName("unit"); | |
for (var i=0; i<items.length; i++){ | |
let item = items[i]; | |
let price = item.getElementsByClassName("price")[0].children[0].innerText.slice(2).replace(" ",""); | |
priceArray.push(parseInt(price)); | |
} | |
console.warn("All items prices: ", priceArray.sort(function(a, b) {return a - b;})) |
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
.buildSparkSession : create SparkSessionBuilder | |
NON_VOID → val spark = SparkSession.builder().master("local").appName("$expr$").getOrCreate() [IMPORT org.apache.spark.sql.SparkSession] | |
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
pacman -S --needed base-devel git wget yajl | |
cd /tmp | |
git clone https://aur.archlinux.org/package-query.git | |
cd package-query/ | |
makepkg -si | |
cd .. | |
git clone https://aur.archlinux.org/yaourt.git | |
cd yaourt/ | |
makepkg -si | |
cd .. |
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
#!/bin/sh | |
set -e | |
echo "== Installing Palemoon 32 bits on Manjaro Linux 64 bits ==" | |
echo | |
echo "Installing deps (lib32) ..." | |
echo | |
yaourt -S --noconfirm lib32-gtk2 lib32-dbus-glib | |
echo |
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
#!/bin/bash | |
# installation jetbrains | |
j_url="https://data.services.jetbrains.com/products/download" | |
tmp_dir="$HOME/tmp_jb" | |
install_dir="/opt" | |
if [ "$(whoami)" != "root" ] | |
then | |
echo "Sorry, you are not root." | |
exit 1 | |
fi |