Convention | Example | General Meaning |
---|---|---|
to_*() |
str::to_string() |
A conversion from one type to another that may have an allocation or computation cost. Usually a Borrowed type to Owned type. |
as_*() |
String::as_str() |
Convert an Owned type into a Borrowed type. It is usually cheap (maybe even zero-cost) to use this function. |
into_*() |
String::into_bytes() |
Consume a type T and convert it into an Owned type U . |
from_*() |
SocketAddr::from_str() |
Create an Owned type from an Owned or Borrowed type. |
*_mut() |
str::split_at_mut() |
Denotes a mutable reference. |
try_*() |
usize::try_from() |
Method will return a Result or Option type. Usually Result . |
with_*() |
Vec::with_capacity() |
A constructor that has one or more parameters used to configure the type. |
#!/usr/bin/env python | |
# -*- mode: python; coding: utf-8 -*- | |
# Last updated: <2015/12/30 20:23:02 +0900> | |
""" | |
dump GIMP Palette (.gpl) format from index color image | |
by mieki256 | |
License: CC0 / Public Domain | |
""" | |
import sys |
This guide is kept up-to-date as Discord and available resources change!
A basic server template is available here
Hello! I'm jagrosh#4824! I'm writing this guide to try to help new server owners set up and grow their servers, which is a commonly-requested topic. It's very easy to go about this the wrong way, so it's best to be prepared and make smart decisions so that your community can flourish!
#[derive(Debug, PartialEq, Eq)] | |
pub struct Aaa { | |
pub field1: usize, | |
pub field2: i32, | |
} | |
impl Default for Aaa { | |
/// ``` | |
/// # use aaa::Aaa; | |
/// # let a = |
This script allow for user specific message deletion from an entire server or a single channel using the browser console. This script uses discord search API and it will only delete messages of a chosen user.
Go to user settings > appearance in discord and enable Developer mode.
Manual (unrecommended) installation of the required content files for OpenRA
If you have trouble with automatic installation, please contact the developers (via IRC, our forum, the webpage comments or our issue tracker) before attempting a manual install.
[package] | |
name = "specs-roguelike" | |
version = "0.1.0" | |
authors = ["youCodeThings"] | |
edition = "2018" | |
[dependencies] | |
tcod = "0.13" | |
specs = "0.14.0" |
This pamphlet is addressed at folks who know Lojban. They've read not just a tutorial like la karda, the Crash Course, or the Wave Lessons, but also CLL and the BPFK Sections, and some of the various notes from many community members.
I am not aiming to teach the syntax of Lojban, but to radically and fundamentally approach the logical foundations of the semantics of Lojban. We will not start with pronouns, but with relations, and we will always keep the mathematics in mind as we progress.
A common theme in the Lojban community is an uncertainty about what words mean. Since words are treacherous and don't have ultimate meaning, and many Lojbanists are philosophers, it is predictably common for such uncer
(def safe-requires | |
"List of namespaces to require and refer when inside user ns at load time. | |
Can be given an initialization body to execute after having been required. | |
To do so, wrap the lib spec in a vector, and all elements after the lib | |
spec vector will be evaled after the lib spec has been required." | |
'[[clojure.repl :as repl :refer (source apropos dir pst doc find-doc)] | |
[clojure.java.javadoc :as javadoc :refer (javadoc)] | |
[clojure.pprint :as pprint :refer (pp pprint)] | |
[clojure.stacktrace :as stacktrace :refer (e)] |
# typed: true | |
# frozen_string_literal: true | |
require('dev') | |
require('fileutils') | |
module Dev | |
module Helpers | |
class APFSVolume | |
extend(T::Sig) |