Skip to content

Instantly share code, notes, and snippets.

richö butts richo

Block or report user

Report or block richo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View mountv2.stl
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View serialize.rs
use std::io::{self, Read};
use protobuf;
use rocket::{Request, Data, Outcome::*};
use rocket::data::{FromDataSimple, Outcome, Transform, Transformed};
use rocket::http::Status;
// We have to involve a local trait for *reasons*
trait FromDataMarker {}
@richo
richo / .gitignore
Last active Feb 13, 2020
cbindgen thingy
View .gitignore
/target
**/*.rs.bk
Cargo.lock
View AboutView.swift
//
// SettingsView.swift
// flysight-grapher
//
// Created by richö butts on 7/11/19.
// Copyright © 2019 richö butts. All rights reserved.
//
import Foundation
import SwiftUI
View UIKitExample.swift
//
// ViewController.swift
// test
//
// Created by richö butts on 7/8/19.
// Copyright © 2019 richö butts. All rights reserved.
//
import UIKit
import MobileCoreServices
View FilePickerPresentedView.swift
//
// FilePickerPresentedView.swift
// flysight-grapher
//
// Created by richö butts on 7/8/19.
// Copyright © 2019 richö butts. All rights reserved.
//
import Foundation
import SwiftUI
View main.rs
use std::env;
use std::io::{self, Write};
use std::process;
fn embiggen_word(word: String) -> String {
word.chars().map(|c| {
match c {
'!' => ":exclamation:".to_string(),
'?' => ":question:".to_string(),
'0' => ":zero:".to_string(),
View embiggen.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import string
replacements = {
'!': ':exclamation:',
'?': ':question:',
'0': ':zero:',
'1': ':one:',
View error.txt
Compiling archiver v0.1.0 (file:///Users/richo/code/ext/archiver)
error[E0495]: cannot infer an appropriate lifetime for lifetime parameter in generic type due to conflicting requirements
--> src/ptp_device.rs:57:5
|
57 | fn next(&mut self) -> Option<GoproFile> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: first, the lifetime cannot outlive the lifetime 'c as defined on the impl at 54:1...
--> src/ptp_device.rs:54:1
|
You can’t perform that action at this time.