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
import * as React from 'react'; | |
import ReactDOM from "react-dom"; | |
class Child extends React.Component { | |
render() { | |
return <div>Hi!</div> | |
} | |
} | |
class Parent extends React.Component { |
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
_brave_path = r'C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe' | |
def get_brave_tor_driver(): | |
option = webdriver.ChromeOptions() | |
option.binary_location = _brave_path | |
option.add_argument("--tor") # Launch in Tor mode | |
driver = webdriver.Chrome(executable_path=_chrome_driver_path, chrome_options=option) | |
return driver |
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
import java.io.*; | |
import java.util.*; | |
public class Solution { | |
static Random rnd; | |
//True - if not wall. False - if wall. | |
static boolean[] directions = {false,false,false,false}; | |
static String line; | |
static Scanner s = new Scanner(System.in); |
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
abstract class MySearch { | |
static int lastPivot = -1; | |
/** | |
* THIS IS MY ALGORITHM it might not be efficient but I didn't use external sources! :D | |
* @param arr <b>MUST BE SORTED ARRAY!</b> | |
* @return Output is POSITION - which the value is less than the position+1. Returns -1 if the number is | |
* minimal from all the values of the array. | |
*/ |
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
import java.io.*; | |
import java.util.*; | |
public class Solution { | |
public static void main(String[] args) { | |
//initializing regular code... | |
Scanner s = new Scanner(System.in); | |
int n = s.nextInt(); |