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.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
int busHeight = sc.nextInt(); | |
int numBridges = sc.nextInt(); | |
int bridgeHeight; | |
boolean crash = false; |
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
class Bearing: | |
"""Class with one variable - angle. Intended to store bearings in degrees. | |
Values must be between 0 and 360 inclusive. Included methods - dd2dms(object). | |
Will return the degrees minutes seconds value of the bearing stored in the object. | |
Syntax - Bearing.dd2dms(my_bearing)""" | |
def __init__(self, angle=360): | |
# underscore(_) is used to denote private members | |
self._angle = angle |
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 pathlib import Path | |
import pandas as pd | |
import geopandas as gpd | |
from shapely.geometry import Point | |
def main(): | |
poi = get_poi_csv() | |
# print(poi) |
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
# Title of Script: buffer_all_layers.py | |
# Description: Takes a map document, workspace, and buffer distance. | |
# Creates a buffered layer for each layer in the map document. Names buffered layers as: <original name>_buffer. | |
# If output name already exists, the naming convention | |
# Inserts buffered layer below original layer in TOC. | |
# Map documents with multiple dataframes are allowed, will be processed iteratively. | |
# Author: Stafford Smith | |
# Creation date: 26/10/2019 (SS) | |
# Last update: 30/10/2019 (SS) |
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.util.Scanner; | |
public class Main { | |
public static int getNumberOfMaxParam(int a, int b, int c) { | |
int result = 1; | |
if (b > a) { | |
result = 2; | |
if (c > b) { | |
result = 3; |
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.util.Scanner; | |
class Main { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
int myIntA; | |
int myIntB = sc.nextInt(); | |
boolean ascendingResult = true; | |
boolean descendingResult = true; |
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.util.Scanner; | |
class Main { | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner(System.in); | |
int n = scanner.nextInt(); | |
int m = scanner.nextInt(); | |
int k = scanner.nextInt(); |
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
{ | |
"homeCamera": { | |
"north": -8, | |
"east": 158, | |
"south": -45, | |
"west": 109 | |
}, | |
"catalog": [ | |
{ | |
"type": "3d-tiles", |
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
{ | |
"homeCamera": { | |
"north": -8, | |
"east": 158, | |
"south": -45, | |
"west": 109 | |
}, | |
"catalog": [ | |
{ | |
"type": "esri-featureServer", |
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
{ | |
"homeCamera": { | |
"north": -8, | |
"east": 158, | |
"south": -45, | |
"west": 109 | |
}, | |
"catalog": [ | |
{ | |
"name": "USA States (Ahocevar)", |
OlderNewer