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
import ourgit | |
class GitModule(BawtM2): | |
_name = "GitModule" | |
privmsg_re = "^(!|%(nick)s:\s+)git ?([^ ].*)" | |
def handle_privmsg(self, msg): | |
if self.auth(msg.nick): | |
cmd = 'git ' + self.m.group(2) | |
if cmd: | |
self.parent.privmsg(msg.replyto, ourgit.oneline(cmd)) |
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
// | |
// FilePickerPresentedView.swift | |
// flysight-grapher | |
// | |
// Created by richö butts on 7/8/19. | |
// Copyright © 2019 richö butts. All rights reserved. | |
// | |
import Foundation | |
import SwiftUI |
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
fn check_signature(&self, key: &ed25519_dalek::PublicKey) -> StdResult<(), ed25519_dalek::ed25519::Error> { | |
let bytes = self.details_as_proto() | |
.expect("Couldn't serialize details"); | |
let res = key.verify(&bytes, self.signature()); | |
dbg!(&res); | |
return res | |
} |
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
struct Thing { | |
inner: Inner, | |
} | |
struct Inner { | |
name: Composite, | |
} | |
struct Composite { | |
t1: 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
pub enum Thing { | |
Lol { | |
name: String, | |
other: u64, | |
}, | |
Haha { | |
name: String, | |
whatever: i8, | |
} | |
} |
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
impl PathWithTransform for RemotePathDescriptor { | |
type Output = RemotePathDescriptor; | |
fn with_modification<T: AsTransform>(&self, detail: &T) -> RemotePathDescriptor { | |
use RemotePathDescriptor::*; | |
let tweak = detail.as_transform().tweak_name(); | |
match self { | |
dt @ DateTime { .. } => dt.clone(), | |
dn @ DateName { .. } => { | |
let new = dn.clone(); |
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
impl<T: Into<U>, U: DescriptorNameable> DescriptorNameable for T { | |
fn staging_name(&self) -> String { | |
self.into().staging_name() | |
} | |
fn manifest_name(&self) -> String { | |
self.into().manifest_name() | |
} | |
fn remote_path(&self) -> PathBuf { |
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 web_sys; | |
use web_sys::{Request, RequestInit, RequestMode, Response, Element}; | |
mod utils; | |
use wasm_bindgen::prelude::*; | |
use wasm_bindgen::JsCast; | |
use wasm_bindgen_futures::JsFuture; | |
use stokepile_shared::staging::StagedFile; |
NewerOlder