Blog

  • high-efficiency-face-detection

    Keras Emotion Detection Model

    Files

    • gen6.2.hdf5 The Keras emotion detection model.
    • data_from_fer_dataset.py Read from fer2013.csv and save images as jpeg files with labels.
    • category_maker.py Make a training compatible file structure and copy image files to corresponding files. Images are classified by “train, validation, test” groups, and futher classified by emotions.
    • train.py Train the model. There are a lot of things to configure, so check the main method to set command line args.
    • test.py Different from the standard way of testing, this gives more information (information on accuracy of individual emotions).
    • preprocessor.py Preprocess images before training. For each input image, add random crop, flip, noise, blur, and changes contrast.
    • /models Contains the base model and the customized model.

    Model

    The test result of this model on FER-2013 dataset. The dataset contains wild faces with emotion labels (harder to interpret). Distribution is a list, show how many images are predicted as each emotion of the 6 emotions. The order of distritution is the same of the order in column label. This result is for generation 5. Generation 6 achieves 68% accuracy.

    label num image accuracy avg confidence distribution
    angry 771 0.4396887159533074 0.43960431218956386 [339, 0, 95, 125, 158, 54]
    disgust 78 0.0 0.0 [40, 0, 8, 4, 18, 8]
    happy 1307 0.8500382555470544 0.8498112596211336 [20, 0, 1111, 68, 77, 31]
    neutral 909 0.6105610561056105 0.6103332342742551 [34, 0, 123, 555, 175, 22]
    sad 908 0.5770925110132159 0.5771962182550251 [60, 0, 112, 176, 524, 36]
    surprised 628 0.7929936305732485 0.7922665224213865 [18, 0, 38, 39, 35, 498]
    total 4601 0.6579004564225168 0.6576980424330509 N/A

    Dataset

    FER-2013 and Ryerson Audio-Visual Database (RAVD). All FER-2013 images are used, and to achieve a balance among all labels, face images croped from RAVD video frames are used to fill the gap.

    Train

    The training takes the pretrained parameters provided by the github repo: https://github.com/atulapra/Emotion-detection. Because we have 6 catergory instead of 7, we discard the parameters of the last layer, and append a Softmax layer with output_dim = 6. The training happens in three stages.

    • In first stage (10 epochs), parameters from the repo are freezed, only new parameters are trained. Learning rate is set to 0.001 and batch size is set to 32.
    • In the second stage (10 epochs), all parameters are trained. Learning rate is set to 0.0001 and batch size is set to 128.
    • In the third stage (10 epochs), all parameters are trained. Batch size is increased significantly to create more stability among batches. Learning rate is set to 0.0001 and batch size is set to 1024.

    Visit original content creator repository
    https://github.com/XueweiWangBrooks/high-efficiency-face-detection

  • webcrypto-liner

    webcrypto-liner

    license npm version test

    NPM

    A polyfill for WebCrypto that “smooths out” the rough-edges in existing User Agent implementations.

    Though WebCrypto is well supported across browsers, several browsers still have prefixed and buggy implementations. Additionally, they do not always support the same algorithms, for example, Edge does not support SHA1 or ECC while both Firefox and Chrome do.

    NOTE: If you are not familiar with how to use the various capabilities of WebCrypto see this great example page.

    Browsers support

    IE / Edge
    Edge
    Firefox
    Firefox
    Chrome
    Chrome
    Safari
    Safari
    last 2 versions last 2 versions last 2 versions last 2 versions

    Information

    webcrypto-liner is a wrapper for WebCrypto designed to address these issues, at the same time it was designed to be modular so that it can also be used for testing the addition of new algorithms to WebCrypto in the future.

    Intentionally webcrypto-liner does not implement any cryptography though it does consume libraries that do. We strongly recommend you read “What’s wrong with in-browser cryptography?” before using this library.

    The libraries webcrypto-liner relies on include:

    Package Description Size Optional
    asmcrypto.js A performant JavaScript implementation of popular cryptographic utilities with performance in mind. 131 KB Yes
    elliptic Fast Elliptic Curve Cryptography in plain javascript 130 KB Yes
    webcrypto-core A input validation layer for WebCrypto polyfills 1 25 KB No

    1 This library is compiled into webcrypto-liner.

    webcrypto-liner will always try to use a native implementation of webcrypto, or a prefixed version of webcrypto, before it falls back to a Javascript implementation of a given algorithm. We have no control over the corresponding implementation and what it does, for example, it may not use window.crypto.getRandomValues even if it is available and the mechanism it uses to gather randomness may be both insecure and weak.

    We have done no security review or take a position on the security of these third-party libraries. YOU HAVE BEEN WARNED.

    To keep webcrypto-liner as small as possible (right now it is ~11kb without dependencies) it was designed to be modular, so if you do not need ECC support, do not include elliptic as a dependency and it will not be loaded.

    If you do not load any of the dependencies that provide cryptographic implementations webcrypto-liner will work as an interoperability layer, very similar to webcrypto-shim.

    webcrypto-liner supports the following algorithms and key lengths:

    Capability Details
    Encryption/Decryption RSA-OAEP, DES-CBC1, DES-EDE3-CBC1, AES-ECB 1, AES-CBC, AES-ECB and AES-GCM
    Sign/Verify RSA-PSS, RSASSA_PKCS1-v1_5 and ECDSA
    Hash SHA-1, and SHA-256, SHA-512
    Derive Key/Bits ECDH, PBKDF2
    Keywrap AES-GCM, AES-CBC, AES-ECB 1, DES-CBC1, DES-EDE3-CBC1
    ECC Curves P-256, P-384, P-521, and K-2562 (secp256k1)
    RSA Key Lengths 1024, 2048, 3072, and 4096
    AES Key Lengths 128, 192 and 256

    1 Mechanism is not defined by the WebCrypto specifications. Use of mechanism in a safe way is hard, it was added for the purpose of enabling interoperability with an existing system. We recommend against its use unless needed for interoperability.

    2 K-256 (secp256k1) curve is not defined by the WebCrypto specifications.

    You can see the webcrypto-liner in use in the pv-webcrypto-tests page.

    Using

    Check the repo or puplic_repo.

    Usage

    $ ghRepo
    

    Or copy the 2 functions and put in your ~/.bash_git (or ~/.bashrc etc).

    Example output

    $ cd /path/to/fooBar
    $ git init && git add . && git commit -m "Initial commit"
    $ ghRepo
    »» Repo name (leave empty for 'fooBar'):
    »» Add a short description: This is my new fooBar script.
    
    :: Your Github username is missing in your config file(s)
    »» Add this to global config (Y/n)?
    »» Enter your Github username: YOUR_USER_NAME
    
    :: Your Github token is missing in your config file(s)
    
        # To generate an access token, visit: <https://github.com/settings/tokens>
        # Token description: ghRepo
    
    »» Add this to global config (Y/n)?
    »» Enter your Github token: ACCESS_TOKEN
    
    »» Creating Github repository: MyScript
    origin	git@github.com:YOUR_USER_NAME/fooBar.git (fetch)
    origin	git@github.com:YOUR_USER_NAME/fooBar.git (push)
    :: Done
    
    »» Pushing code to Github
    :: Done
    
    -----
    
        [!] You should branch off to 'devel', and work from there...
    
        $ git checkout -b devel
    

    The script adds your username and token on first run, but you can set them manually of course:

    git config --global github.username YOUR_USER_NAME
    git config --global github.token ACCESS_TOKEN

    When your Github username and token are already in .gitconfig:

    $ ghRepo
    »» Repo name (leave empty for 'fooBar'):
    »» Add a short description: This is my new fooBar script
    
    »» Creating Github repository: MyScript
    origin	git@github.com:YOUR_USER_NAME/fooBar.git (fetch)
    origin	git@github.com:YOUR_USER_NAME/fooBar.git (push)
    :: Done
    
    »» Pushing code to Github
    :: Done
    
    -----
    
        [!] You should branch off to 'devel', and work from there...
    
        $ git checkout -b devel
    

    Misc

    The script was made and inspired from these pages/posts…

    Contributing

    1. Fork it (https://github.com/iEFdev/ghRepo/fork)
    2. Create your feature branch (git checkout -b feature/fooBar)
    3. Commit your changes (git commit -am 'Add some fooBar')
    4. Push to the branch (git push origin feature/fooBar)
    5. Create a new Pull Request
    Visit original content creator repository https://github.com/iefdev/ghRepo
  • sec

    sec

    security info CLI

    命令

    帮助信息

    $ sec --help
    Secutiry Information Client
    
    Usage:
      sec [flags]
      sec [command]
    
    Available Commands:
      help          Help about any command
      info          Print basic information of a secutiry/stock
      quote         Secutiry quote root Command
      quote-history Print quote history of sec
      search        Search code and name of a secutiry/stock
    
    Flags:
      -D, --debug     Enable debug mode
      -h, --help      help for sec
      -v, --version   Show version information
    
    Use "sec [command] --help" for more information about a command.

    查看行情历史

    $ sec quote-history lxjm --begin 20250601 --end 20250630
    日期       | 名称     | 收盘               | 开盘  | 最高  | 最低  | 成交额  | 成交量   | 振幅 | 换手率 | 证券代码
    2025-06-03 | 立讯精密 | 30.32 -0.08 -0.26% | 30.19 | 30.46 | 30.12 | 17.89 亿 | 59.00 万  | 1.12 | 0.82   | SZ002475
    2025-06-04 | 立讯精密 | 30.8 0.48 1.6%     | 30.38 | 30.98 | 30.3  | 25.79 亿 | 83.92 万  | 2.24 | 1.16   | SZ002475
    2025-06-05 | 立讯精密 | 31.63 0.83 2.7%    | 30.85 | 31.86 | 30.83 | 44.55 亿 | 142.09 万 | 3.34 | 1.96   | SZ002475
    2025-06-06 | 立讯精密 | 31.32 -0.31 -0.98% | 31.41 | 31.55 | 31.17 | 26.73 亿 | 85.34 万  | 1.2  | 1.18   | SZ002475
    2025-06-09 | 立讯精密 | 31.93 0.61 1.9%    | 31.7  | 32.08 | 31.53 | 30.58 亿 | 96.01 万  | 1.76 | 1.33   | SZ002475
    2025-06-10 | 立讯精密 | 31.78 -0.15 -0.47% | 31.79 | 32.2  | 31.35 | 38.11 亿 | 119.82 万 | 2.66 | 1.66   | SZ002475
    2025-06-11 | 立讯精密 | 31.97 0.19 0.6%    | 31.9  | 32.54 | 31.8  | 31.79 亿 | 98.95 万  | 2.33 | 1.37   | SZ002475
    2025-06-12 | 立讯精密 | 31.84 -0.13 -0.41% | 31.65 | 32.16 | 31.55 | 22.92 亿 | 71.83 万  | 1.91 | 0.99   | SZ002475
    2025-06-13 | 立讯精密 | 31.25 -0.59 -1.9%  | 31.6  | 31.98 | 31.2  | 25.17 亿 | 80.06 万  | 2.45 | 1.11   | SZ002475
    2025-06-16 | 立讯精密 | 31.91 0.66 2.1%    | 31.05 | 32.05 | 31.02 | 30.52 亿 | 96.10 万  | 3.3  | 1.33   | SZ002475
    2025-06-17 | 立讯精密 | 32.67 0.76 2.4%    | 31.91 | 32.8  | 31.83 | 49.98 亿 | 153.61 万 | 3.04 | 2.12   | SZ002475
    2025-06-18 | 立讯精密 | 32.94 0.27 0.83%   | 32.41 | 33.05 | 32.4  | 38.87 亿 | 118.32 万 | 1.99 | 1.64   | SZ002475
    2025-06-19 | 立讯精密 | 32.72 -0.22 -0.67% | 32.96 | 33.34 | 32.62 | 34.97 亿 | 106.17 万 | 2.19 | 1.47   | SZ002475
    2025-06-20 | 立讯精密 | 33.21 0.49 1.5%    | 32.65 | 33.49 | 32.59 | 39.50 亿 | 119.14 万 | 2.75 | 1.65   | SZ002475
    2025-06-23 | 立讯精密 | 33.19 -0.02 -0.06% | 32.99 | 33.77 | 32.88 | 31.22 亿 | 93.65 万  | 2.68 | 1.29   | SZ002475
    2025-06-24 | 立讯精密 | 33.23 0.04 0.12%   | 33.3  | 33.56 | 33.01 | 33.37 亿 | 100.54 万 | 1.66 | 1.39   | SZ002475
    2025-06-25 | 立讯精密 | 33.24 0.01 0.03%   | 33.26 | 33.28 | 32.77 | 34.61 亿 | 104.90 万 | 1.53 | 1.45   | SZ002475
    2025-06-26 | 立讯精密 | 32.97 -0.27 -0.81% | 33.24 | 33.55 | 32.95 | 27.86 亿 | 83.77 万  | 1.81 | 1.16   | SZ002475
    2025-06-27 | 立讯精密 | 33.87 0.9 2.7%     | 32.98 | 34.1  | 32.69 | 52.18 亿 | 154.94 万 | 4.28 | 2.14   | SZ002475
    2025-06-30 | 立讯精密 | 34.69 0.82 2.4%    | 33.95 | 34.78 | 33.95 | 43.77 亿 | 126.69 万 | 2.45 | 1.75   | SZ002475

    查看证券基本信息

    $ sec info lxjm -d
    证券代码	SZ002475
    简称历史	立讯精密
    公司名称	立讯精密工业股份有限公司
    上市日期	2010-09-15
    发行价格	28.80
    行业分类	消费电子
    主营业务	公司专注于连接器的研发、生产和销售,产品主要应用于 3C(电脑、通讯、消费电子)、汽车和通讯设备等领域。
    办公地址	广东省东莞市清溪镇北环路 313 号
    公司网址	http://www.luxshare-ict.com
    当前价格	35.77
    市净率 PB	3.60
    市盈率 TTM	85.22
    总市值  	2593.82 亿
    流通市值	2589.12 亿
    
    公告日期   	分红送配           	除权除息日 	股权登记日
    2025-04-26	10 派 2.00 元        	--        	--
    2024-07-05	10 派 2.99 元        	2024-07-11	2024-07-10
    2023-06-09	10 派 1.30 元        	2023-06-15	2023-06-14
    2022-07-07	10 派 1.10 元        	2022-07-13	2022-07-12
    2021-06-30	10 派 1.10 元        	2021-07-08	2021-07-07
    2020-06-10	10 转 3.00 股派 1.20 元	2020-06-17	2020-06-16
    2019-06-28	10 转 3.00 股派 0.50 元	2019-07-05	2019-07-04
    2018-07-10	10 转 3.00 股派 0.60 元	2018-07-17	2018-07-16
    2017-06-28	10 转 5.00 股派 0.80 元	2017-07-06	2017-07-05
    2016-06-03	10 转 5.00 股派 0.90 元	2016-06-13	2016-06-08
    2015-06-12	10 转 5.00 股派 0.80 元	2015-06-19	2015-06-18
    2014-05-15	10 转 4.00 股派 0.70 元	2014-05-21	2014-05-20
    2013-06-15	10 转 5.00 股派 1.00 元	2013-06-21	2013-06-20
    2012-06-02	10 转 4.00 股派 2.00 元	2012-06-08	2012-06-07
    2011-05-20	10 转 5.00 股派 3.00 元	2011-05-26	2011-05-25

    搜索证券

    $ sec search lxzk
    证券代码 	证券名称 	证券类型 	交易所
    SH688047	龙芯中科	stock   	sh
    SZ300112	万讯自控	stock   	sz
    HK02186 	绿叶制药	stock   	hk

    查看行情信息

    $ sec quote lxzk
    时间                	当前价格   	昨收  	今开 	最高   	最低  	成交量   	成交额 	名称     	证券代码
    2024-09-30 15:00:01	119.62 20%	99.68	106 	119.62	104.5	825.67 万	9.38 亿	龙芯中科	SH688047
    $ sec quote lxzk,lxjm,SH600036
    时间                	当前价格   	昨收  	今开  	最高   	最低  	成交量   	成交额  	名称     	证券代码
    2024-09-30 15:00:00	43.46 7.4%	40.48	42   	43.95 	41.01	1.60 亿  	68.42 亿	立讯精密	SZ002475
    2024-09-30 15:00:01	119.62 20%	99.68	106  	119.62	104.5	825.67 万	9.38 亿 	龙芯中科	SH688047
    2024-09-30 15:00:00	37.61 5.6%	35.63	36.35	38    	35.92	2.56 亿  	94.43 亿	招商银行	SH600036

    安装

    进入 releases 页面,下载指定操作系统的二进制文件。

    Mac/Linux 要把二进制文件放在 PATH 路径下。

    Windows 要把二进制文件放在 系统环境变量 下。

    开发计划

    • 基本信息支持打印股东结构
    • 行情信息打印对齐
    • 行情信息实时更新
    • 行情信息蜡烛图

    致谢

    Visit original content creator repository https://github.com/alwqx/sec
  • sec

    sec

    security info CLI

    命令

    帮助信息

    $ sec --help
    Secutiry Information Client
    
    Usage:
      sec [flags]
      sec [command]
    
    Available Commands:
      help          Help about any command
      info          Print basic information of a secutiry/stock
      quote         Secutiry quote root Command
      quote-history Print quote history of sec
      search        Search code and name of a secutiry/stock
    
    Flags:
      -D, --debug     Enable debug mode
      -h, --help      help for sec
      -v, --version   Show version information
    
    Use "sec [command] --help" for more information about a command.

    查看行情历史

    $ sec quote-history lxjm --begin 20250601 --end 20250630
    日期       | 名称     | 收盘               | 开盘  | 最高  | 最低  | 成交额  | 成交量   | 振幅 | 换手率 | 证券代码
    2025-06-03 | 立讯精密 | 30.32 -0.08 -0.26% | 30.19 | 30.46 | 30.12 | 17.89 亿 | 59.00 万  | 1.12 | 0.82   | SZ002475
    2025-06-04 | 立讯精密 | 30.8 0.48 1.6%     | 30.38 | 30.98 | 30.3  | 25.79 亿 | 83.92 万  | 2.24 | 1.16   | SZ002475
    2025-06-05 | 立讯精密 | 31.63 0.83 2.7%    | 30.85 | 31.86 | 30.83 | 44.55 亿 | 142.09 万 | 3.34 | 1.96   | SZ002475
    2025-06-06 | 立讯精密 | 31.32 -0.31 -0.98% | 31.41 | 31.55 | 31.17 | 26.73 亿 | 85.34 万  | 1.2  | 1.18   | SZ002475
    2025-06-09 | 立讯精密 | 31.93 0.61 1.9%    | 31.7  | 32.08 | 31.53 | 30.58 亿 | 96.01 万  | 1.76 | 1.33   | SZ002475
    2025-06-10 | 立讯精密 | 31.78 -0.15 -0.47% | 31.79 | 32.2  | 31.35 | 38.11 亿 | 119.82 万 | 2.66 | 1.66   | SZ002475
    2025-06-11 | 立讯精密 | 31.97 0.19 0.6%    | 31.9  | 32.54 | 31.8  | 31.79 亿 | 98.95 万  | 2.33 | 1.37   | SZ002475
    2025-06-12 | 立讯精密 | 31.84 -0.13 -0.41% | 31.65 | 32.16 | 31.55 | 22.92 亿 | 71.83 万  | 1.91 | 0.99   | SZ002475
    2025-06-13 | 立讯精密 | 31.25 -0.59 -1.9%  | 31.6  | 31.98 | 31.2  | 25.17 亿 | 80.06 万  | 2.45 | 1.11   | SZ002475
    2025-06-16 | 立讯精密 | 31.91 0.66 2.1%    | 31.05 | 32.05 | 31.02 | 30.52 亿 | 96.10 万  | 3.3  | 1.33   | SZ002475
    2025-06-17 | 立讯精密 | 32.67 0.76 2.4%    | 31.91 | 32.8  | 31.83 | 49.98 亿 | 153.61 万 | 3.04 | 2.12   | SZ002475
    2025-06-18 | 立讯精密 | 32.94 0.27 0.83%   | 32.41 | 33.05 | 32.4  | 38.87 亿 | 118.32 万 | 1.99 | 1.64   | SZ002475
    2025-06-19 | 立讯精密 | 32.72 -0.22 -0.67% | 32.96 | 33.34 | 32.62 | 34.97 亿 | 106.17 万 | 2.19 | 1.47   | SZ002475
    2025-06-20 | 立讯精密 | 33.21 0.49 1.5%    | 32.65 | 33.49 | 32.59 | 39.50 亿 | 119.14 万 | 2.75 | 1.65   | SZ002475
    2025-06-23 | 立讯精密 | 33.19 -0.02 -0.06% | 32.99 | 33.77 | 32.88 | 31.22 亿 | 93.65 万  | 2.68 | 1.29   | SZ002475
    2025-06-24 | 立讯精密 | 33.23 0.04 0.12%   | 33.3  | 33.56 | 33.01 | 33.37 亿 | 100.54 万 | 1.66 | 1.39   | SZ002475
    2025-06-25 | 立讯精密 | 33.24 0.01 0.03%   | 33.26 | 33.28 | 32.77 | 34.61 亿 | 104.90 万 | 1.53 | 1.45   | SZ002475
    2025-06-26 | 立讯精密 | 32.97 -0.27 -0.81% | 33.24 | 33.55 | 32.95 | 27.86 亿 | 83.77 万  | 1.81 | 1.16   | SZ002475
    2025-06-27 | 立讯精密 | 33.87 0.9 2.7%     | 32.98 | 34.1  | 32.69 | 52.18 亿 | 154.94 万 | 4.28 | 2.14   | SZ002475
    2025-06-30 | 立讯精密 | 34.69 0.82 2.4%    | 33.95 | 34.78 | 33.95 | 43.77 亿 | 126.69 万 | 2.45 | 1.75   | SZ002475

    查看证券基本信息

    $ sec info lxjm -d
    证券代码	SZ002475
    简称历史	立讯精密
    公司名称	立讯精密工业股份有限公司
    上市日期	2010-09-15
    发行价格	28.80
    行业分类	消费电子
    主营业务	公司专注于连接器的研发、生产和销售,产品主要应用于 3C(电脑、通讯、消费电子)、汽车和通讯设备等领域。
    办公地址	广东省东莞市清溪镇北环路 313 号
    公司网址	http://www.luxshare-ict.com
    当前价格	35.77
    市净率 PB	3.60
    市盈率 TTM	85.22
    总市值  	2593.82 亿
    流通市值	2589.12 亿
    
    公告日期   	分红送配           	除权除息日 	股权登记日
    2025-04-26	10 派 2.00 元        	--        	--
    2024-07-05	10 派 2.99 元        	2024-07-11	2024-07-10
    2023-06-09	10 派 1.30 元        	2023-06-15	2023-06-14
    2022-07-07	10 派 1.10 元        	2022-07-13	2022-07-12
    2021-06-30	10 派 1.10 元        	2021-07-08	2021-07-07
    2020-06-10	10 转 3.00 股派 1.20 元	2020-06-17	2020-06-16
    2019-06-28	10 转 3.00 股派 0.50 元	2019-07-05	2019-07-04
    2018-07-10	10 转 3.00 股派 0.60 元	2018-07-17	2018-07-16
    2017-06-28	10 转 5.00 股派 0.80 元	2017-07-06	2017-07-05
    2016-06-03	10 转 5.00 股派 0.90 元	2016-06-13	2016-06-08
    2015-06-12	10 转 5.00 股派 0.80 元	2015-06-19	2015-06-18
    2014-05-15	10 转 4.00 股派 0.70 元	2014-05-21	2014-05-20
    2013-06-15	10 转 5.00 股派 1.00 元	2013-06-21	2013-06-20
    2012-06-02	10 转 4.00 股派 2.00 元	2012-06-08	2012-06-07
    2011-05-20	10 转 5.00 股派 3.00 元	2011-05-26	2011-05-25

    搜索证券

    $ sec search lxzk
    证券代码 	证券名称 	证券类型 	交易所
    SH688047	龙芯中科	stock   	sh
    SZ300112	万讯自控	stock   	sz
    HK02186 	绿叶制药	stock   	hk

    查看行情信息

    $ sec quote lxzk
    时间                	当前价格   	昨收  	今开 	最高   	最低  	成交量   	成交额 	名称     	证券代码
    2024-09-30 15:00:01	119.62 20%	99.68	106 	119.62	104.5	825.67 万	9.38 亿	龙芯中科	SH688047
    $ sec quote lxzk,lxjm,SH600036
    时间                	当前价格   	昨收  	今开  	最高   	最低  	成交量   	成交额  	名称     	证券代码
    2024-09-30 15:00:00	43.46 7.4%	40.48	42   	43.95 	41.01	1.60 亿  	68.42 亿	立讯精密	SZ002475
    2024-09-30 15:00:01	119.62 20%	99.68	106  	119.62	104.5	825.67 万	9.38 亿 	龙芯中科	SH688047
    2024-09-30 15:00:00	37.61 5.6%	35.63	36.35	38    	35.92	2.56 亿  	94.43 亿	招商银行	SH600036

    安装

    进入 releases 页面,下载指定操作系统的二进制文件。

    Mac/Linux 要把二进制文件放在 PATH 路径下。

    Windows 要把二进制文件放在 系统环境变量 下。

    开发计划

    • 基本信息支持打印股东结构
    • 行情信息打印对齐
    • 行情信息实时更新
    • 行情信息蜡烛图

    致谢

    Visit original content creator repository https://github.com/alwqx/sec
  • elm-integer

    Elm Integer

    A pure Elm library for computing with the integers,
    ℤ = { …, -2, -1, 0, 1, 2, … }.

    What’s available?

    The integers from -10 to 10

    • negativeTen
    • negativeNine
    • negativeEight
    • negativeSeven
    • negativeSix
    • negativeFive
    • negativeFour
    • negativeThree
    • negativeTwo
    • negativeOne
    • zero
    • one
    • two
    • three
    • four
    • five
    • six
    • seven
    • eight
    • nine
    • ten

    Ways to create integers from an Int or a Natural

    • fromSafeInt
    • fromInt
    • fromNatural

    Ways to create integers from a String

    • fromSafeString
    • fromString
    • fromBinaryString
    • fromOctalString
    • fromDecimalString
    • fromHexString
    • fromBaseBString

    Comparison operators

    • ==
    • /=
    • compare
    • isLessThan
    • isLessThanOrEqual
    • isGreaterThan
    • isGreaterThanOrEqual
    • max
    • min

    Predicates for classification

    • isNegative (i.e. < 0)
    • isNonNegative (i.e. >= 0)
    • isZero (i.e. == 0)
    • isNonZero (i.e. /= 0)
    • isPositive (i.e. > 0)
    • isNonPositive (i.e. <= 0)
    • isEven
    • isOdd

    Arithmetic

    • abs
    • negate
    • add
    • sub
    • mul
    • divModBy (Euclidean division)
    • divBy
    • modBy
    • quotRemBy (differs from divModBy in its handling of negative operands)
    • quotBy
    • remBy
    • exp

    Ways to convert to an Int or a Natural

    • toInt
    • toNatural

    N.B. Please remember to use them with caution since they discard information.

    Ways to convert to a String

    • toString (same as toDecimalString)
    • toBinaryString
    • toOctalString
    • toDecimalString
    • toHexString
    • toBaseBString

    Examples

    Calculator – Live Demo

    In the examples/calculator directory you will find the implementation of a simple integer calculator web application. The calculator
    is designed and built to make it easy to test out all the integer input formats, arithmetic operations, and
    integer output formats that’s supported by this library.

    You are able to enter your expression using an S-expression based language. The
    following syntax is supported:

    Expr      ::= Integer
                | '(' 'abs' Expr ')'
                | '(' 'negate' Expr ')'
                | '(' 'add' Expr* ')'
                | '(' 'sub' Expr Expr ')'
                | '(' 'mul' Expr* ')'
                | '(' 'div' Expr Expr ')'
                | '(' 'mod' Expr Expr ')'
                | '(' 'quot' Expr Expr ')'
                | '(' 'rem' Expr Expr ')'
                | '(' 'exp' Expr Expr ')'
    Integer   ::= Sign Magnitude
    Sign      ::= '-'?
    Magnitude ::= ('0b' | '0B') Binary
                | ('0o' | '0O') Octal
                | ('0x' | '0X') Hex
                | Decimal
    Binary    ::= [0-1]+
    Octal     ::= [0-7]+
    Hex       ::= [0-9a-fA-F]+
    Decimal   ::= [0-9]+

    N.B. You must be in the Nix development shell (nix develop) to run the scripts mentioned below.

    Build

    Build the calculator web application.

    $ build-examples-calculator

    Run

    Serve the calculator web application.

    $ serve-examples-calculator

    Then, open http://localhost:8000 in your browser to run the calculator.

    Performance

    TL;DR The performance of this library depends solely on the performance of elm-natural.

    This library is built on elm-natural and each function that is implemented using functions from elm-natural only introduces
    a constant amount of overhead. As a result, the performance characteristics of a given function, f, from this library are
    directly related to
    the performance characteristics of the functions from elm-natural
    that are used to implement f. Practically speaking, this means that any performance gains in elm-natural will necessarily
    lead to corresponding performance gains within elm-integer.

    Resources

    Visit original content creator repository
    https://github.com/dwayne/elm-integer

  • blink-api

    BLINK

    BLINK

    The Blink project 👀 is a Decentralized Communicator, that aims to leverage WEB3 technology and provide easy access and communication with people around the world 🗺️ Written in Rust 🦀, Vue.js+TS, Pinia 🍍 and TailwindCSS 🍃 with the Dfinity CDK for compiling.

    Mockup of Interface

    About

    The goal is to create innovative solutions in digital services, data security, scalability, and interoperability.

    Web3 is an idea for a new iteration of the World Wide Web which incorporates concepts such as decentralization, blockchain technologies, and token-based economics.

    Our challenge is to develop a canister on the Internet Computer that addresses one or more problems described in the contest project. We have chosen to create a DApp with a communication system.

    Requirements (Met!)

    • A public project on GitHub with complete code
    • A detailed project description in the README file
    • A short presentation of the idea (maximum 3 minutes)

    Version

    First release 1.0.0-BETA

    Caution

    Project is still under a development

    If you encounter any bugs or errors, create an issue and head to the Security section

    Navigation

    Section Topic
    Summary Short summary of the project
    Features How to use it?
    Technologies What we’ve used
    Setup How to host one yourself
    Interface Navigation inside the App
    Service What’s happening under the hood?
    Authors See who created this masterpiece
    Contributing Join us and create a better user experience
    License Want to use our codebase for work?
    Security Learn more about our code vulnerabilities

    Features

    How to use it?

    Simply navigate to BLINK, create a blockchain identity, and you’re done! Sending messages is as easy as in any other communicator like Messenger or WhatsApp!

    Secure Messaging

    Send and receive encrypted messages ensuring your communication is private and secure.

    Decentralized System

    Built on the ICP blockchain to ensure secure and reliable communication. Utilizes smart contracts (canisters) for seamless operation.

    User-Friendly UI

    Intuitive and easy-to-use interface for seamless user experience.

    Open Source

    Project is available on GitHub with full source code for transparency and community collab.

    Technologies Icons

    For our backend service we have chosen Rust 🦀 as Message provider with it’s memory safety and blazingly fast 🚀 computing.

    In creating interface TypeScript and Vue.js helped us the most, with addition of TailwindCSS for styling and Vite, Docker for deployment, so we can launch our project to at any time!

    Project setup

    Development

    To start a local canister execution environment and web server processes use dfx start, that enables you to deploy canisters to the local canister execution environment to test your DApps during development.

    dfx start

    Deployment

    Use the dfx deploy command to register, build, and deploy a dapp on the local canister execution environment, on the IC or on a specified testnet. By default, all canisters defined in the project dfx.json configuration file are deployed.

    dfx deploy

    Interface

    This section provides features to search for users, view currently online users, and browse through recent open chats.

    Here, the entire application process takes place, including the exchange of messages and images.

    This section allows users to find new people that want to communicate.

    Warning

    Work-in-progress Feature

    This option enables users to personalize the application’s appearance and behavior to suit their daily usage preferences and needs.

    Warning

    Work-in-progress Feature

    Service

    License

    Storage

    Because blockchain is immutable by default we need to ensure data integrity during contract upgrades by using stable storage. This also allows to reliably save data on the blockchain. Ensures that the contract can always be brought back to a known good state.

    Authors

    botprzemek Braspi ponurakk

    Contributing

    I would like to join this list. How can I help the project?

    We’re currently looking for contributions for the following:

    1. Bug fixes and penetration
    2. Refactors
    3. Configs improvements
    4. Ideas (even if we already have a ton to implement)

    License

    This project is licensed under the Apache License, Version 2.0. Key points are: permissions and conditions of usage. For more detailed information, please refer to the LICENSE file

    Security

    To learn more about project versions see SECURITY.md

    Thanks for reaching the bottom! Go back to the top

    Visit original content creator repository https://github.com/not-byte/blink-api
  • Intune-Custom-Configuration-MacOS-Profile-Custom-Login-Banner

    Intune Custom Configuration MacOS Profile – Custom Login Banner

    Austin Lai | March 12th, 2022


    Intune Custom Configuration MacOS Profile – Custom Login Banner.

    Custom Banner for MacOS, created using Mac Profile Creator.

    Table of Contents

    Custom Banner for MacOS – Intune mobileconfig

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    	<key>PayloadContent</key>
    	<array>
    		<dict>
    			<key>LoginwindowText</key>
    			<string>This system is restricted to authorised users.
    Individuals who attempt unauthorised access will be prosecuted.
    If you are unauthorised, terminate access now.
    By continuing to use this system you indicate your awareness of and consent to these terms and conditions of use.
    
    </string>
    			<key>PayloadDisplayName</key>
    			<string>Loginwindow</string>
    			<key>PayloadIdentifier</key>
    			<string>com.github.erikberglund.ProfileCreator.6B3BFD39-3829-4CFE-ADF8-31901EA7835A.com.apple.loginwindow.F8FF24AB-CB1D-4E3A-8AE7-BCBB07A8D2BF</string>
    			<key>PayloadOrganization</key>
    			<string></string>
    			<key>PayloadType</key>
    			<string>com.apple.loginwindow</string>
    			<key>PayloadUUID</key>
    			<string>F8FF24AB-CB1D-4E3A-8AE7-BCBB07A8D2BF</string>
    			<key>PayloadVersion</key>
    			<integer>1</integer>
    		</dict>
    	</array>
    	<key>PayloadDisplayName</key>
    	<string>Custom Login Banner</string>
    	<key>PayloadIdentifier</key>
    	<string>com.github.erikberglund.ProfileCreator.6B3BFD39-3829-4CFE-ADF8-31901EA7835A</string>
    	<key>PayloadOrganization</key>
    	<string>EVYD</string>
    	<key>PayloadScope</key>
    	<string>System</string>
    	<key>PayloadType</key>
    	<string>Configuration</string>
    	<key>PayloadUUID</key>
    	<string>6B3BFD39-3829-4CFE-ADF8-31901EA7835A</string>
    	<key>PayloadVersion</key>
    	<integer>1</integer>
    </dict>
    </plist>
    


    Do let me know any command or step can be improve or you have any question you can contact me via THM message or write down comment below or via FB

    Visit original content creator repository
    https://github.com/austin-lai/Intune-Custom-Configuration-MacOS-Profile-Custom-Login-Banner

  • QQLogin

    QQLogin

    Author-sun589 GitHub License Language-python

    通过mitmproxy实现通过QQkey理论登录任何网站的小工具
    更多实用功能(如扫码控号,木马拿Key)见我的另一个仓库QQkey_Tool

    免责声明【必读】

    本工具仅供学习和技术研究使用,不得用于任何非法行为,否则后果自负。

    本工具的作者不对本工具的安全性、完整性、可靠性、有效性、正确性或适用性做任何明示或暗示的保证,也不对本工具的使用或滥用造成的任何直接或间接的损失、责任、索赔、要求或诉讼承担任何责任。

    本工具的作者保留随时修改、更新、删除或终止本工具的权利,无需事先通知或承担任何义务。

    本工具的使用者应遵守相关法律法规,尊重QQ的版权和隐私,不得侵犯QQ或其他第三方的合法权益,不得从事任何违法或不道德的行为。

    本工具的使用者在下载、安装、运行或使用本工具时,即表示已阅读并同意本免责声明。如有异议,请立即停止使用本工具,并删除所有相关文件。

    再次声明:本软件仅用于学习用途,请勿用于违法行为 后果自负!


    目录


    使用说明

    Release下载最新版本, 或者下载源代码,装好依赖,使用python QQLogin.py执行
    下载完成后跟着以下步骤走:

    Step 1. 获取目标的Clientkey和QQ号

    开始之前,你先要获取目标的clientkey,推荐使用我的另一个项目QQkey_Tool获取
    clientkey一般是64位,96位和224位,这是要注意的

    Step 2. 运行程序,生成配置,修改配置,运行使用

    准备好key后,接下来就是运行程序了

    注意:程序将默认修改代理,在正常退出时关闭代理,若程序未正常退出,请重新打开并正常关闭

    打开后差不多会像这样:

    image

    这时我们关闭程序,打开config.ini,差不多长这样:

    image

    根据实际情况修改配置后即可正常使用程序了
    视频教程:https://www.123865.com/s/p8FRVv-GiH8

    实际上,他不止能登录QQ音乐,他的灵活性很大,怎么用就看你自己了(百度,网易云,4399……)

    常见问题

    QQKey_Tool的Key解析器区别&原理?

    一般的key解析只能解析腾讯业务(如QQ空间QQ群等)可是遇到QQ音乐/网易云等需要oAuth登录的地方 会因为无法callback导致无法正常登录,本款工具的优势正是本处——通过修改QQ客户端返回的clientkey实现登录任何QQ登录网站

    运行程序后浏览器提示”不安全的连接”

    image

    如图
    出现以上问题为证书未安装成功,需手动安装
    解决方法如下: 1.按下 Win+r

    image

    2.输入以下命令后点确定:

    %userprofile%\.mitmproxy\mitmproxy-ca-cert.cer
    

    image

    然后跟着走:

    image

    image

    image

    image

    安装后就解决了:)

    Visit original content creator repository https://github.com/sun589/QQLogin
  • QQLogin

    QQLogin

    Author-sun589 GitHub License Language-python

    通过mitmproxy实现通过QQkey理论登录任何网站的小工具
    更多实用功能(如扫码控号,木马拿Key)见我的另一个仓库QQkey_Tool

    免责声明【必读】

    本工具仅供学习和技术研究使用,不得用于任何非法行为,否则后果自负。

    本工具的作者不对本工具的安全性、完整性、可靠性、有效性、正确性或适用性做任何明示或暗示的保证,也不对本工具的使用或滥用造成的任何直接或间接的损失、责任、索赔、要求或诉讼承担任何责任。

    本工具的作者保留随时修改、更新、删除或终止本工具的权利,无需事先通知或承担任何义务。

    本工具的使用者应遵守相关法律法规,尊重QQ的版权和隐私,不得侵犯QQ或其他第三方的合法权益,不得从事任何违法或不道德的行为。

    本工具的使用者在下载、安装、运行或使用本工具时,即表示已阅读并同意本免责声明。如有异议,请立即停止使用本工具,并删除所有相关文件。

    再次声明:本软件仅用于学习用途,请勿用于违法行为 后果自负!


    目录


    使用说明

    Release下载最新版本, 或者下载源代码,装好依赖,使用python QQLogin.py执行
    下载完成后跟着以下步骤走:

    Step 1. 获取目标的Clientkey和QQ号

    开始之前,你先要获取目标的clientkey,推荐使用我的另一个项目QQkey_Tool获取
    clientkey一般是64位,96位和224位,这是要注意的

    Step 2. 运行程序,生成配置,修改配置,运行使用

    准备好key后,接下来就是运行程序了

    注意:程序将默认修改代理,在正常退出时关闭代理,若程序未正常退出,请重新打开并正常关闭

    打开后差不多会像这样:

    image

    这时我们关闭程序,打开config.ini,差不多长这样:

    image

    根据实际情况修改配置后即可正常使用程序了
    视频教程:https://www.123865.com/s/p8FRVv-GiH8

    实际上,他不止能登录QQ音乐,他的灵活性很大,怎么用就看你自己了(百度,网易云,4399……)

    常见问题

    QQKey_Tool的Key解析器区别&原理?

    一般的key解析只能解析腾讯业务(如QQ空间QQ群等)可是遇到QQ音乐/网易云等需要oAuth登录的地方 会因为无法callback导致无法正常登录,本款工具的优势正是本处——通过修改QQ客户端返回的clientkey实现登录任何QQ登录网站

    运行程序后浏览器提示”不安全的连接”

    image

    如图
    出现以上问题为证书未安装成功,需手动安装
    解决方法如下: 1.按下 Win+r

    image

    2.输入以下命令后点确定:

    %userprofile%\.mitmproxy\mitmproxy-ca-cert.cer
    

    image

    然后跟着走:

    image

    image

    image

    image

    安装后就解决了:)

    Visit original content creator repository https://github.com/sun589/QQLogin