Skip to content

Instantly share code, notes, and snippets.

const _ = require('lodash')
const flatTemplate = require('./template-flat.json')
const objectTemplate = require('./template-object.json')
function flatten (gadget, parent = '0', result = []) {
if (gadget.children) {
const children = _.flatMap(gadget.children, (child, index) =>
flatten(child, `${parent}.${index}`, result)
)
{
"image": "elasticsearch:7.4.2",
"ports": ["9201:9200", "9301:9300"],
"volumes": ["${KUDE_CONFIG_HOME}/elastic74/data:/usr/share/elasticsearch/data"],
"environment": {
"discovery.type": "single-node",
"xpack.security.enabled": "false"
}
}
RimWorld 1.1.2647 rev894
Verse.Log:Message(String, Boolean)
RimWorld.VersionControl:LogVersionNumber()
Verse.Root:CheckGlobalInit()
Verse.Root:Start()
Verse.Root_Entry:Start()
Tried loading mod with the same packageId multiple times: VanillaExpanded.VFESpacer. Ignoring the duplicates.
C:\Games\Steam\steamapps\workshop\content\294100\2028381079
C:\Games\Steam\steamapps\workshop\content\294100\1836382920
Tried to get a resource "Things/Pawn/Humanlike/Apparel/ShirtBasic/ShirtBasic_Male_north" from a different thread. All resources must be loaded in the main thread.
Verse.Log:Error(String, Boolean)
Verse.ContentFinder`1:Get(String, Boolean)
Verse.Graphic_Multi:Init(GraphicRequest)
Verse.GraphicDatabase:GetInner(GraphicRequest)
Verse.GraphicDatabase:Get(String, Shader, Vector2, Color)
RimWorld.ApparelGraphicRecordGetter:TryGetGraphicApparel(Apparel, BodyTypeDef, ApparelGraphicRecord&)
Verse.PawnGraphicSet:ResolveApparelGraphics()
DubsBadHygiene.<>c__DisplayClass5_0:<MakeNewToils>b__4()
Verse.AI.Toil:Cleanup(Int32, JobDriver)

Keybase proof

I hereby claim:

To claim this, I am signing this object:

defmodule VoteSystem.Methods.MoreThanOnce do
defmodule Vote do
defstruct candidates: [], winner: nil, ballots: [], scorecard: nil
end
defmodule Ballot do
defstruct votes: []
end
def start_link(name, vote) do
@jamesblack
jamesblack / added-functions.c
Created April 2, 2018 20:41
First Kill Check for Group Members
int do_check_first_kill(int killer, int killed);
int do_check_within_range(int player_a, int player_b, int range);
int do_check_first_kill(int killer, int killed)
{
if (!killer) return 0;
if (ch[killed].class && !killed_class(killer,ch[killed].class)) {
do_char_log(killer,0,"You just killed your first %s. Good job.\n",
get_class_name(ch[killed].class));
do_give_exp(killer,do_char_score(killed)*25,0,-1);
@jamesblack
jamesblack / yarn-error.log
Created March 13, 2017 16:10
yarn error installing f and u
Arguments:
/Users/jamesblack/.nvm/versions/node/v7.6.0/bin/node /usr/local/bin/yarn add f u
PATH:
/Users/jamesblack/.nvm/versions/node/v7.6.0/bin:/Users/jamesblack/Code/go/bin:/Users/jamesblack/.bin:/Users/jamesblack/Code/go/bin:/Users/jamesblack/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet
Yarn version:
0.21.3
Node version:
package main
import (
"fmt"
"html/template"
"log"
"net/http"
"github.com/gorilla/mux"
)
Jul 8, 2015 10:31:17 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host} Setting property 'xmlValidation' to 'false' did not find a matching property.
Jul 8, 2015 10:31:17 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host} Setting property 'xmlNamespaceAware' to 'false' did not find a matching property.
Jul 8, 2015 10:31:17 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
Jul 8, 2015 10:31:17 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 399 ms
Jul 8, 2015 10:31:17 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina