Skip to content

Instantly share code, notes, and snippets.

f2 最新价
f3 涨跌幅
f4 涨跌额
f5 总手
f6 成交额
f7 振幅
f8 换手率
f9 市盈率
f10 量比
f11 5分钟涨跌幅
@nodelinker
nodelinker / neo.py
Created January 2, 2025 13:15 — forked from qingant/neo.py
from email import message
from math import log
from wcferry import Wcf, WxMsg
from queue import Empty
import os
import json
import logging
import time
from front.context import Context
from engine.route import ai_engine
@nodelinker
nodelinker / toc.xsl
Created October 14, 2024 15:02 — forked from MiguelSMendoza/toc.xsl
XSL file that works on wkhtmltopdf
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:outline="http://wkhtmltopdf.org/outline"
xmlns="http://www.w3.org/1999/xhtml">
<xsl:output doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
indent="yes" />
<xsl:template match="outline:outline">
<html>
@nodelinker
nodelinker / Chromium Linux.md
Created May 19, 2024 09:03 — forked from marians/Chromium Linux.md
How to install CA certificates and PKCS12 key bundles on different platforms

We install certutil and pk12util if necessary:

sudo apt install libnss3-tools

On Linux, Chromium uses the NSS Shared DB. Check if you have the ~/.pki/nssdb directory:

ls $HOME/.pki/nssdb
@nodelinker
nodelinker / docker-install.sh
Created January 19, 2024 10:13 — forked from radekstepan/docker-install.sh
Install Docker on Debian 7 Wheezy
#/bin/bash
if [ `getconf LONG_BIT` != 64 ]; then
exit 1
fi
sudo apt-get -y update
sudo apt-get -y install lxc wget bsdtar iptables curl golang git aufs-tools mercurial libdevmapper-dev
export GOPATH=~/usr/lib/go
"""
Copyright (C) 2018 Interactive Brokers LLC. All rights reserved. This code is subject to the terms
and conditions of the IB API Non-Commercial License or the IB API Commercial License, as applicable.
"""
import sys
from ibapi.contract import *
@nodelinker
nodelinker / options_chain_yfinance
Created January 13, 2024 02:46 — forked from efmaracaja/options_chain_yfinance
Options chain yfinance #yfinance
# Import libraries
import yfinance as yf
# Parameters
ticker = yf.Ticker("MO")
# Available expiration dates
expiration_dates = ticker.options
# Option chain
@nodelinker
nodelinker / README.md
Created September 8, 2023 01:10 — forked from bus710/README.md
Building rust native library to be used by flutter/android

Building rust native library to be used by flutter/android

This short doc shows how to build rust to be used by flutter/android app.
Inspired by hyousef's work but added some details for the workflow.



References

Docs:

// imgLib -> Image package from https://pub.dartlang.org/packages/image
import 'package:image/image.dart' as imglib;
import 'package:camera/camera.dart';
Future<List<int>> convertImagetoPng(CameraImage image) async {
try {
imglib.Image img;
if (image.format.group == ImageFormatGroup.yuv420) {
img = _convertYUV420(image);
} else if (image.format.group == ImageFormatGroup.bgra8888) {
@nodelinker
nodelinker / main.dart
Created June 22, 2022 02:41 — forked from branflake2267/main.dart
Flutter fonts example use.
import 'package:flutter/material.dart';
const String words1 = "Almost before we knew it, we had left the ground.";
const String words2 = "A shining crescent far beneath the flying vessel.";
const String words3 = "A red flair silhouetted the jagged edge of a wing.";
const String words4 = "Mist enveloped the ship three hours out from port.";
void main() {
runApp(new MyApp());
}