你是研究助理GPT。 你能够根据用户的要求,从学术和专利搜索引擎检索文献或者专利。在检索时,你应当参考下面“构建检索URL的方法”,构建检索URL,用voxscript的GetWebsiteContent功能访问该URL,并取回内容。 你能够帮助用户阅读文献或者专利,向用户解释文献或者专利,帮助用户理解。 你应当使用中文和英文检索,然后用中文回答
This file contains hidden or 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
| function(iter, k) { | |
| var array = []; | |
| var count = 0; | |
| for (var val = iter(); val !== undefined; val = iter()) { | |
| count ++; | |
| if (array.length < k) | |
| array.push_back(val); | |
| else { | |
| var luck = rand() % count; | |
| if (luck < k) { |
This file contains hidden or 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
| %% See LICENSE for licensing information. | |
| -module(cowboy_debug). | |
| -export([onrequest_hook/1]). | |
| -export([onresponse_hook/4]). | |
| onrequest_hook(Req) -> | |
| Method = to_string(extract(cowboy_req:method(Req))), | |
| Path = to_string(extract(cowboy_req:path(Req))), | |
| Params = params_to_string(extract(cowboy_req:qs_vals(Req))), |
This file contains hidden or 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
| %% -*- erlang-indent-level: 4;indent-tabs-mode: nil -*- | |
| %% ex: ts=4 sw=4 et | |
| %% @author Kevin Smith <kevin@opscode.com> | |
| %% @copyright 2011 Opscode, Inc. | |
| -module(example). | |
| -behaviour(gen_server). | |
| -export([start_link/0]). |
This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| """ | |
| @author: goraj | |
| """ | |
| import lightgbm as lgbm | |
| from sklearn.datasets import load_digits | |
| import numpy as np | |
| from sklearn.model_selection import train_test_split | |
| from sklearn.metrics import roc_auc_score |
This file contains hidden or 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
| ## Name of the riak node | |
| -name riak@127.0.0.1 | |
| ## Cookie for distributed erlang. All nodes in the same cluster | |
| ## should use the same cookie or they will not be able to communicate. | |
| -setcookie riak | |
| ## Heartbeat management; auto-restarts VM if it dies or becomes unresponsive | |
| ## (Disabled by default..use with caution!) | |
| ##-heart |
This file contains hidden or 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
| from langchain.callbacks.base import BaseCallbackHandler | |
| import azure.cognitiveservices.speech as speechsdk | |
| import os | |
| import base64 | |
| import time | |
| class StreamDisplayHandler(BaseCallbackHandler): | |
| def __init__(self, container, initial_text="", display_method='markdown'): | |
| self.container = container | |
| self.text = initial_text | |
| self.display_method = display_method |
This file contains hidden or 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
| ################################################################## | |
| # /etc/elasticsearch/elasticsearch.yml | |
| # | |
| # Base configuration for a write heavy cluster | |
| # | |
| # Cluster / Node Basics | |
| cluster.name: logng | |
| # Node can have abritrary attributes we can use for routing |
This file contains hidden or 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
| { | |
| "bracket-pair-colorizer-2.colors": [ | |
| "Gold", | |
| "Orchid", | |
| "LightSkyBlue", | |
| "Salmon", | |
| "LawnGreen", | |
| "DarkOrange", | |
| "Cornsilk" | |
| ], |
Work in progress, I'll write this up properly when I'm done.
Almost all credit goes to @maxogden for putting me on to this and pointing me in the right direction for each of these items.
Prerequisites:
- Raspberry Pi
- Kindle Paperwhite freed from its locked down state (jailbroken) http://www.mobileread.com/forums/showthread.php?t=198446
- You have to downgrade your Kindle to 5.3.1 to install the current jailbreak; that's just a matter of getting the old version image, putting it on your Kindle via USB and telling it to install "upgrade". Then you put in the Jailbreak files, load the ebook and break.
- Your kindle will be quick to detect an upgrade is available so it'll want to upgrade soon afterwards but the jailbreak will last but you have to reinstall the developer certificates so it's a bit of a pain but doable. Find all the instructions on the mobileread.com forums and wiki.
OlderNewer