Skip to content

Instantly share code, notes, and snippets.

@hibeekaey
hibeekaey / variables.tf
Last active May 4, 2024 23:58
Repository for managing GitHub with Terraform
variable "token" {
type = string
description = "GitHub personal access token"
}
variable "repositories" {
type = map(object({
name = string
description = string
visibility = string
import wx
class CustomFrame(wx.Frame):
def __init__(self, parent, title):
super(CustomFrame, self).__init__(parent, title=title, size=(600, 400), style=wx.DEFAULT_FRAME_STYLE)
self.SetBackgroundColour(wx.Colour(255, 255, 255)) # Set background color
self.corner_image = wx.Image("corner.png", wx.BITMAP_TYPE_PNG).ConvertToBitmap()
self.top_image = wx.Image("top.png", wx.BITMAP_TYPE_PNG).ConvertToBitmap()
self.bottom_image = wx.Image("bottom.png", wx.BITMAP_TYPE_PNG).ConvertToBitmap()
self.left_image = wx.Image("left.png", wx.BITMAP_TYPE_PNG).ConvertToBitmap()
//ref: https://codereview.stackexchange.com/q/199771
solver=LAMBDA(grid,
LET(numbers,SEQUENCE(9),
numgrid,SEQUENCE(9,9,0),
pos,XMATCH(0,TOCOL(grid*1))-1,
IF(ISNA(pos),
grid,
LET(i,INT(pos/9),
j,MOD(pos,9),
@ignamiranda
ignamiranda / Ironsworn Assets.md
Last active May 4, 2024 23:53
All the Ironsworn assets in screen-readable Markdown format

Ironsworn Assets

Here are all the Ironsworn assets in Markdown format for those who read from a screen or prefer to keep their character information in a text document. I've included the 3 New Official-ish Assets created by Shawn Tomkin that aren't in the main Ironsworn PDF.

License:

This work is based on Ironsworn (found at www.ironswornrpg.com), created by Shawn Tomkin, and licensed for our use under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International license (creativecommons.org/licenses/by-nc-sa/4.0/).

Table of Contents

@CalfordMath
CalfordMath / Sudoku Solver - Excel Formulas Only, (No VBA)
Last active May 4, 2024 23:51
A Lambda Function with nested recursion that receives a 9x9 puzzle range (i.e. B2:J10) and outputs a 9x9 spilled range with the completed puzzle. No VBA. Just formulas. No specific cell references beyond the input range. It takes about 3 minutes and 3 seconds to solve the world's current hardest sudoku puzzle on an average fast computer. It inco…
Sudoku = LAMBDA(Puzzle,
LET(
Options, MAKEARRAY(27, 27, LAMBDA(r, c, MOD(c - 1, 3) + 1 + 3 * MOD(r - 1, 3))),
numgrid, SEQUENCE(9, 9, 1),
UpdatedPuzzle, LET(
ApplyLogic, LAMBDA(ApplyLogic, Puzzle, Options,
LET(
Candidates, MAKEARRAY(
27,
27,
solver=LAMBDA(grid,
LET(
numbers, SEQUENCE(9),
numgrid, SEQUENCE(9,9,0),
vgrid, TOCOL(grid*1),
pos, XMATCH(0,vgrid)-1,
IF(
ISNA(pos), grid,
LET(
i,INT(pos/9),
import wx
class CustomFrame(wx.Frame):
def __init__(self, parent, title, image_dimensions):
super(CustomFrame, self).__init__(parent, title=title, style=wx.NO_BORDER)
self.SetBackgroundColour(wx.Colour(255, 255, 255)) # Set background color
# Load custom window images
self.SetIcon(wx.Icon("window_icon.ico", wx.BITMAP_TYPE_ICO))
self.frame_images = {}
import wx
class CustomFrame(wx.Frame):
def __init__(self, parent, title):
super(CustomFrame, self).__init__(parent, title=title, size=(600, 400), style=wx.DEFAULT_FRAME_STYLE)
self.SetBackgroundColour(wx.Colour(255, 255, 255)) # Set background color
self.Bind(wx.EVT_PAINT, self.on_paint)
def on_paint(self, event):
dc = wx.PaintDC(self)
import wx
class CustomFrame(wx.Frame):
def __init__(self, parent, title):
super(CustomFrame, self).__init__(parent, title=title, size=(600, 400), style=wx.DEFAULT_FRAME_STYLE)
self.SetBackgroundColour(wx.Colour(255, 255, 255)) # Set background color
self.title_bar_image = wx.Image("title_bar.png", wx.BITMAP_TYPE_PNG).ConvertToBitmap()
self.close_button_image = wx.Image("close_button.png", wx.BITMAP_TYPE_PNG).ConvertToBitmap()
self.Bind(wx.EVT_PAINT, self.on_paint)
import wx
class CustomFrame(wx.Frame):
def __init__(self, parent, title):
super(CustomFrame, self).__init__(parent, title=title, size=(600, 400), style=wx.DEFAULT_FRAME_STYLE)
self.SetBackgroundColour(wx.Colour(255, 255, 255)) # Set background color
self.corner_image = wx.Image("corner.png", wx.BITMAP_TYPE_PNG).ConvertToBitmap()
self.top_bottom_image = wx.Image("top_bottom.png", wx.BITMAP_TYPE_PNG).ConvertToBitmap()
self.left_right_image = wx.Image("left_right.png", wx.BITMAP_TYPE_PNG).ConvertToBitmap()
self.Bind(wx.EVT_PAINT, self.on_paint)