Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
from langchain.document_loaders import TextLoader | |
from langchain.embeddings.openai import OpenAIEmbeddings | |
from langchain.text_splitter import CharacterTextSplitter | |
from langchain.vectorstores import FAISS | |
from langchain.document_loaders import UnstructuredMarkdownLoader | |
from langchain.document_loaders import DirectoryLoader | |
from langchain.chat_models.fireworks import ChatFireworks | |
from langchain.agents.agent_toolkits import ( | |
create_vectorstore_agent, |
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
|
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
- target: garden/vera-journal | |
url: https://github.com/codegod100/daily.git | |
format: foam | |
- target: garden/neil | |
url: https://gitlab.com/ngm/commonplace-agora.git | |
edit: https://gitlab.com/ngm/commonplace-agora/-/edit/master/{path} | |
web: https://commonplace.doubleloop.net/{slug} | |
format: ox-agora | |
- target: garden/flancian | |
url: https://github.com/flancian/garden.git |
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
use git2::{RemoteCallbacks, Repository}; | |
use simple_logger::SimpleLogger; | |
use std::{env, path::Path}; | |
struct User { | |
name: String, | |
remote: String, | |
} | |
fn main() { |
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
#![deny(warnings)] | |
use std::{process, thread}; | |
fn main() { | |
let mut threads = vec![]; | |
let str = std::fs::read_to_string("/proc/sys/kernel/threads-max").unwrap(); | |
let maxt: i32 = str.trim().parse().unwrap(); | |
let mut count = 0; | |
for x in 1..maxt { | |
let b = thread::Builder::new(); | |
let r = b.spawn(move || { |
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
use simple_logger::SimpleLogger; | |
use serde::{Deserialize,Serialize}; | |
use serde_json::{ json}; | |
#[derive(Debug)] | |
enum Message { | |
Ping, | |
Command { name: String, arg: String }, | |
} |
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
- target: garden/vera | |
url: https://git.anagora.org/vera/notes.git | |
format: foam |
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
- target: garden/bmann | |
protocol: git | |
url: https://github.com/bmann/bmcgarden.git | |
format: jekyll |
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
function church(n){ | |
return function(f){ | |
return function(x){ | |
let res = x | |
for(let i=0;i<n;i++){ | |
res = f(res) | |
} | |
return res | |
} | |
} |