Skip to content

Instantly share code, notes, and snippets.

View Milo123459's full-sized avatar
:bowtie:
coding stuff

Milo Milo123459

:bowtie:
coding stuff
View GitHub Profile
This file has been truncated, but you can view the full file.
Removed items from the public API
=================================
-pub enum serenity::builder::ParseValue
-pub serenity::builder::ParseValue::Everyone
-pub serenity::builder::ParseValue::Roles
-pub serenity::builder::ParseValue::Users
-impl serenity::builder::AddMember
-pub fn serenity::builder::AddMember::access_token(&mut self, access_token: impl alloc::string::ToString) -> &mut Self
-pub fn serenity::builder::AddMember::deafen(&mut self, deafen: bool) -> &mut Self
-pub fn serenity::builder::AddMember::mute(&mut self, mute: bool) -> &mut Self
@Milo123459
Milo123459 / serenity-next.txt
Created May 2, 2023 16:44
changes in the public api
This file has been truncated, but you can view the full file.
Removed items from the public API
=================================
-pub enum serenity::builder::ParseValue
-pub serenity::builder::ParseValue::Everyone
-pub serenity::builder::ParseValue::Roles
-pub serenity::builder::ParseValue::Users
-impl core::clone::Clone for serenity::builder::ParseValue
-pub fn serenity::builder::ParseValue::clone(&self) -> serenity::builder::ParseValue
-impl core::fmt::Debug for serenity::builder::ParseValue
-pub fn serenity::builder::ParseValue::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
@Milo123459
Milo123459 / serenity-next.txt
Created May 2, 2023 16:44
changes in the public api
This file has been truncated, but you can view the full file.
Removed items from the public API
=================================
-pub enum serenity::builder::ParseValue
-pub serenity::builder::ParseValue::Everyone
-pub serenity::builder::ParseValue::Roles
-pub serenity::builder::ParseValue::Users
-impl core::clone::Clone for serenity::builder::ParseValue
-pub fn serenity::builder::ParseValue::clone(&self) -> serenity::builder::ParseValue
-impl core::fmt::Debug for serenity::builder::ParseValue
-pub fn serenity::builder::ParseValue::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result

Terms & Conditions

By downloading or using the app, these terms will automatically apply to you – you should make sure therefore that you read them carefully before using the app. You’re not allowed to copy or modify the app, any part of the app, or our trademarks in any way. You’re not allowed to attempt to extract the source code of the app, and you also shouldn’t try to translate the app into other languages or make derivative versions. The app itself, and all the trademarks, copyright, database rights, and other intellectual property rights related to it, still belong to Milo.

Milo is committed to ensuring that the app is as useful and efficient as possible. For that reason, we reserve the right to make changes to the app or to charge for its services, at any time and for any reason. We will never charge you for the app or its services without making it very clear to you exactly what you’re paying for.

The SushiBot app stores and processes personal data that you have provided to us, to provide my S

Privacy Policy

Milo built the SushiBot app as a Free app. This SERVICE is provided by Milo at no cost and is intended for use as is.

This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.

If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which are accessible at SushiBot unless otherwise defined in this Privacy Policy.

@Milo123459
Milo123459 / test.rs
Created January 21, 2022 22:46
test
struct RenderOrdersInternal<F: FnOnce(&OrderTypes) -> i64> {
function: F,
name: String
}
fn render_orders(orders: OrderTypes) -> Vec<String> {
let keys: Vec<RenderOrdersInternal> = vec![
RenderOrdersInternal {
function: |s| s.salmon_nigiri,
name: "Salmon Nigiri".into()
@Milo123459
Milo123459 / tokio_lib.rs
Created September 11, 2021 13:44
Some Tokio utilities I use
use std::future::Future;
use std::pin::Pin;
use std::task::{Context, Poll};
use tokio::sync::broadcast;
use tokio::time::{sleep, Duration, Instant, Sleep};
pub fn spawn_named<T>(
name: &str,
future: impl std::future::Future<Output = T> + Send + 'static,
) -> tokio::task::JoinHandle<T>
@Milo123459
Milo123459 / contrib.graphql
Created June 18, 2021 11:32
Get contributions
query {
viewer {
repositoriesContributedTo(first: 100, contributionTypes: [COMMIT], privacy: PUBLIC) {
nodes {
nameWithOwner
}
pageInfo {
endCursor
hasNextPage
}
use super::{Context, Module, RootModuleConfig};
use crate::configs::spotify::SpotifyConfig;
use crate::formatter::StringFormatter;
use std::process::{Command, Stdio};
use std::env;
pub fn eval_apple_script(script: &str) -> Option<String> {
let cmd = Command::new("osascript")
.arg("-e")
use super::{Context, Module, RootModuleConfig};
use crate::configs::spotify::SpotifyConfig;
use crate::formatter::StringFormatter;
use std::process::{Command, Stdio};
use std::env;
pub fn eval_apple_script(script: &str) -> Option<String> {
let cmd = Command::new("osascript")
.arg("-e")