Skip to content

Instantly share code, notes, and snippets.

View ar1a's full-sized avatar

Aria Edmonds ar1a

View GitHub Profile
@ar1a
ar1a / comp.cfg
Created October 1, 2023 07:22
Dathost cs2 configs
// >>> DatHost Competitive Config 0.1 <<< //
// Reset from Practice to Competitive
sv_cheats "false" // Disable cheats
mp_ct_default_grenades "" // Spawn CTs without grenades
mp_t_default_grenades "" // Spawn Ts without grenades
sv_showimpacts "0" // Don't show bullet impacts
sv_falldamage_scale "1" // Enable fall damage
sv_full_alltalk "0" // Disable voice chat with anyone
"use strict";
const values = {
woodFoundation: {
logs: 1,
planks: 6,
nails: 20
},
woodWall: {
logs: 1,
@ar1a
ar1a / sort.hs
Created April 11, 2019 06:12
Merge sorting and Insertion sorting in Haskell
module Main where
main :: IO ()
main = pure ()
-- Source: https://youtu.be/PV8_scc1s3g
-------------------------------------------------------------------------------
-- insertion sort --
-------------------------------------------------------------------------------
@ar1a
ar1a / leatherworking.md
Last active March 21, 2019 14:11
ROI on Leatherworking shuffling

Leatherworking

Start with 9000g (10000g)

Make 80 green bracers - 6,028g estimated; 3,296g actual

Got 11 blue bracers

@ar1a
ar1a / barrier.conf
Last active December 16, 2019 13:51
section: screens
uranium:
niobium:
end
section: links
uranium:
right = niobium
niobium:
left = uranium
@ar1a
ar1a / gist:bfaf3cf5e1bbdf482bad74aea7c8be4c
Created January 27, 2019 12:00
How to enable focus switching in weechat
/set weechat.startup.command_after_plugins "/print -stdout \033[?1004h\n"
/key bind meta2-O /input set_unread
/key unbind meta2-I
/save
fac :: Int -> Int
fac = product . flip take [1..]
pascals :: Int -> [Int]
pascals n =
map (\r -> fac n `div` (fac r * fac (n - r))) [0..n]
main :: IO ()
main = do
input <- getLine
@ar1a
ar1a / fizzbuzz.hs
Last active January 25, 2019 00:07
module Main where
import Data.Maybe (fromMaybe)
main :: IO ()
main = print $ map fizzbuzz [1..110]
fizzbuzz :: Int -> String
fizzbuzz n = fromMaybe (show n) $ (fizz <> buzz <> diffie) n
@ar1a
ar1a / aoc1.5.hs
Last active January 23, 2019 00:36
aoc1 :: IO ()
aoc1 = do
-- part1 <- sum . getInput <$> getContents
part2 <- flip dupSum [] . getInput <$> getContents
print part2
pure ()
dupSum :: [Integer] -> [Integer] -> Integer
dupSum (x:xs) sofar =
let

Keybase proof

I hereby claim:

  • I am ar1a on github.
  • I am ar1a (https://keybase.io/ar1a) on keybase.
  • I have a public key whose fingerprint is F6D4 2008 55DE 065A 230F FB1D A301 807C DBA6 4E3E

To claim this, I am signing this object: