I have summarized and compiled a list of React.JS best practices from various sources across the internet.
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
quants = env['stock.quant'].search([]) | |
move_line_ids = [] | |
warning = '' | |
for quant in quants: | |
move_lines = env["stock.move.line"].search([ | |
('product_id', '=', quant.product_id.id), | |
('location_id', '=', quant.location_id.id), | |
('lot_id', '=', quant.lot_id.id), | |
('package_id', '=', quant.package_id.id), |
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
odoo.__DEBUG__.services['web.core'].bus.trigger('barcode_scanned', "BARCODE_VALUE_HERE", $(".o_web_client")[0]); |
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
#!/usr/bin/env python3 | |
# NOTE: btrfs quota must be enabled for this to work: | |
# btrfs quota enable /btrfs/ | |
import os | |
import sys | |
usage = {} | |
for line in os.popen('btrfs qgroup show / --raw', 'r'): | |
# 0/10784 15678980096 557056 | |
if not line.startswith('0/'): |
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
" Vim syntax file | |
" Language: Haxe | |
" Maintainer: Luca Deltodesco <[email protected]> | |
" Last Change: 2013 August 26 | |
if exists("b:current_syntax") | |
finish | |
endif | |
command! -nargs=+ HaxeHiLink hi def link <args> |