Skip to content

Instantly share code, notes, and snippets.

Avatar
🤔
I may be slow to respond.

taryn phrohdoh

🤔
I may be slow to respond.
View GitHub Profile
@dragunoff
dragunoff / launch.json
Created Jun 6, 2020
OpenRA launch configurations for VSCode
View launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch (TD)",
"type": "mono",
"request": "launch",
"program": "${workspaceRoot}/OpenRA.Game.exe",
"cwd": "${workspaceRoot}",
"args": ["Game.Mod=cnc"]
View apfs_volume.rb
# typed: true
# frozen_string_literal: true
require('dev')
require('fileutils')
module Dev
module Helpers
class APFSVolume
extend(T::Sig)
@MostAwesomeDude
MostAwesomeDude / brismu.md
Last active Dec 1, 2020
The relational interpretation of Lojban (la brismu)
View brismu.md

0: Introduction

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

View Cargo.toml
[package]
name = "specs-roguelike"
version = "0.1.0"
authors = ["youCodeThings"]
edition = "2018"
[dependencies]
tcod = "0.13"
specs = "0.14.0"
@orion-v
orion-v / how-to.md
Last active Sep 19, 2021
Delete all messages of an user in a Discord channel or server
View how-to.md

Delete discord user message history

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.

How to use

1. Enable developer mode in discord

Go to user settings > appearance in discord and enable Developer mode.

2. Copy and paste the script to a file so you can change the server and author ids.

3. Replace the server and author ids with your own.

@Kerollmops
Kerollmops / Aaa.rs
Last active Nov 10, 2017
Little hack to display default values in the doc. (don't forget to `cargo test --doc`)
View Aaa.rs
#[derive(Debug, PartialEq, Eq)]
pub struct Aaa {
pub field1: usize,
pub field2: i32,
}
impl Default for Aaa {
/// ```
/// # use aaa::Aaa;
/// # let a =
@jagrosh
jagrosh / Growing A Discord Server.md
Last active Sep 4, 2021
Tips for creating and growing a new Discord server
View Growing A Discord Server.md

This guide is kept up-to-date as Discord and available resources change!
A basic server template is available here

Creating and Growing a Discord Server

logo

Introduction

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!

Background

@hjr3
hjr3 / rust-naming-conventions.md
Created Oct 20, 2016
Rust Naming Conventions
View rust-naming-conventions.md
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.
@mieki256
mieki256 / image2gpl.py
Created Dec 30, 2015
インデックスカラー画像のパレット値をGIMP Palette(.gpl)に変換
View image2gpl.py
#!/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
View debug.h
#pragma once
#include <memory>
#include <iostream>
#include <string>
#include <cstdio>
using namespace std;
/// Cast an FString to char * for debugging purposes