Skip to content

Instantly share code, notes, and snippets.

{
allFile(filter: {sourceInstanceName: {eq: "posts"}}) {
edges {
node {
id
childMarkdownRemark {
id
frontmatter {
title
date
@ChristopherBiscardi
ChristopherBiscardi / gatsby-mdx.sh
Created December 14, 2018 01:55
Gatsby MDX setup
gatsby new gatsby-blog https://github.com/gatsbyjs/gatsby-starter-blog
yarn add gatsby-mdx @mdx-js/mdx@0.15.x @mdx-js/tag@0.15.x
@ChristopherBiscardi
ChristopherBiscardi / gatsby-node.js
Created November 22, 2018 00:32
Resolve Gatsby Theme files with JS loaders
const path = require("path");
exports.onCreateWebpackConfig = ({ stage, loaders, actions }) => {
actions.setWebpackConfig({
module: {
rules: [
{
test: /\.js$/,
include: path.dirname(require.resolve("gatsby-theme-blog")),
use: [loaders.js()]
@ChristopherBiscardi
ChristopherBiscardi / nintendo-switch.tree
Created December 20, 2017 02:27
Nintendo Switch FileSystem Layout
.
└── Nintendo
├── Album
│   └── 2017
│   ├── 04
│   │   ├── 15
│   │   ├── 19
│   │   │   └── 2017041923284300-F1C11A22FAEE3B82F21B330E1B786A39.jpg
│   │   ├── 23
│   │   │   ├── 2017042320590300-F1C11A22FAEE3B82F21B330E1B786A39.jpg
@ChristopherBiscardi
ChristopherBiscardi / all strings (minus stuff that looked like junk)
Created December 3, 2017 07:15
Interesting looking strings from scanning a .replay file from Rocket League
../../TAGame/CookedMac/Farm_Art.upk
../../TAGame/CookedMac/Farm_OOBTerrain.upk
../../TAGame/CookedMac/Farm_P.upk
../../TAGame/CookedMac/Farm_Props_CMB.upk
../../TAGame/CookedMac/Farm_SFX.upk
../../TAGame/CookedMac/Farm_VFX.upk
../../TAGame/CookedMac/GameInfo_Items_SF.upk
000D0001003B000C000D03462887C67D
Archetypes.Ball.Ball_Default
Archetypes.Car.Car_Default

Dependencies

First you'll need a docker install: https://docs.docker.com/installation/

psci

After installing Docker, we'll run a PureScript psci session by running the 0.6.1.1 image. The -it flags allocate a pseudo tty and make it interactive. We're pulling the image from the default docker hub, so the images are here and the code that builds them is on GitHub

docker run -it biscarch/purescript:0.6.1.1
.drip {
width: 20px;
height: 6px;
margin-left: 48px;
background-color: black;
display: flex;
position: absolute;
background-color: #bf005f;
}
.drip:nth-child(1) {
> dc up -d
Recreating expose_a_1
Recreating expose_b_1
> dc ps
Name Command State Ports
-----------------------------------------------------------------------------
expose_a_1 python -m SimpleHTTPServer ... Up 0.0.0.0:32770->8000/tcp
expose_b_1 python -m SimpleHTTPServer ... Up 0.0.0.0:32771->8000/tcp
> curl localhost:32770
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html>
data User = User { id :: String
, name :: String
, birthday :: UTCTime }
@ChristopherBiscardi
ChristopherBiscardi / getNamedType.js
Created February 24, 2016 19:10
graphql isOutputType failing
GraphQLObjectType {
name: 'BlogPost',
description: 'A Blog Post written in Markdown with Frontmatter.',
isTypeOf: undefined,
_typeConfig:
{ name: 'BlogPost',
description: 'A Blog Post written in Markdown with Frontmatter.',
fields: { attributes: [Object], rawBody: [Object], body: [Object] } },
_interfaces: [],
_fields: