I hereby claim:
- I am qxjit on github.
- I am qxjit (https://keybase.io/qxjit) on keybase.
- I have a public key ASCALGoHUAO-MjrvhbXp6a4UHaKnvz1x62r6Z70FYIh6RAo
To claim this, I am signing this object:
Version 2.9.1, Git revision 409d56031b4240221d656db09b2ba476fe6bb5b1 x86_64 hpack-0.35.0 | |
2022-12-15 11:06:14.483184: [debug] Checking for project config at: /home/qxjit/work/heb/stack-bug-test/stack.yaml | |
2022-12-15 11:06:14.483328: [debug] Loading project config file stack.yaml | |
2022-12-15 11:06:14.486134: [debug] (SQL) SELECT COUNT(*) FROM "last_performed" WHERE ("action"=?) AND ("timestamp">=?); [PersistInt64 1,PersistUTCTime 2022-12-14 17:06:14.486109085 UTC] | |
2022-12-15 11:06:14.486406: [debug] Using package location completions from a lock file | |
2022-12-15 11:06:14.487679: [debug] Loaded snapshot from Pantry database. | |
2022-12-15 11:06:14.644524: [debug] Running hpack on /home/qxjit/work/heb/stack-bug-test/package.yaml | |
2022-12-15 11:06:14.646648: [debug] hpack output unchanged in /home/qxjit/work/heb/stack-bug-test/stack-bug-test.cabal | |
2022-12-15 11:06:14.646781: [debug] Prefetching git repos: [] | |
2022-12-15 11:06:14.646803: [debug] [] |
{- | |
Goal: | |
- Recover from OverpricedDrinkErrors and continue charging for drinks | |
- Simulate a NetworkError | |
- Use finally to ensure the CreditCardAPIConnection is closed in the event | |
of an error | |
-} | |
module StockLiquorT where |
{- | |
Goal: Turn this bar into a liquor stock market | |
## Add Feature | |
- Get prices from the a market | |
- define the market | |
- pass it through everywhere | |
- Adjust the market based on orders |
module RelationalMapExample where | |
import qualified Data.Int as Int | |
import qualified Data.Text as Text | |
import qualified Database.Orville as O | |
data Update key = Update | |
{ updateId :: key | |
, updateLocation :: Text.Text |
I hereby claim:
To claim this, I am signing this object:
data Health = JustFine | LooksDead | IsDead | |
record Character : Type where | |
MkCharacter : (name:String) -> | |
(health:Health) -> | |
Character | |
instance Show Health where | |
show IsDead = "is dead" | |
show LooksDead = "looks dead" |
class Array | |
alias_method :>>, :delete | |
end | |
a = [] | |
a << 1 | |
a << 2 | |
a << 3 |
def foo(nums) | |
h = Hash.new([]) | |
nums.each { |n| h[n] << n } | |
puts h.inspect | |
puts h['foo'] | |
end | |
#YETANOTHERREASONMUTABLESTATEISTERRIBLE |
# ruby -v | |
# ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.8.0] | |
# | |
# note that you shouldn't use class variables anyhow... | |
class Foo | |
@@in_foo = 2 | |
def self.in_foo; @@in_foo; end | |
end |
def sanitize(w,s)s.tr('/*-._\\','').sub(/#{w}/i,'*'*w.size)end |