Skip to content

Instantly share code, notes, and snippets.

View alex-popov-tech's full-sized avatar
🏠
Working from home

Olexander Popov alex-popov-tech

🏠
Working from home
View GitHub Profile
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
static uint16_t my_hash_timer;
switch (keycode) {
case S_ESCAPE:
if(record->event.pressed) {
my_hash_timer = timer_read();
register_code(KC_LSFT); // Change the key to be held here
} else {
unregister_code(KC_LSFT); // Change the key that was held here, too!
if (timer_elapsed(my_hash_timer) < TAPPING_TERM) {
> не нужно передавать в функцию данные, которые ей не нужны
( в данном случае в mixin input передается структура данных целая,
тогда как он сам использует только кусочек этой структуры)
-----
Зачем создавать дополнительный слой, преобразовывая данные,
если они все равно кроме представления нигде не будут использоваться.
Цель - писать меньше кода
=====
почему доп слой? это тот же самый код ( мапы, джойны, и все такое ), который лежит
не в самом темплейте, а в контроллере
/jest.conf.js
module.exports = {
....
setupFilesAfterEnv: [
'<rootDir>/.jest/allure.js'
],
....
};
// .jest/allure.js
{"items":[{"address":"someemail1@yahoo.com","code":"554","error":"554 delivery error: dd This user doesn't have a yahoo.com account (someemail1@yahoo.com) [0] - mta1481.mail.ne1.yahoo.com","created_at":"Thu, 07 May 2015 23:07:47 UTC"},{"address":"someemail2@gmail.com","code":"550","error":"550 5.1.1 The email account that you tried to reach does not exist. Please try\n5.1.1 double-checking the recipient's email address for typos or\n5.1.1 unnecessary spaces. Learn more at\n5.1.1 http://support.google.com/mail/bin/answer.py?answer=6596 xv3si12818843vdb.43 - gsmtp","created_at":"Sun, 03 May 2015 13:22:49 UTC"},{"address":"someemail3@domain.com","code":"550","error":"550 No Such User Here","created_at":"Thu, 02 Jul 2015 17:01:31 UTC"},{"address":"someemail4@domain.com","code":"550","error":"550 Administrative prohibition","created_at":"Thu, 21 May 2015 03:30:38 UTC"}],"paging":{"first":"https://api.mailgun.net/v3/mg.yourdomain.com/bounces?limit=100","last":"https://api.mailgun.net/v3/mg.yourdomain.com/bounces?pa
class Guest {
constructor() {
// BEGIN (write your solution here)
// END
this.name = 'Guest';
}
getName() {
return this.name;
}
14:28:47.208 INFO [ActiveSessionFactory.apply] - Capabilities are: {
"browserName": "firefox",
"chromeOptions": {
"prefs": {
"profile.password_manager_enabled": false,
"credentials_enable_service": false,
"password_manager_enabled": false
},
"args": [
"--disable-infobars",

Keybase proof

I hereby claim:

  • I am alex-popov-tech on github.
  • I am alex_popov_tech (https://keybase.io/alex_popov_tech) on keybase.
  • I have a public key ASAvVXvnzvjanRNmogdxpsXuioMjukUo_WSV5UO40ymL2Qo

To claim this, I am signing this object:

import { Browser, have, be, With, perform, take } from 'selenidejs';
class SignInPage {
visit() {
cy.visit('/signin');
}
fillEmail(value) {
const field = cy.get(`[data-testid=SignInEmailField]`);
field.clear();
field.type(value);