Skip to content

Instantly share code, notes, and snippets.

@gitchs
gitchs / fintools.py
Last active March 17, 2021 07:00
从雅虎金融获取行情历史数据
#!/usr/bin/env python3
from argparse import ArgumentParser
import datetime
import requests
class FinTools:
INTERVAL_CANDIDATES = ['1m', '2m', '5m', '15m', '30m', '60m', '90m', '1h', '1d', '5d', '1wk', '1mo', '3mo']
def format_code(self, code_):
@gitchs
gitchs / calendar-dl.py
Created March 12, 2021 03:21
下载A股交易日历
#!/usr/bin/env python3
"""
从深圳交易所官网下载交易日历
深圳交易所:http://www.szse.cn/aboutus/calendar/
{
"zrxh": 2, -- 意义不明
"jybz": "1", -- 是否交易日,1是,0否;类型是str
"jyrq": "2021-03-01" -- 日历日期
}
#!/usr/bin/env python3
from argparse import ArgumentParser
import logging
from pathlib import Path
import http.server
import socketserver
from uuid import uuid4
from functools import wraps
THIS_DIR = Path(__file__).parent.absolute()
#!/bin/bash
export WEBDAV_URL_PREFIX="${WEBDAV_URL_PREFIX:=https://webdav.yandex.com/}"
export AUTHENTICATION=${AUTHENTICATION:=${__YANDEX_AUTHENTICATION}}
if [[ "${#DEBUG}" -gt "0" ]];then
set -x
fi
function cmdList() {
diff --git a/chrome/browser/ui/extensions/extension_message_bubble_factory.cc b/chrome/browser/ui/extensions/extension_message_bubble_factory.cc
index 949bd68..fe53055 100644
--- a/chrome/browser/ui/extensions/extension_message_bubble_factory.cc
+++ b/chrome/browser/ui/extensions/extension_message_bubble_factory.cc
@@ -35,24 +35,11 @@ base::LazyInstance<std::set<Profile*> > g_profiles_evaluated =
ExtensionMessageBubbleFactory::OverrideForTesting g_override_for_testing =
ExtensionMessageBubbleFactory::NO_OVERRIDE;
-const char kEnableDevModeWarningExperimentName[] =
- "ExtensionDeveloperModeWarning";