Skip to content

Instantly share code, notes, and snippets.

View dmaisano's full-sized avatar

Dom Maisano dmaisano

View GitHub Profile
# https://github.com/correttojs/graphql-codegen-apollo-next-ssr/tree/main/example
# npm run codegen
> example@1.0.0 codegen
> graphql-codegen --config codegen.yml
[21:35:47] Parse configuration [started]
[21:35:47] Parse configuration [completed]
[21:35:47] Generate outputs [started]
[21:35:47] Generate src/generated/graphql.tsx [started]
@dmaisano
dmaisano / default.pa
Created September 28, 2020 03:00 — forked from curz46/default.pa
astro a50 pulseaudio /etc/pulse/default.pa
# pulseaudio defaults to only detecting Astro A50 voice and microphone, not game
# this is what i had to do to fix it, hopefully it saves someone some time
# index:subdevice may be different for you
# resources:
# https://wiki.archlinux.org/index.php/PulseAudio/Examples at "module-alsa-sink"
# https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules/#index6h3
.nofail
load-module module-alsa-sink device=hw:3,0 sink_name=voice
A0RiFgAlpURmqXJLVbQLUhqmVMdQahmCZwiZhqhriGyjhG9K0ThI1TlVYR1K4iAlWoiqh0qpiSipixAbqfIRKUaixElQvVRKyEyQblJqJ0U/lQylsJSqPCWmSl2FZKtSQn1FSRqrlKizSCneIqVyFylVe8VfVWkwUkqHgcUoHiPVZBCXFZup+ExJo6l0WqXXkGK2ittU1W5JvyWGg3JcKWk51HMk00nXVdV2VL4rhfFIyXmEWg+p7FdKcNjpCP3HeKr2rwVfcGKy94h16mBw0hEOnH/o5RScjuB46D822eg3LT528iaBQN73OJ8koog1HnoL9B+ED/TsnUzaJLKwIIrzSSJHmHgWBLbFJhGRxU5E2CQQ2ERxPkmkaORWHYx/mFrWWv5Kn4jPEs46ogVmgDonfIQBdDQQXGAOgAy9nILTERxzR7uTyBFrzB3tTiJHmJg72p1EjkbAr8U3MHBxhAYFh7KO+G+9fgBLR6iLbmIS2Hs0GvEXbjCVjiCHQ3lf4wDiwduAUgZgu3CDI/zqXvZDDoeCGwBP1cev7mW//RERkSLI4VDe1wcuxC7c4EgvA4p4/ZDDoeAGwFP18at72VDE67dJIj0iNjkCHUe3XaB24QZH+NW9bCji9UMOh4IbAE/Vx6/uZUMRrx/5kSPQUtTDwD924QZHehlQxOuHHA4FNwCeqq+XAUW8fiTS+2QTkSLI4VDe1wcuBDZqF25wpJcBRbx+yOFQcAPgqfr41b1sKOL1I79NIosIcjiU9/UK/afswg2O8Kt72VDE64ccDgU3AJ6qj1/dy4YiXj/CB/kRNkkR5HAo72uMbgNKGYDtwg2O8Kt72VDE64ccDgU3AJ6qj1/dy4YiXj8S4eMR0H9EtnjcSz8jA9Qu3OBILwOKeP2Qw6HgBsBT9fUyoIjXj0R6n6QIcjiU922AraMNsHXULtzgCL+6l+2D07D0Qw6HghsAT9XHr+5l++A0LP0+SWz2+9gjyOF4gL/GaIRf3cuGIl4/5HAouAHwVH386l42
@dmaisano
dmaisano / DavisPutnam.java
Last active August 17, 2020 15:59
Davis Putnam Alg. from my Intro to AI course
import java.io.IOException;
import java.io.File;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.util.*;
import java.util.regex.*;
public class DavisPutnam {
@dmaisano
dmaisano / computer science learning resources
Last active August 17, 2020 15:57 — forked from rreas/list.md
Computer Science & Web Development Reading List
### Discrete mathematics
To really understand data structures and algorithmic complexity, you need to understand discrete math. This the best starting point for CS theory. I love discrete math, others may find it very boring.
* Essentials of Discrete Mathematics (Hunter)
### Data structures
I can't think of a good data structures reading off the top of my head unfortunately. Often the trick to an efficient algorithm is really just an efficient data structure. Check out Dijkstra's algorithm for a great example of this (BFS + min-heap/priority queue).