This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.nope.maybe; | |
import com.google.cloud.pubsub.v1.AckReplyConsumer; | |
import com.google.cloud.pubsub.v1.MessageReceiver; | |
import com.google.cloud.pubsub.v1.Publisher; | |
import com.google.cloud.pubsub.v1.Subscriber; | |
import com.google.cloud.pubsub.v1.SubscriptionAdminClient; | |
import com.google.cloud.pubsub.v1.TopicAdminClient; | |
import com.google.protobuf.ByteString; | |
import com.google.pubsub.v1.PubsubMessage; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this macro gets all the d20 rolled in a session and spits back what is the avg roll and all rolled d20 results. | |
// // step one, get all the messages with a d20 roll in them. | |
let arrays = {} | |
//let rollArray = [] | |
let rollResult = 0; | |
let rollMessages = game.messages.entities.filter(m => m.roll?.formula?.includes("d20") == true) | |
// // step two, get the rolled dice. | |
for (let message of rollMessages) { // takes an individual message from the rollMessages object. | |
let player = message.user.data.name; | |
for (let dice of message.roll.dice) { // allows us to check when there is multiple different die used in the formula if we are actually checking a d20. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.something.Inner; | |
public class Test { | |
public static void main(String[] args) { | |
var one = new Inner(); | |
var second = new Inner(); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from collections import defaultdict | |
infile = open("5.in") | |
inlines = [l for l in infile] | |
stacks = defaultdict(list) | |
def part1(): | |
boxparsing = True |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from functools import cmp_to_key, cache | |
import math | |
import re | |
import sys | |
filename = "16.in.test" | |
filename = "16.in" | |
OlderNewer