.
: bármilyen karakter\s
: üres hely karakter (space, tab, új sor)\d
: számjegy\w
: alfanumerikus karakter (angol ABC kis- és nagybetűi, számjegyek és_
)\p{L}
: mint a\w
, de Unicode (ékezetes) karakter is lehet\S
: bármilyen karakter, ami nem üres hely
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 { | |
ChainIds, | |
createOrderERC20, | |
createOrderERC20Signature, | |
OrderERC20 | |
} from '@airswap/utils'; | |
import { Server } from '@airswap/libraries'; | |
const signer = process.env.PRIVATE_KEY; | |
const signerWallet = '0x455777268Bd43C983ba82D9DE4efa0445af99D96'; |
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
// https://gist.github.com/szemate/537792a6cf39008d51192fc8a3034d9a | |
const toppings = [ | |
'ham', | |
'salami', | |
'mushroom', | |
'spinach', | |
'artichoke', | |
]; |
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
// The most common elementary algorithms in JavaScript | |
'use strict'; | |
const testNumbers = [8, 6, 3, 7, 3, 8, 4, 4, 9, 1, 2, 8]; | |
// 1. Search | |
function contains(array, elemToFind) { | |
for (let i = 0; i < array.length; i++) { | |
if (array[i] === elemToFind) { |
Create a script that takes the name of a HTML file as a command line argument, and prints its visible content as plain text to standard output (to the terminal).
- Only the body contents should be printed.
- All HTML tags and indentation should be removed.
- Contents of block elements (
<p>
,<h#>
,<div>
) should be divided by empty lines. - Line breaks (
<br />
) should be respeced. - Only
<br />
elements should be treated as line breaks, new line characters should not.
In this word game points are awarded based on the length of the word and the letters used. The user has to create a word from the letters in their hand. Their hand consists of 7 letters.
Could you create a function which returns the correct scores for the words played? The input is a list of words, and the output is an object where the keys are the words played and the values are the word points.
- Fork https://github.com/szemate/git-branching-demo
- Add the other trainees in the breakout room as collaborators (to the forked repository)
- Confirm yourself as a collaborator
We will discover the Chuck Norris Jokes API. The documentation can be found at https://api.chucknorris.io/.
- Read the "Usage" section and try each endpoint in the browser.
- Retrieve a random Chuck Norris fact related to movies. You will need to combine the data from two endpoints.
NewerOlder