Skip to content

Instantly share code, notes, and snippets.

View lyquangthai1993's full-sized avatar
🏠
Working from universal

Lý Quang Thái lyquangthai1993

🏠
Working from universal
View GitHub Profile
@lyquangthai1993
lyquangthai1993 / logid.cfg
Last active April 18, 2024 03:10
/etc/logid.cfg for MX Master 2s
devices: ({
name: "Wireless Mouse MX Master 2S";
//sudo systemctl enable --now logid
// A lower threshold number makes the wheel switch to free-spin mode
// quicker when scrolling fast.
smartshift: {
on: true;
threshold: 15;
@lyquangthai1993
lyquangthai1993 / 3_action_button.js
Last active November 29, 2023 01:58
logic 3 button action column
function (data, type, row, meta) {
let isDisableAll = false;
let disabledDone = false;
let showDone = true;
let isHideRelease = false;
let classEditButton = 'edit-transaction-action';
if (row['status'] === 'canceled') {
isDisableAll = true;
}

Bitrix learning

Chapter 1 - Overview

Module mẫu

Run index.php DoInstall function

const languages = [
{
name: 'C',
year: 1972
},
{
name: 'C#',
year: 2000
},
{
/**
*
* ServiceEditPage
*
*/
//Lib
import React from "react";
import PropTypes from "prop-types";
import { connect } from "react-redux";
import { createStructuredSelector } from "reselect";
<FieldArray
name='couponList'
render={arrayHelpers => (
<div>
{values.couponList && values.couponList.length > 0 ? (
values.couponList.map((coupon, index) => (
<div key={index}>
<div className="row coupon-item" hidden={coupon.action === 'delete'}>
<div className="col-md-10 details">
{/* COUPON NAME */}