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 | |
# Location for ESXi ISOs | |
ESXI_BUILDS_LOCAL_PATH=/home/esxi_builds | |
# FTP root dir | |
FTP_ROOT=/var/ftp | |
# Functions to parse hook_data | |
. $(dirname $0)/hook_functions.sh |
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
from webdriver_manager.chrome import ChromeDriverManager | |
from selenium import webdriver | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support.ui import Select | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
import atexit | |
BASEURL = "https://leetcode.com" | |
TOP_PROBLEMSET_URL = "/problemset/top-interview-questions/?difficulty=" |
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
# Ensure following script in executed on remote host first | |
# https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1 | |
# Get the URL of the latest binaries from here | |
# https://github.com/billziss-gh/sshfs-win/releases | |
# https://github.com/billziss-gh/winfsp/releases | |
$winfsp_url = "https://github.com/billziss-gh/winfsp/releases/download/v1.7B2/winfsp-1.7.20123.msi" | |
$winfsp_msi = "winfsp-1.7.20123.msi" | |
$sshfs_url = "https://github.com/billziss-gh/sshfs-win/releases/download/v3.5.20024/sshfs-win-3.5.20024-x64.msi" |
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
Additional Questions from Career-cup | |
Company selected Google, | |
Sorted by most comments | |
1.Partition integer array respect to zero, i.e. negative ... 0 ... positive, keep relative order | |
E.g. -1 1 3 -2 2 => -1 -2 1 3 2. | |
2. Search in 2D matrix, | |
Given each row and column sorted, or given for each (i,j) A[i][j] < A[i][j+1] & A[i][j] < A[i+1][j] |
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
package com.example.jsontoavro; | |
import org.apache.avro.AvroTypeException; | |
import org.apache.avro.Schema; | |
import org.apache.avro.generic.GenericRecord; | |
import org.apache.avro.io.DatumReader; | |
import org.apache.avro.io.DatumWriter; | |
import org.apache.avro.io.DecoderFactory; | |
import org.apache.avro.io.EncoderFactory; | |
import org.apache.avro.io.JsonDecoder; |