new M.layer.LayerGroup({
id: <string>,
title: <string>,
collapsed: <boolean>,
zIndex: <number>,
children: >,
This file contains hidden or 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 EventManager { | |
| constructor(keyBindings, options) { | |
| this.pressedKeys = {}; | |
| this.keyBindings = keyBindings; | |
| this.options = options; | |
| if (document) { | |
| document.addEventListener('keydown', e => this.pressedKeys[e.key] = true); | |
| document.addEventListener('keyup', e => this.pressedKeys[e.key] = false); | |
| } |
This file contains hidden or 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 canvas = document.querySelector('#canvas'); | |
| let posX = 0; | |
| let posY = 0; | |
| const ctx = canvas.getContext('2d'); | |
| ctx.fillStyle = 'green'; | |
| ctx.fillRect(posX, posY, 20, 20); | |
| const moveLeft = (ctx) => { | |
| ctx.clearRect(posX, posY, 20, 20); | |
| posX -= 10; |
This file contains hidden or 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 items = [{ v: 4, w: 5 }, { v: 2, w: 3 }, { v: 5, w: 6 }]; | |
| class Bag { | |
| constructor(maximumWeight) { | |
| this.weight = 0; | |
| this.maximumWeight = maximumWeight; | |
| this.value = 0; | |
| this.items = []; | |
| } |
This file contains hidden or 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
| /* | |
| MIT License | |
| Copyright (c) 2020 Egor Nepomnyaschih | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is |
This file contains hidden or 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
| /* | |
| MIT License | |
| Copyright (c) 2020 Egor Nepomnyaschih | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is |
This file contains hidden or 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
| <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?> | |
| <ViewContext version="1.1.0" id="Idea" | |
| xmlns="http://www.opengis.net/context" | |
| xmlns:xlink="http://www.w3.org/1999/xlink" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://www.opengis.net/context | |
| http://schemas.opengis.net/context/1.1.0/context.xsd"> | |
| <General> |
This file contains hidden or 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
| {"lastUpload":"2022-01-26T09:11:47.492Z","extensionVersion":"v3.4.3"} |
This file contains hidden or 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 { useCallback, useEffect, useState } from 'react'; | |
| import { useSetRecoilState } from 'recoil'; | |
| import { useKeycloak } from '@react-keycloak/web'; | |
| import { commonNotification } from './common'; | |
| /** | |
| * Returns the auth info and some auth strategies. | |
| * | |
| */ |
This file contains hidden or 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 os | |
| import pathlib | |
| import shutil | |
| import csv | |
| import json | |
| import urllib.request | |
| # with open("./main.py", mode='r', encoding='utf8') as f: | |
| # for line in f: | |
| # print(line) |