Skip to content

Instantly share code, notes, and snippets.

View joshprice's full-sized avatar
⚗️
Alembic is hiring!

Josh Price joshprice

⚗️
Alembic is hiring!
View GitHub Profile
⚡ hg verify
checking changesets
checking manifests
crosschecking files in changesets and manifests
checking files
data/.TAGS.i@417: missing revlog!
417: empty or missing .TAGS
.TAGS@417: 64e9244a76f6 in manifests not found
.TAGS@442: 28d1b1b79d61 in manifests not found
.TAGS@443: 4a5a2e285db3 in manifests not found
@joshprice
joshprice / array.rb
Created November 13, 2010 02:38
Array#to_hash (why doesn't this exist already?)
class Array
def to_hash
Hash[self]
end
end
### Keybase proof
I hereby claim:
* I am joshprice on github.
* I am joshprice (https://keybase.io/joshprice) on keybase.
* I have a public key whose fingerprint is 08EA 0ACE 6A62 A852 259B 743C 6749 8211 1E02 CE56
To claim this, I am signing this object:
@joshprice
joshprice / property_table.ex
Last active July 1, 2024 10:00
An attempt at a Property Table Ash Data Layer leveraging the ETS data layer by delegation
defmodule Ash.DataLayer.PropertyTable do
require Ash.Query
import Ash.Expr
require Logger
@property_table %Spark.Dsl.Section{
name: :property_table,
describe: """
A section for configuring the property_table data layer
""",
@joshprice
joshprice / main.py
Last active July 2, 2024 05:10
Buildkite Python Test Collector with xdist
def add(a, b):
return a + b
def subtract(a, b):
return a - b