Skip to content

Instantly share code, notes, and snippets.

View Gaelan's full-sized avatar
🏳️‍⚧️

Gaelan Steele Gaelan

🏳️‍⚧️
View GitHub Profile
@Gaelan
Gaelan / foo.rb
Created September 16, 2013 23:14
Experimenting with ideas for documentation syntaxes for Ruby.
def do_stuff foo, # Stuff required to the other stuff. You know, the stuff that
# this method does.
#
barbaz # Some other awesome arg. Bet it's used for something!
# Insert code here
end
body
div(someattr=somefunction())
@Gaelan
Gaelan / keybase.md
Last active February 5, 2016 01:40

Keybase proof

I hereby claim:

  • I am gaelan on github.
  • I am gaelan (https://keybase.io/gaelan) on keybase.
  • I have a public key ASBQJOxK1ObrOqoEFKUuwh56-f6Vnw4eJ6VyVLirIxiW7go

To claim this, I am signing this object:

This file has been truncated, but you can view the full file.
FTB Launcher logs:
[21:56:58] [DEBUG] Main.main:162: Launcher arguments: []
[21:56:59] [DEBUG] Main.main:173: FTB Launcher CI Build #: 298, Git SHA: 17408a51538d
[21:56:59] [INFO] JGoogleAnalyticsTracker$2.run:484: AnalyticsBackgroundThread started
[21:56:59] [INFO] MainHelpers.printInfo:39: FTBLaunch starting up (version 1.4.5 Build: 10405)
[21:56:59] [DEBUG] MainHelpers.printInfo:40: System's default JVM: (This is not always used to launch MC)
[21:56:59] [DEBUG] MainHelpers.printInfo:41: Java version: 1.8.0_31
[21:56:59] [DEBUG] MainHelpers.printInfo:42: Java vendor: Oracle Corporation
[21:56:59] [DEBUG] MainHelpers.printInfo:43: Java home: /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home
[21:56:59] [DEBUG] MainHelpers.printInfo:44: Java specification: Java Virtual Machine Specification version: 1.8 by Oracle Corporation
@Gaelan
Gaelan / macros.md
Last active September 21, 2015 14:37

This one might be waaaaaay out of scope, but I think it is worth proposing. The idea here is to add support for macros, functions that run at compile time, taking one or more AST nodes and returning an AST node or array of AST nodes. Examples/use cases: (Syntax off the top of my head, open to better ideas)

Interface-Based Validation

// validation.macros.ts
function interfaceToValidatorCreator(interface: ts.InterfaceDeclaration): ts.Statement {
    // Would return something like "const [interface.name]Validator = new Validator({...});",
    // using types from the interface
}
class Array
def by
inject Hash.new([]) { |obj, hash| hash[yield obj] << obj }
end
end
---- Minecraft Crash Report ----
WARNING: coremods are present:
MovingWorldCoreMod (movingworld-1.10.2-0006-full.jar)
CCLCorePlugin (CodeChickenLib-1.10.2-2.5.1.185-universal.jar)
IC2core (industrialcraft-2-2.6.128-ex110.jar)
Do not report to Forge! Remove FoamFix (or replace with FoamFix-Lawful) and try again. (foamfix-0.4.2-anarchy.jar)
ArsMagica2-Preloader (ArsMagica2-1.10.2-1.5.0-15.jar)
ChiselCorePlugin (Chisel-MC1.10.2-0.0.7.7.jar)
AppEngCore (appliedenergistics2-rv4-alpha-11.jar)
[14:58:03] [Client thread/ERROR]: ########## GL ERROR ##########
[14:58:03] [Client thread/ERROR]: @ Pre startup
[14:58:03] [Client thread/ERROR]: 1281: Invalid value
[14:58:03] [Thread-11/INFO]: OpenAL initialized.
[14:58:03] [Sound Library Loader/INFO]: Sound engine started
[14:58:07] [Client thread/INFO] [FML]: OBJLoader.MaterialLibrary: key 'Ns' (model: 'aquamunda:models/block/boiler.mtl') is not currently supported, skipping
[14:58:07] [Client thread/INFO] [FML]: OBJModel: A color has already been defined for material 'None' in 'aquamunda:models/block/boiler.mtl'. The color defined by key 'Ks' will not be applied!
[14:58:07] [Client thread/INFO] [FML]: OBJLoader.MaterialLibrary: key 'illum' (model: 'aquamunda:models/block/boiler.mtl') is not currently supported, skipping
[14:58:07] [Client thread/INFO] [FML]: OBJLoader.Parser: command 's' (model: 'aquamunda:models/block/boiler.obj') is not currently supported, skipping. Line: 38 's off'
[14:58:07] [Client thread/INFO] [FML]: OBJLoader.MaterialLibrary: ke
- !event/monthly_tick
date: 2018-3-1 00:00:00 +0000
- !event/pend
date: 2018-3-1 4:14:00 -0800
actor: Corona
- !event/weekly_tick
date: 2018-3-5 00:00:00 +0000
- !event/destroy
date: 2018-3-4 17:55:00 -0800
actor: Kenyon
using System;
using System.Diagnostics.CodeAnalysis;
using Harmony;
using HugsLib;
using JetBrains.Annotations;
using RimWorld;
using Verse;
namespace MorePawns
{